Add confidence-building promotion

This commit is contained in:
Khairul Kasmiran 2018-08-30 20:48:20 +08:00
parent d8784641ee
commit 25d3aa97f9

View File

@ -437,7 +437,7 @@ static bool r_bin_mdmp_init_directory_entry(struct r_bin_mdmp_obj *obj, struct m
for (i = 0; i < memory_list->number_of_memory_ranges; i++) {
memories = (struct minidump_memory_descriptor *)(&(memory_list->memory_ranges));
ut64 start_offset = entry->location.rva
ut64 start_offset = (ut64)entry->location.rva
+ r_offsetof (struct minidump_memory_list, memory_ranges);
ut64 needed_space = (i + 1) * sizeof (memories[0]);
if (start_offset + needed_space > obj->b->length