diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-10-25 22:18:54 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-10-25 22:18:54 (GMT) |
commit | 3e6c0fb01710f61e8dc9383de6be4db1188b3ee6 (patch) | |
tree | 93fdd0762a28f500eae89e0f7903b24ad8dc5df3 | |
parent | 4ff85e315f540efbf3510c1e7456000787601d91 (diff) |
Noted that even the first basic block can have a loop to itself.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/analysis/disass/loop.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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); |