[Bug libstdc++/106469] Undefined behavior triggered on Mersenne Twister engine due to unsigned integer overflow

hbucher at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Jul 29 17:29:49 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106469

--- Comment #6 from Henry <hbucher at gmail dot com> ---

> This sanitizer is stupid.

That is an unjust comment on great work from the LLVM team. An unsigned
overflow in user code is almost always a bug due to some oversight, there is no
denying that. Look at Arianne 5 for an example.

The community at large (aka "the users") might have very low priority on your
priorities list but as there is no way to turn off "unsigned-integer-overflow"
for specific includes, they have to turn off these checks on user code as well.
It has a significant impact on us.  But its your project at the end of the day.


More information about the Gcc-bugs mailing list