diff options
author | Renlin Li <renlin.li@arm.com> | 2017-08-31 09:18:22 +0000 |
---|---|---|
committer | Renlin Li <renlin@gcc.gnu.org> | 2017-08-31 09:18:22 +0000 |
commit | 3aebc597181a97c7b064f04d8e8aa30f79c51451 (patch) | |
tree | f1790f4ad47d5bc63465c9f6e40b64f401dcccc2 /libiberty/simple-object-elf.c | |
parent | 4b0d36db3c835ce9e3080f5203bd8ea7cdf43b5c (diff) | |
download | gcc-3aebc597181a97c7b064f04d8e8aa30f79c51451.zip gcc-3aebc597181a97c7b064f04d8e8aa30f79c51451.tar.gz gcc-3aebc597181a97c7b064f04d8e8aa30f79c51451.tar.bz2 |
[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.
Co-Authored-By: Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
From-SVN: r251554
Diffstat (limited to 'libiberty/simple-object-elf.c')
0 files changed, 0 insertions, 0 deletions