This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] readelf, libdw: Guard against divide by zero line_range in .debug_line.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 26 Nov 2014 20:33:39 +0100
- Subject: Re: [PATCH] readelf, libdw: Guard against divide by zero line_range in .debug_line.
On Mon, Nov 24, 2014 at 02:45:05PM -0800, Roland McGrath wrote:
> Put an unlikely on all tests for bogons.
Done for all my pending bogon-detection patches and pushed them to master.
libelf: elf_getphdrnum sanity check the returned phnum result.
Use elf_getphdrnum instead of accessing ehdr->e_phnum directly.
readelf: print_attributes (-A) robustify and handle non-gnu attributes.
libelf: Copy over any leftover data from src to dest in elf_cvt_note.
readelf: Check length for nexthdr overflow in print_debug_aranges_section.
libelf: Change signed overflow check to unsigned in elf_getdata_rawchunk.
libdw: Don't assert in __libdw_getabbrev when seeing bad DWARF.
libdw: Always check __libdw_find_attr return value.
readelf, libdw: Guard against divide by zero line_range in .debug_line.
Thanks,
Mark