[Bug tree-optimization/89644] [8/9 Regression] false-positive -Warray-bounds on strncpy with unterminated array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89644 --- Comment #3 from Martin Sebor --- Author: msebor Date: Tue Mar 19 17:45:34 2019 New Revision: 269807 URL: https://gcc.gnu.org/viewcvs?rev=269807=gcc=rev Log: PR tree-optimization/89644 - False-positive -Warray-bounds diagnostic on strncpy gcc/ChangeLog: PR tree-optimization/89644 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated arrays in determining sequence sizes in strncpy and stpncpy. gcc/testsuite/ChangeLog: PR tree-optimization/89644 * gcc.dg/Wstringop-truncation-8.c: New test. Added: trunk/gcc/testsuite/gcc.dg/Wstringop-truncation-8.c Modified: trunk/gcc/ChangeLog trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-ssa-strlen.c
[Bug tree-optimization/89644] [8/9 Regression] false-positive -Warray-bounds on strncpy with unterminated array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89644 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Target Milestone|--- |8.4
[Bug tree-optimization/89644] [8/9 Regression] false-positive -Warray-bounds on strncpy with unterminated array
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89644 Martin Sebor changed: What|Removed |Added Keywords||patch Blocks||88781 Summary|False-positive |[8/9 Regression] |-Warray-bounds diagnostic |false-positive |on strncpy |-Warray-bounds on strncpy ||with unterminated array --- Comment #2 from Martin Sebor --- Patch: https://gcc.gnu.org/ml/gcc-patches/2019-03/msg00535.html Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88781 [Bug 88781] [meta-bug] bogus/missing -Wstringop-truncation warnings