From c2e3cfb0422f281b1effcd0750c52bc60f6d9cbb Mon Sep 17 00:00:00 2001 From: Ajax Date: Mon, 11 Jan 2016 16:29:33 +0100 Subject: AsmBloc: handle multiple constraints to the same block Always the same type -> one of the constraint c_bad and sth -> error c_next and c_to -> c_next --- miasm2/core/parse_asm.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'miasm2/core/parse_asm.py') diff --git a/miasm2/core/parse_asm.py b/miasm2/core/parse_asm.py index 5437ca22..e55a9af8 100644 --- a/miasm2/core/parse_asm.py +++ b/miasm2/core/parse_asm.py @@ -316,5 +316,9 @@ def parse_txt(mnemo, attrib, txt, symbol_pool=None): i += 1 for block in blocks: + # Fix multiple constraints + block.fix_constraints() + + # Log block asmbloc.log_asmbloc.info(block) return blocks, symbol_pool -- cgit 1.4.1