This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/48269] Incorrect fortify warning for a packed struct member
- From: "marcus at jet dot franken.de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Mar 2011 09:58:49 -0000
- Subject: [Bug middle-end/48269] Incorrect fortify warning for a packed struct member
- Auto-submitted: auto-generated
- References: <bug-48269-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48269
marcus at jet dot franken.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marcus at jet dot
| |franken.de
--- Comment #2 from marcus at jet dot franken.de 2011-03-24 09:58:48 UTC ---
there is a malloc(sizeof(struct1)+sizeof(struct2))
and the struct 1 has
uint8_t data[0]
at the end, where struct2* = struct1*->data;
the malloc() seems to allocate insufficient memory, spo the overflow checker
triggers.