From f7de8945bbc0619962ab90f5910b840bb0fd0124 Mon Sep 17 00:00:00 2001 From: Bernhard Mueller Date: Wed, 4 Oct 2017 09:54:14 +0700 Subject: [PATCH] Fix: Last block not being added to disassembly block list --- disassembler/disassembly.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/disassembler/disassembly.py b/disassembler/disassembly.py index e95b1c86..f4c2c8d2 100644 --- a/disassembler/disassembly.py +++ b/disassembler/disassembly.py @@ -88,6 +88,11 @@ class Disassembly: index += 1 + # Add the last block + + current_block.update_length(blocklen) + self.blocks.append(current_block) + # Resolve cross-references for block in self.blocks: