[Bug middle-end/34285] [4.3 Regression] buffer overflow incorrectly detected
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Nov 29 10:43:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list