Skip to content

Commit

Permalink
Translate datasize when referencing an object not in the subdict to P…
Browse files Browse the repository at this point in the history
…USHSIZE (as it should refer to itself)
  • Loading branch information
alexcere committed Feb 26, 2025
1 parent 231de63 commit 7f40e43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/parser/cfg_instruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,10 @@ def translate_datasize(self, subobjects_keys: Dict[str, int]):
if pos is not None:
self.translate_builtin_args = ["{0:064X}".format(pos)]
else:
# TODO Maybe pass the element itself just in case?
self.op = "PUSHSIZE"
print("[WARNING ERROR]: Identifier not found in subobjects keys")
self.translate_builtin_args = ["{0:064X}".format(0)]
# self.translate_builtin_args = ["{0:064X}".format(0)]

# raise Exception("[ERROR]: Identifier not found in subobjects keys")

Expand Down

0 comments on commit 7f40e43

Please sign in to comment.