From 25d3aa97f9d9c11d4f84e339cd51e0f67a9cb8c2 Mon Sep 17 00:00:00 2001 From: Khairul Kasmiran Date: Thu, 30 Aug 2018 20:48:20 +0800 Subject: [PATCH] Add confidence-building promotion --- libr/bin/format/mdmp/mdmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libr/bin/format/mdmp/mdmp.c b/libr/bin/format/mdmp/mdmp.c index 82a983ea56..774da4e08b 100644 --- a/libr/bin/format/mdmp/mdmp.c +++ b/libr/bin/format/mdmp/mdmp.c @@ -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