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
Showing
gcc/testsuite/gcc.dg/pr90010.c
0 → 100644
Please
register
or
sign in
to comment