r251554 - in /trunk/gcc/testsuite: ChangeLog gc...

renlin@gcc.gnu.org renlin@gcc.gnu.org
Thu Aug 31 09:18:00 GMT 2017


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



More information about the Gcc-cvs mailing list