This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r251554 - in /trunk/gcc/testsuite: ChangeLog gc...
- From: renlin at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 31 Aug 2017 09:18:22 -0000
- Subject: r251554 - in /trunk/gcc/testsuite: ChangeLog gc...
Author: renlin
Date: Thu Aug 31 09:18:22 2017
New Revision: 251554
URL: https://gcc.gnu.org/viewcvs?rev=251554&root=gcc&view=rev
Log:
[TESTSUITE]Use memcpy instead of strcpy in testsuite/gcc.dg/memcmp-1.c
strcpy will keep reading and writing memory if the string is not terminated
with null character. In this case, it may visit memory beyond the boundary.
gcc/testsuite/
2017-08-31 Renlin Li <renlin.li@arm.com>
Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
* gcc.dg/memcmp-1.c (test_strncmp): Use memcpy instead of strcpy.
Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/memcmp-1.c