re PR sanitizer/82072 (sanitizer does not detect an overflow from LLONG_MIN)
authorMarek Polacek <polacek@redhat.com>
Tue, 5 Sep 2017 15:55:04 +0000 (15:55 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 5 Sep 2017 15:55:04 +0000 (15:55 +0000)
commitc253525edd51a027b7db30e077a6643a78544b0c
tree984ffdfa544660a19e390c366d332810a8203588
parentd49318d9bc3e63251aada27b322e7756eab19884
re PR sanitizer/82072 (sanitizer does not detect an overflow from LLONG_MIN)

PR sanitizer/82072
* convert.c (convert_to_integer_1) <case NEGATE_EXPR>: Move the ubsan
check earlier.

* c-c++-common/ubsan/pr82072-2.c: New test.

From-SVN: r251717
gcc/ChangeLog
gcc/convert.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/pr82072-2.c [new file with mode: 0644]