This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/68785] [6 Regression] valgrind reports issues with folding on x86_64
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 08 Dec 2015 09:33:33 +0000
- Subject: [Bug target/68785] [6 Regression] valgrind reports issues with folding on x86_64
- Auto-submitted: auto-generated
- References: <bug-68785-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68785
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I believe this can happen when native_encode_expr encodes less than the
requested number of bytes (thus the program invokes undefined behavior). In
this case
we read 4 bytes from "" (an empty string).
I'm placing some asserts to see what the program does and where.