[PATCH]: Fix a seg fault in readelf
Nick Clifton
nickc@redhat.com
Thu May 12 09:04:00 GMT 2005
Hi Guys,
Whilst working on something else I managed to generate an binary
file which would cause readelf to crash - the file did not contain a
valid .debug_info section so the pointer size could not be computed,
but the code to display the contents of the .debug_line section
relied upon the value having been set.
Cheers
Nick
binutils/ChangeLog
2005-05-12 Nick Clifton <nickc@redhat.com>
* readelf.c (display_debug_lines): If pointer_size has not been
found then assume that it is 4 in order to prevent a seg fault
when process_extend_line_op attempts to read the line data.
More information about the Binutils
mailing list