Re: [PATCH] Avoid another non zero terminated string constant (revert)

2018-09-14 Thread Bernd Edlinger
On 07/30/18 08:52, Richard Biener wrote: > On Sun, 29 Jul 2018, Bernd Edlinger wrote: > >> Hi! >> >> This fixes another not NUL terminated string literal that is created >> in tree-ssa-forwprop.c at simplify_builtin_call. >> >> src_buf is set up to contain a NUL at src_buf[src_len], thus use src_l

Re: [PATCH] Avoid another non zero terminated string constant

2018-07-29 Thread Richard Biener
On Sun, 29 Jul 2018, Bernd Edlinger wrote: > Hi! > > This fixes another not NUL terminated string literal that is created > in tree-ssa-forwprop.c at simplify_builtin_call. > > src_buf is set up to contain a NUL at src_buf[src_len], thus use src_len + 1 > as length parameter to build_string_lite

[PATCH] Avoid another non zero terminated string constant

2018-07-29 Thread Bernd Edlinger
Hi! This fixes another not NUL terminated string literal that is created in tree-ssa-forwprop.c at simplify_builtin_call. src_buf is set up to contain a NUL at src_buf[src_len], thus use src_len + 1 as length parameter to build_string_literal. All other uses of build_string_literal do it right,