[PATCH 5.4 343/462] CDC-NCM: avoid overflow in sanity checking