On Sun, 2015-01-11 at 15:10 +0100, Mark Wielaard wrote:
> On Wed, 2015-01-07 at 16:13 -0800, Roland McGrath wrote:
> > dwarf_getcfi_elf.c bits could use a few more unlikely's.
>
> You are right. I made the code even more unlikely.
I pushed this variant to master now.
28 +0100
Subject: [PATCH] libdw: Robustify eh_frame_hdr and encoded-values reading.
Sanity check and keep track of binary_search_table data buffer length.
Add bounds check to encoded value reading. Also fix a bug when reading
the eh_frame header data from an other endian ELF image. Add a testcase
th
dwarf_getcfi_elf.c bits could use a few more unlikely's.
Sanity check and keep track of binary_search_table data buffer length.
Add bounds check to encoded value reading. Also fix a bug when reading
the eh_frame header data from an other endian ELF image. Add a testcase
that would fail the new sanity checks because of the endian bug.
Signed-off-by: Mark