This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH]: Fix a seg fault in readelf
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sources dot redhat dot com
- Date: Thu, 12 May 2005 10:02:18 +0100
- Subject: [PATCH]: Fix a seg fault in readelf
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.