If an invalid subnet netmask is encountered and NetmaskBits() returns -1, it could be written to uint8_t cidr in CSubNet::ToString() with an implicit conversion to 255 instead of exiting.
Solution: in the case of an invalid subnet netmask, break to exit the loop like when the netmask bit is 0 in the preceding conditional.
Fixes this banman fuzzer crash and allows dropping the suppression:
https://cirrus-ci.com/task/4787303177519104?logs=ci#L3020
SUMMARY: UndefinedBehaviorSanitizer: implicit-signed-integer-truncation netaddress.cpp:1190:18 in
MS: 0 ; base unit: 0000000000000000000000000000000000000000
artifact_prefix='./'; Test unit written to ./crash-0671aac15e619e99522e2119487eaa9cc97e5a34
netaddress.cpp:1190:18: runtime error: implicit conversion
from type 'int' of value -1 (32-bit, signed) to type 'uint8_t' (aka 'unsigned char') changed the value to 255 (8-bit, unsigned)