News for hackers. Stuff that matters.
Re:UndefinedBehaviorSanitizer's Unexpected Behavior by uecker on Thursday October 17, 2024 @01:51PM (#41871907)
With GCC/clang can just add checking with -fsanitize=signed-integer-overflow -fsanitize-undefined-trap-on-error.

For my main software project, which is some numerical software for magnetic resonance imaging, this adds 12212 checks and the optimizer reduces them down to 3803. But I haven't done benchmarking yet, but I would guess that for most software it would not matter.

There are no comments on this comment yet.