Re: [PATCH] libdw: Report error in dwarf_getlocation_die for bogus opcode offset.

2018-06-08 Thread Mark Wielaard
On Thu, 2018-06-07 at 00:01 +0200, Mark Wielaard wrote: > Found by afl fuzzer on varlocs test. varlocs sanity checks that the > given offset in the opcode corresponds to the cuoffset of the returned > DIE. In case the opcode offset was bogus this might fail because we > might wrap around and return

[PATCH] libdw: Report error in dwarf_getlocation_die for bogus opcode offset.

2018-06-06 Thread Mark Wielaard
Found by afl fuzzer on varlocs test. varlocs sanity checks that the given offset in the opcode corresponds to the cuoffset of the returned DIE. In case the opcode offset was bogus this might fail because we might wrap around and return a random DIE instead of reporting an error. Signed-off-by: Mar