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/66977] -fsanitize=shift may introduce uninitialized variables


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

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Fri Jul 31 11:12:57 2015
New Revision: 226440

URL: https://gcc.gnu.org/viewcvs?rev=226440&root=gcc&view=rev
Log:
        PR sanitizer/66977
        * typeck.c (get_member_function_from_ptrfunc): Don't sanitize
        RSHIFT_EXPR.

        * g++.dg/ubsan/pr66977.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ubsan/pr66977.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]