https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239516

--- Comment #2 from m...@pacopascal.com ---
Created attachment 206867
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=206867&action=edit
Robustness patch

Adding logic similar to the "robustness patch" I provided may be worthwhile. If
another programmer using libdwarf makes a similar mistake, having it fail
gracefully may be preferable over a segfault. For example, running readelf
without the "proposed patch" would yield:


$ readelf -wf /usr/lib/debug/bin/cat.debug

The section .eh_frame contains:

Assertion failed: (ds->ds_data != NULL), function _dwarf_frame_section_init,
file /usr/src/contrib/elftoolchain/libdwarf/libdwarf_frame.c, line 465.
Abort trap
$

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to