Summary: | [10 Regression] bogus -Wstringop-overflow on memcpy of a struct with a pointer member from another with a long string | ||
---|---|---|---|
Product: | gcc | Reporter: | Martin Sebor <msebor> |
Component: | middle-end | Assignee: | Martin Sebor <msebor> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jeffreyalaw |
Priority: | P2 | Keywords: | diagnostic, patch |
Version: | 10.0 | ||
Target Milestone: | 10.0 | ||
URL: | https://bugzilla.redhat.com/show_bug.cgi?id=1800289 | ||
Host: | Target: | ||
Build: | Known to work: | 9.2.0 | |
Known to fail: | 10.0 | Last reconfirmed: | 2020-02-19 00:00:00 |
Description
Martin Sebor
2020-02-19 16:58:21 UTC
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>: https://gcc.gnu.org/g:1e9369c5dcf301e090d3a83e2c210cd6b96ac08c commit r10-6959-g1e9369c5dcf301e090d3a83e2c210cd6b96ac08c Author: Martin Sebor <msebor@redhat.com> Date: Sun Mar 1 17:35:49 2020 -0700 PR middle-end/93829 - bogus -Wstringop-overflow on memcpy of a struct with a pointer member from another with a long string gcc/testsuite/ChangeLog: PR middle-end/93829 * gcc.dg/Wstringop-overflow-32.c: New test. gcc/ChangeLog: PR middle-end/93829 * tree-ssa-strlen.c (count_nonzero_bytes): Set the size to that of a pointer in the outermost ADDR_EXPRs. Fixed. |