Commit: wrstabs.c: replace assertions with error returns

Nick Clifton nickc@redhat.com
Mon Mar 23 16:17:36 GMT 2020


Hi Guys,

  I am applying the attached patch to replace the assertions in the
  STABS decoder with error returns.  We have recently had a PR filed
  against this file (PR 25714) because an assertion was being triggered
  and so forcing a core dump.

Cheers
  Nick

binutils/ChangeLog
2020-03-23  Nick Clifton  <nickc@redhat.com>

	PR 25714
	* wrstabs.c (stab_pop_type): Replace assertion with error return.
	* write_stabs_in_sections_debugging_info: Likewise.
	* stab_enum_type: Likewise.
	* stab_modify_type: Likewise.
	* stab_struct_field: Likewise.
	* stab_end_struct_type: Likewise.
	* stab_start_class_type: Likewise.
	* stab_class_static_member: Likewise.
	* stab_class_baseclass: Likewise.
	* stab_class_start_method: Likewise.
	* stab_class_method_var: Likewise.
	* stab_class_end_method: Likewise.
	* stab_end_class_type: Likewise.
	* stab_typedef_type: Likewise.
	* stab_start_function: Likewise.
	* stab_end_block: Likewise.
	* stab_lineno: Likewise.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr25714.patch
Type: text/x-patch
Size: 6053 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200323/346d00ba/attachment.bin>


More information about the Binutils mailing list