http://sourceware.org/bugzilla/show_bug.cgi?id=13220
Bug #: 13220 Summary: readelf invalid memory access (process_abbrev_section) Product: binutils Version: 2.21 Status: NEW Severity: normal Priority: P2 Component: binutils AssignedTo: unassig...@sources.redhat.com ReportedBy: paul.marine...@imperial.ac.uk Classification: Unclassified Created attachment 5943 --> http://sourceware.org/bugzilla/attachment.cgi?id=5943 valgrind readelf -w <file> to reproduce the bug readelf appears to access invalid memory as reported by valgrind when showing debug information for the attached file (readelf -w <file>). Valgrind outputs 6 messages similar to ==28223== Invalid read of size 1 ==28223== at 0x42EFF0: process_abbrev_section (in /data/scratchpad/binutils-2.21.53/binutils/readelf) ==28223== by 0x424F11: display_debug_abbrev (in /data/scratchpad/binutils-2.21.53/binutils/readelf) ==28223== by 0x41F99F: process_object (in /data/scratchpad/binutils-2.21.53/binutils/readelf) ==28223== by 0x42372D: main (in /data/scratchpad/binutils-2.21.53/binutils/readelf) ==28223== Address 0x4fbe219 is 1 bytes after a block of size 40 alloc'd ==28223== at 0x4029B6A: malloc (vg_replace_malloc.c:263) ==28223== by 0x404BCC: get_data (in /data/scratchpad/binutils-2.21.53/binutils/readelf) ==28223== by 0x412C4D: load_specific_debug_section (in /data/scratchpad/binutils-2.21.53/binutils/readelf) ==28223== by 0x41F984: process_object (in /data/scratchpad/binutils-2.21.53/binutils/readelf) ==28223== by 0x42372D: main (in /data/scratchpad/binutils-2.21.53/binutils/readelf) -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils