Skip to content

Commit

Permalink
Add x86-32 arch variant to the list of known arch in the binexport lo…
Browse files Browse the repository at this point in the history
…ader
  • Loading branch information
Fenrisfulsur committed Jul 29, 2024
1 parent 99f9065 commit 4a1722f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qbindiff/loader/backend/binexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def capstone_context(arch, mode):
context.detail = True
return context

if binexport_arch == "x86-32":
if binexport_arch == "x86-32" or binexport_arch == "x86":
return capstone_context(capstone.CS_ARCH_X86, capstone.CS_MODE_32 | mode)
elif binexport_arch == "x86-64":
return capstone_context(capstone.CS_ARCH_X86, capstone.CS_MODE_64 | mode)
Expand Down Expand Up @@ -313,7 +313,7 @@ def _disassemble(
capstone_mode = 0

# No need to guess the context for these arch
if arch in ("x86", "x86-64", "MIPS-32", "MIPS-64", "ARM-64"):
if arch in ("x86", "x86-32", "x86-64", "MIPS-32", "MIPS-64", "ARM-64"):
pass

# For arm thumb use appropriate context guessing heuristics
Expand Down

0 comments on commit 4a1722f

Please sign in to comment.