public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/12014] New: strcpy used with overlapping arguments
@ 2003-08-21 17:45 hermantenbrugge at home dot nl
  2003-08-21 18:02 ` [Bug ada/12014] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: hermantenbrugge at home dot nl @ 2003-08-21 17:45 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12014

           Summary: strcpy used with overlapping arguments
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hermantenbrugge at home dot nl
                CC: gcc-bugs at gcc dot gnu dot org

I just ran bounds-checking on the gcc-3.3.1 release. It produced an error in 
adadecode.c. The problem is that it contains code like:

strcpy (ada_name, ada_name + 5);
strcpy (tktoken, tktoken + 2);
strcpy (ada_name + k + 1, ada_name + k + 2);

All of these strcpy's are illegal because the source and destination pointer
overlap.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-10-24 13:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-21 17:45 [Bug ada/12014] New: strcpy used with overlapping arguments hermantenbrugge at home dot nl
2003-08-21 18:02 ` [Bug ada/12014] " pinskia at gcc dot gnu dot org
2003-08-23  1:27 ` dhazeghi at yahoo dot com
2003-10-24 13:06 ` cvs-commit at gcc dot gnu dot org
2003-10-24 13:14 ` charlet at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).