From 4a1722f7fa4c73dfdaf5e0d34f452110a9065bba Mon Sep 17 00:00:00 2001 From: Fenrisfulsur Date: Mon, 29 Jul 2024 10:01:25 +0200 Subject: [PATCH] Add x86-32 arch variant to the list of known arch in the binexport loader --- src/qbindiff/loader/backend/binexport.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qbindiff/loader/backend/binexport.py b/src/qbindiff/loader/backend/binexport.py index 92930be..255342e 100644 --- a/src/qbindiff/loader/backend/binexport.py +++ b/src/qbindiff/loader/backend/binexport.py @@ -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) @@ -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