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>
+2021-12-08 Mark Wielaard <mark@klomp.org>
+
+ * dwfl_segment_report_module.c (dwfl_segment_report_module): Make
+ sure the note len increases each iteration.
+
2021-12-17 Mark Wielaard <mark@klomp.org>
* libdwflP.h (dwfl_segment_report_module): Add maxread argument.
note_desc = notes + len;
if (unlikely (filesz < len + nh->n_descsz
- || len < last_len
+ || len <= last_len
|| len + nh->n_descsz < last_len))
break;