Signed-off-by: Mark Wielaard <mjw@redhat.com>
+2014-12-09 Mark Wielaard <mjw@redhat.com>
+
+ * dwfl_segment_report_module.c (handle_file_note): Check count doesn't
+ overflow.
+
2014-12-07 Mark Wielaard <mjw@redhat.com>
* relocate.c (relocate_section): Sanity check section overlap against
if (! buf_read_ulong (ei_data, sz, &ptr, end, NULL)) // page_size
return NULL;
+ uint64_t maxcount = (size_t) (end - ptr) / (3 * sz);
+ if (count > maxcount)
+ return NULL;
+
/* Where file names are stored. */
const char *fptr = ptr + 3 * count * sz;