[PATCH] libelf/elf_end.c: check data_list.data.d.d_buf before free it

2018-08-15 Thread Robert Yang
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

[Bug libelf/23528] When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp -w, AddressSanitizer catch a double-free crash.

2018-08-15 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23528 Mark Wielaard changed: What|Removed |Added CC||mark at klomp dot org --- Comment #3

[Bug backends/23529] heap-buffer-overflow in eu-readelf

2018-08-15 Thread mark at klomp dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=23529 Mark Wielaard changed: What|Removed |Added CC||mark at klomp dot org --- Comment #1

[Bug libelf/23528] When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp -w, AddressSanitizer catch a double-free crash.

2018-08-15 Thread fche at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=23528 Frank Ch. Eigler changed: What|Removed |Added CC||fche at redhat dot com --- Comment

[Bug libelf/23528] When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp -w, AddressSanitizer catch a double-free crash.

2018-08-15 Thread mark at klomp dot org
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

[Bug backends/23529] New: heap-buffer-overflow in eu-readelf

2018-08-15 Thread wcventure at 126 dot com
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:

[Bug libelf/23528] When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp -w, AddressSanitizer catch a double-free crash.

2018-08-15 Thread wcventure at 126 dot com
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

[Bug libelf/23528] When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp -w, AddressSanitizer catch a double-free crashe.

2018-08-15 Thread wcventure at 126 dot com
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

[Bug libelf/23528] New: When executing ./eu-nm or ./eu-readelf -aAdehIlnrsSVcp -w, AddressSanitizer chatch a double-free crashes.

2018-08-15 Thread wcventure at 126 dot com
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