From aca3edf17f3dba99664c5b3bfc7b7d084d8d21a3 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Tue, 6 Oct 2020 14:57:22 -0400 Subject: Verify mlil is not None in high level IL mapping API. --- python/lowlevelil.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') diff --git a/python/lowlevelil.py b/python/lowlevelil.py index 64a862d6..396f3925 100644 --- a/python/lowlevelil.py +++ b/python/lowlevelil.py @@ -1028,6 +1028,8 @@ class LowLevelILInstruction(object): @property def high_level_il(self): """Gets the high level IL expression corresponding to this expression (may be None for eliminated instructions)""" + if self.mlil is None: + return None return self.mlil.hlil @property -- cgit v1.3.1