about summary refs log tree commit diff stats
path: root/miasm2/core/asmbloc.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2016-01-11 15:55:57 +0100
committerAjax <commial@gmail.com>2016-01-11 15:59:30 +0100
commitf921e8f5542bb6064071924595216417a194dbea (patch)
treef15b66eff5c7893a4a434cfc5e5c51bca0b0020f /miasm2/core/asmbloc.py
parent6b09332775857805741be7ef6b1fc98e189f4d5b (diff)
downloadmiasm-f921e8f5542bb6064071924595216417a194dbea.tar.gz
miasm-f921e8f5542bb6064071924595216417a194dbea.zip
AsmConstraint: ensure label is always an asm_label
Diffstat (limited to '')
-rw-r--r--miasm2/core/asmbloc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/miasm2/core/asmbloc.py b/miasm2/core/asmbloc.py
index 52d5c974..e44f27ed 100644
--- a/miasm2/core/asmbloc.py
+++ b/miasm2/core/asmbloc.py
@@ -78,6 +78,9 @@ class asm_constraint(object):
     c_bad = "c_bad"
 
     def __init__(self, label, c_t=c_to):
+        # Sanity check
+        assert isinstance(label, asm_label)
+
         self.label = label
         self.c_t = c_t