[Bug middle-end/43987] [4.5 regression] type-punning causes broken binaries unless -O0 is used
thomas at archlinux dot org
gcc-bugzilla@gcc.gnu.org
Tue May 4 23:50:00 GMT 2010
------- Comment #5 from thomas at archlinux dot org 2010-05-04 23:49 -------
I am still not able to produce a short test case, but maybe this will help:
http://git.busybox.net/busybox/tree/editors/sed.c?h=1_16_stable&id=1_16_1#n738
In the function add_input_file(), the 'file' argument is not a NULL pointer,
but at the end of the function, G.input_file_list[G.input_file_count-1]==NULL
(and !=file in particular), which ultimately leads to the segfault.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43987
More information about the Gcc-bugs
mailing list