libdwfl: Make sure the note len increases each iteration
authorMark Wielaard <mark@klomp.org>
Fri, 17 Dec 2021 17:09:31 +0000 (18:09 +0100)
committerMark Wielaard <mark@klomp.org>
Sat, 18 Dec 2021 01:24:28 +0000 (02:24 +0100)
commit163d1e9582efa8248057b088ad9c28fc8d24512e
tree1414fc7ff0b6319cad7139f0f51007ec05d6a53d
parent3831c0b2c2334b129a9d04f12dc7549db412d3bd
libdwfl: Make sure the note len increases each iteration

In dwfl_segment_report_module we have an overflow check when reading
notes, but we could still not make any progress if the number of bytes
read (len) didn't increase at all. Check len > last_len.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdwfl/ChangeLog
libdwfl/dwfl_segment_report_module.c