This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/84397] missing -Wstringop-truncation on strncpy into a multidimensional array
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Feb 2018 00:31:29 +0000
- Subject: [Bug tree-optimization/84397] missing -Wstringop-truncation on strncpy into a multidimensional array
- Auto-submitted: auto-generated
- References: <bug-84397-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84397
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=84395
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
This is probably due to the same underlying problem as bug 84395. The checker
computes the remaining space in the outermost object (via compute_objsize)
instead of figuring out the size of the referenced array.