[PATCH 4.19 262/350] CDC-NCM: avoid overflow in sanity checking