[Bug middle-end/48269] Incorrect fortify warning for a packed struct member
marcus at jet dot franken.de
gcc-bugzilla@gcc.gnu.org
Thu Mar 24 10:24:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list