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/80348] [6/7 Regression] UBSAN: compile time crash in ubsan_instrument_division


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

--- Comment #9 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Apr 10 17:18:15 2017
New Revision: 246812

URL: https://gcc.gnu.org/viewcvs?rev=246812&root=gcc&view=rev
Log:
        PR sanitizer/80348
        * typeck.c (cp_build_binary_op): Use NULL_TREE instead of NULL.  Set
        ORIG_TYPE earlier and not only when shortening.

        * g++.dg/ubsan/div-by-zero-3.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ubsan/div-by-zero-3.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.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]