------- Comment #3 from dirtysalt1987 at gmail dot com 2010-04-17 09:45 ------- (In reply to comment #1) > You should make the struct packed, because otherwise you are accessing it > unaligned. >
If I recompile it with -O0, the assembly code call 'strlen' function.And I use Valgrind to run it,there is no 'Invalid read' -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43774