overflow-sub-3.c
904 Bytes
-
re PR sanitizer/63697 (-fsanitize=undefined doesn't detect some subtraction overflows) · c288810f
PR sanitizer/63697 * tree-vrp.c (simplify_internal_call_using_ranges): For subcode == MINUS_EXPR, check overflow on vr0.min - vr1.max and vr0.max - vr1.min instead of vr0.min - vr1.min and vr0.max - vr1.max. * c-c++-common/ubsan/overflow-sub-3.c: New test. From-SVN: r216962
Jakub Jelinek committed