summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-08-17 20:29:27 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-08-17 20:29:27 (GMT)
commitdb74e3650d31e937db356c6a8b7fd4e3c208dc4d (patch)
tree45aafd72ad6c9232235e70372fe2245028128443
parentd3f9ef68a9939ee43e8a70748dd4b7e97352179e (diff)
Computed an initial basic location by default when collecting areas to disassemble.
-rw-r--r--ChangeLog6
-rw-r--r--src/analysis/disass/area.c8
2 files changed, 9 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index e732a25..fcd1f02 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+17-08-17 Cyrille Bagard <nocbos@gmail.com>
+
+ * src/analysis/disass/area.c:
+ Compute an initial basic location by default when collecting areas to
+ disassemble.
+
17-08-16 Cyrille Bagard <nocbos@gmail.com>
* plugins/fmtp/parser.c:
diff --git a/src/analysis/disass/area.c b/src/analysis/disass/area.c
index 7939290..5c70e72 100644
--- a/src/analysis/disass/area.c
+++ b/src/analysis/disass/area.c
@@ -1575,12 +1575,10 @@ static void g_area_collector_do_compute(GAreaCollector *collector, GtkStatusStac
format = g_loaded_binary_get_format(collector->binary);
-#ifndef NDEBUG
state = g_exe_format_translate_offset_into_vmpa(format, 0, &prev);
- assert(state);
-#else
- g_exe_format_translate_offset_into_vmpa(format, 0, &prev);
-#endif
+
+ if (!state)
+ init_vmpa(&prev, 0, VMPA_NO_PHYSICAL);
portions = g_exe_format_get_portions(format);