You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A bug in addr2line causes it to produce outputs such as the following for actually valid binaries:
addr2line: DWARF error: section .debug_info is larger than its filesize! (0x93ef57 vs 0x530ea0)\n
And for whatever reason, line will occasionally be read only partially through the pipe, e.g.:
addr2line: DWARF error: section .debug_info is larger than its filesize! (0x93ef57 vs 0x
I do not know whether the partial read is specifically related to this error or if it also happens with valid addr2line output. Either way, the partial read causes line not to have a trailing newline. Therefore, strstr returns NULL and the dereference of NULL + 1 causes a segmentation fault.
The text was updated successfully, but these errors were encountered:
strstr(line, "\n")
returns NULL if a newline is not found. Dereferencing without a NULL check causes a segmentation fault.DeathHandler/death_handler.cc
Line 438 in 911e4df
DeathHandler/death_handler.cc
Line 440 in 911e4df
A bug in addr2line causes it to produce outputs such as the following for actually valid binaries:
And for whatever reason,
line
will occasionally be read only partially through the pipe, e.g.:I do not know whether the partial
read
is specifically related to this error or if it also happens with valid addr2line output. Either way, the partialread
causesline
not to have a trailing newline. Therefore,strstr
returns NULL and the dereference of NULL + 1 causes a segmentation fault.The text was updated successfully, but these errors were encountered: