diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-10-01 23:37:20 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-10-03 19:24:25 +0200 |
| commit | 5f1e164fe1055a923856a0c82feaee92888c021f (patch) | |
| tree | ae60ce0c61826853588d876b068bc4390fdb9df4 | |
| parent | b8aa87630d125151adf7cf6621d3fcb44b2d6107 (diff) | |
| download | miasm-5f1e164fe1055a923856a0c82feaee92888c021f.tar.gz miasm-5f1e164fe1055a923856a0c82feaee92888c021f.zip | |
Objc: missing pure int check
| -rw-r--r-- | miasm2/core/objc.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/miasm2/core/objc.py b/miasm2/core/objc.py index d6c100ca..91ef6604 100644 --- a/miasm2/core/objc.py +++ b/miasm2/core/objc.py @@ -981,6 +981,8 @@ class ExprToAccessC(ExprReducer): return None void_type = self.types_mngr.void_ptr out = set() + if not arg1.expr.is_int(): + return None ptr_offset = int(arg1.expr) for info in arg0.info: if isinstance(info.ctype, ObjCArray): |