This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/66908] Uninitialized variable when compiled with UBsan
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Aug 2015 15:47:27 +0000
- Subject: [Bug sanitizer/66908] Uninitialized variable when compiled with UBsan
- Auto-submitted: auto-generated
- References: <bug-66908-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66908
--- Comment #16 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Aug 11 15:46:56 2015
New Revision: 226782
URL: https://gcc.gnu.org/viewcvs?rev=226782&root=gcc&view=rev
Log:
PR sanitizer/66908
* c-ubsan.c: Include gimplify.h.
(ubsan_instrument_division): Unshare OP0 and OP1.
(ubsan_instrument_shift): Likewise.
* c-c++-common/ubsan/pr66908.c: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/c-c++-common/ubsan/pr66908.c
Modified:
branches/gcc-5-branch/gcc/c-family/ChangeLog
branches/gcc-5-branch/gcc/c-family/c-ubsan.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog