[Bug sanitizer/102317] signed integer overflow sanitizer cannot work well with -fno-strict-overflow

qing.zhao at oracle dot com gcc-bugzilla@gcc.gnu.org
Mon Sep 13 22:01:44 GMT 2021


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

--- Comment #5 from Qing Zhao <qing.zhao at oracle dot com> ---
> On Sep 13, 2021, at 4:45 PM, pinskia at gcc dot gnu.org <gcc-bugzilla@gcc.gnu.org> wrote:
> 
>> is it possible to make -fsanitize=signed-integer-overflow work with -fwrapv?
> 
> Why would it? they conflict.

This is a feature that is requested by Kees Cook for kernel security usage. 

"the kernel builds with -fno-strict-overflow which removes
possible undefined behavior, but I still want the sanitizer to catch
this case.”


More information about the Gcc-bugs mailing list