PR tree-optimization/89644 - false-positive -Warray-bounds on strncpy with unterminat...
authorMartin Sebor <msebor@redhat.com>
Tue, 19 Mar 2019 18:35:42 +0000 (18:35 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 19 Mar 2019 18:35:42 +0000 (12:35 -0600)
commite0748030863e158ced48802ea42b27e5ec26995f
tree80eedf3a48eef2037a5e82bab45213da11041112
parente3ba46bd52f9bd6db8788384dd186c9ba5963129
PR tree-optimization/89644 - false-positive -Warray-bounds on strncpy with unterminated array

gcc/ChangeLog:
* tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
rather than endptr as an indicator of nul-termination.

From-SVN: r269809
gcc/ChangeLog
gcc/tree-ssa-strlen.c