gimple-ssa-sprintf.c
134 KB
-
re PR c++/90010 (valgrind error with snprintf and -Wall) · c9c5e188
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
Jakub Jelinek committed