about summary refs log tree commit diff stats
path: root/miasm/core/cpu.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2020-06-01 15:34:50 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2020-06-01 16:23:19 +0200
commit381e319a289a8732a84e77817ed849a37e2fad4f (patch)
tree9606ae0964271fca251e176aa5667145734ee64f /miasm/core/cpu.py
parentaed83b91e76a464e109d66632945e34ab81d2c85 (diff)
downloadfocaccia-miasm-381e319a289a8732a84e77817ed849a37e2fad4f.tar.gz
focaccia-miasm-381e319a289a8732a84e77817ed849a37e2fad4f.zip
Test expr none
Diffstat (limited to 'miasm/core/cpu.py')
-rw-r--r--miasm/core/cpu.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/miasm/core/cpu.py b/miasm/core/cpu.py
index ec8d95bc..aee22c97 100644
--- a/miasm/core/cpu.py
+++ b/miasm/core/cpu.py
@@ -1589,6 +1589,9 @@ class imm_noarg(object):
 
         assert(m2_expr.is_expr(e))
         self.expr = e
+        if self.expr is None:
+            log.debug('cannot fromstring int %r', text)
+            return None, None
         return start, stop
 
     def decodeval(self, v):