Re: [PATCH] Fix up target_to_host fn in gimple-ssa-sprintf.c (PR c++/90010)

2019-04-09 Thread Richard Biener
On April 9, 2019 11:47:28 PM GMT+02:00, Jakub Jelinek wrote: >Hi! > >As the following testcase shows, target_to_host handled >targstr with strlen shorter than hostsz - 4 right (though with wasteful >clearing of the rest of the buffer when only one '\0' termination is >enough) >and similarly also s

[PATCH] Fix up target_to_host fn in gimple-ssa-sprintf.c (PR c++/90010)

2019-04-09 Thread Jakub Jelinek
Hi! As the following testcase shows, target_to_host handled targstr with strlen shorter than hostsz - 4 right (though with wasteful clearing of the rest of the buffer when only one '\0' termination is enough) and similarly also strlen hostsz and more right (making last 4 characters in the buffer "