diff options
-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); |