https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102515
Bug ID: 102515
Summary: UBSAN misses signed division instrumentation
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at
gcc dot gnu.org
Target Milestone: ---
To replace -ftrapv with -fsanitize=signed-integer-overflow
-fsanitize-undefined-trap-on-error we need to (well, might want to ...) extend
UBSAN to cover the degenerate case of signed division of the most negative
value by -1.