summaryrefslogtreecommitdiff
path: root/src/analysis/disass
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-12-29 10:39:41 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-12-29 10:39:41 (GMT)
commit1b5d39bfbc48c33a0ea0924b60e48448c8b45dd4 (patch)
treedcda4444c5cd13df66982986224eaf45edfd0089 /src/analysis/disass
parent2a6e943002b4e3f1e147847c554e1b1a5d173b0f (diff)
Validated a safety check.
Diffstat (limited to 'src/analysis/disass')
-rw-r--r--src/analysis/disass/limit.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/analysis/disass/limit.c b/src/analysis/disass/limit.c
index 18d089a..d0959b7 100644
--- a/src/analysis/disass/limit.c
+++ b/src/analysis/disass/limit.c
@@ -58,11 +58,14 @@ void compute_routine_limit(GBinRoutine *routine, GBinRoutine *prev, GArchProcess
start = g_arch_processor_find_instr_by_address(proc, &addr);
-
- /* FIXME ? */
+ /**
+ * On considère que les symboles chargés à partir du format peuvent
+ * être corrompus, potentiellement pour faire planter un analyseur.
+ *
+ * Donc on s'autorise à être prudent.
+ */
if (start == NULL) goto crl_skip;
-
g_arch_instruction_set_flag(start, AIF_ROUTINE_START);
g_object_unref(G_OBJECT(start));