Re:Summary of C/C++ integer rules
by jcelerier on Friday April 02, 2021 @03:15PM
(#26674903)
I recommend using -fsanitize=undefined -fsanitize=integer if you can build with clang - it will print a warning when an unsigned int underflows which catches a terrifying amount of similar bugs the first time it is run (there are a lot of false positives in hash functions, etc though but imho it's well worth using regularly)
[ Parent
| on HN ]
There are no comments on this comment yet.