diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-04-10 09:27:20 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-04-10 09:27:20 +0200 |
commit | c9c5e18883125c90b3cbdb61b651719253a0ff90 (patch) | |
tree | 00926960cbc7944e903ff64d68d4c2c050f5b285 /gcc/expr.c | |
parent | 7e1ab2dc3f5e9d59ecff8275fc107b126248048a (diff) | |
download | gcc-c9c5e18883125c90b3cbdb61b651719253a0ff90.zip gcc-c9c5e18883125c90b3cbdb61b651719253a0ff90.tar.gz gcc-c9c5e18883125c90b3cbdb61b651719253a0ff90.tar.bz2 |
re PR c++/90010 (valgrind error with snprintf and -Wall)
PR c++/90010
* gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
with strlen in between hostsz-3 and hostsz-1 inclusive when no
translation is needed, and when translation is needed, only append
... if the string length is hostsz or more bytes long. Avoid using
strncpy or strcat.
* gcc.dg/pr90010.c: New test.
From-SVN: r270246
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions