[PATCH 5.10 14/80] CDC-NCM: avoid overflow in sanity checking