summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-10-25 22:18:54 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-10-25 22:18:54 (GMT)
commit3e6c0fb01710f61e8dc9383de6be4db1188b3ee6 (patch)
tree93fdd0762a28f500eae89e0f7903b24ad8dc5df3
parent4ff85e315f540efbf3510c1e7456000787601d91 (diff)
Noted that even the first basic block can have a loop to itself.
-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);