From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17050 invoked by alias); 21 Aug 2003 17:45:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 17036 invoked by uid 48); 21 Aug 2003 17:45:57 -0000 Date: Thu, 21 Aug 2003 17:45:00 -0000 From: "hermantenbrugge at home dot nl" To: gcc-bugs@gcc.gnu.org Message-ID: <20030821174557.12014.hermantenbrugge@home.nl> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug ada/12014] New: strcpy used with overlapping arguments X-Bugzilla-Reason: CC X-SW-Source: 2003-08/txt/msg02342.txt.bz2 List-Id: 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.