This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34285] [4.3 Regression] buffer overflow incorrectly detected
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Nov 2007 10:42:58 -0000
- Subject: [Bug middle-end/34285] [4.3 Regression] buffer overflow incorrectly detected
- References: <bug-34285-3760@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-11-29 10:42 -------
__builtin___strncpy_chk (&foo.a[0], line, 19, 10)
The issue comes down to folding of (char*)&foo into &foo.a[0], we should not be
doing that folding.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
Component|c |middle-end
GCC build triplet|ppc-linux-gnu |
GCC host triplet|ppc-linux-gnu |
GCC target triplet|ppc-linux-gnu |
Keywords| |diagnostic
Summary|buffer overflow incorrectly |[4.3 Regression] buffer
|detected |overflow incorrectly
| |detected
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34285