summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/analysis/disass/loop.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 304682b..52e0a39 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+16-10-26 Cyrille Bagard <nocbos@gmail.com>
+
+ * src/analysis/disass/loop.c:
+ Note that even the first basic block can have a loop to itself.
+
16-10-25 Cyrille Bagard <nocbos@gmail.com>
* src/arch/dalvik/pseudo/switch.c:
diff --git a/src/analysis/disass/loop.c b/src/analysis/disass/loop.c
index 89a4bc9..01fca07 100644
--- a/src/analysis/disass/loop.c
+++ b/src/analysis/disass/loop.c
@@ -56,7 +56,7 @@ static void detect_back_edges(dragon_node *nodes, size_t count)
dragon_node *target; /* Noeud référence à tester */
size_t id; /* Indice du bit associé */
- for (k = 1; k < count; k++)
+ for (k = 0; k < count; k++)
{
node = get_dragon_node(nodes, k);