The one which actually saves the data is data_list.data.d.d_buf, so check it
before free rawdata_base.
This can fix a segmentation fault when prelink libqb_1.0.3:
prelink: /usr/lib/libqb.so.0.18.2: Symbol section index outside of section
numbers
The segmentation fault happens when prelink call e
https://sourceware.org/bugzilla/show_bug.cgi?id=23528
Mark Wielaard changed:
What|Removed |Added
CC||mark at klomp dot org
--- Comment #3
https://sourceware.org/bugzilla/show_bug.cgi?id=23529
Mark Wielaard changed:
What|Removed |Added
CC||mark at klomp dot org
--- Comment #1
https://sourceware.org/bugzilla/show_bug.cgi?id=23528
Frank Ch. Eigler changed:
What|Removed |Added
CC||fche at redhat dot com
--- Comment
https://sourceware.org/bugzilla/show_bug.cgi?id=23528
--- Comment #1 from Mark Wielaard ---
Replicated under valgrind:
$ valgrind -q eu-readelf -S Double-free-libelf
==13892== Invalid free() / delete / delete[] / realloc()
==13892==at 0x48369EB: free (vg_replace_malloc.c:530)
==13892==b
https://sourceware.org/bugzilla/show_bug.cgi?id=23529
Bug ID: 23529
Summary: heap-buffer-overflow in eu-readelf
Product: elfutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component:
https://sourceware.org/bugzilla/show_bug.cgi?id=23528
wcventure changed:
What|Removed |Added
Summary|When executing ./eu-nm or |When executing ./eu-nm or
https://sourceware.org/bugzilla/show_bug.cgi?id=23528
wcventure changed:
What|Removed |Added
Summary|When executing ./eu-nm or |When executing ./eu-nm or
https://sourceware.org/bugzilla/show_bug.cgi?id=23528
Bug ID: 23528
Summary: When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp
-w, AddressSanitizer chatch a double-free crashes.
Product: elfutils
Version: unspecified