This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/82072] sanitizer does not detect an overflow from LLONG_MIN


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

--- Comment #16 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Sep  5 15:55:04 2017
New Revision: 251717

URL: https://gcc.gnu.org/viewcvs?rev=251717&root=gcc&view=rev
Log:
        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.

Added:
    trunk/gcc/testsuite/c-c++-common/ubsan/pr82072-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/convert.c
    trunk/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]