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 middle-end/34285] [4.3 Regression] buffer overflow incorrectly detected



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]