Re: [PATCH] libdw: Fix memory corruption in libdw_find_split_unit.

2018-05-30 Thread Mark Wielaard
On Mon, 2018-05-28 at 17:33 +0200, Mark Wielaard wrote: > Found by valgrind when trying to match a split unit from a .dwo file > that doesn't contain the split unit (as first) match. We would close > the split Dwarf too early, before we had inspected all units in it. > > Add a testcase that simula

[PATCH] libdw: Fix memory corruption in libdw_find_split_unit.

2018-05-28 Thread Mark Wielaard
Found by valgrind when trying to match a split unit from a .dwo file that doesn't contain the split unit (as first) match. We would close the split Dwarf too early, before we had inspected all units in it. Add a testcase that simulates this. Which failed (at least under valgrind as run by make dis