[Bug sanitizer/102515] UBSAN misses signed division instrumentation

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 1 10:10:40 GMT 2021


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

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 51529
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51529&action=edit
gcc12-pr102515.patch

I have one too, even bootstrapped/regtested overnight, just didn't get to
writing new testcases that would cover the cases that need testing (i.e. that
-f{,no-}sanitize-recover=float-divide-by-zero rather than
-f{,no-}sanitize-recover=integer-divide-by-zero decides on *_abort for float
division and the behavior for -fsanitize=undefined
-fno-sanitize-recover=integer-divide-by-zero or -fsanitize=undefined
-fno-sanitize-recover=signed-integer-overflow (i.e. when integer-divide-by-zero
and signed-integer-overflow differ in the recover method).


More information about the Gcc-bugs mailing list