https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89644

--- Comment #5 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Mar 19 18:35:42 2019
New Revision: 269809

URL: https://gcc.gnu.org/viewcvs?rev=269809&root=gcc&view=rev
Log:
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.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/tree-ssa-strlen.c

Reply via email to