This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]