mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-03 12:12:06 +00:00
Fix capstone x86 disassembler showing kernel addresses immediates
This commit is contained in:
parent
06aae3080e
commit
49332a26ba
18
shlr/capstone-patches/ut64.patch
Normal file
18
shlr/capstone-patches/ut64.patch
Normal file
@ -0,0 +1,18 @@
|
||||
diff --git a/arch/X86/X86IntelInstPrinter.c b/arch/X86/X86IntelInstPrinter.c
|
||||
index 57778a7..ad62378 100644
|
||||
--- a/arch/X86/X86IntelInstPrinter.c
|
||||
+++ b/arch/X86/X86IntelInstPrinter.c
|
||||
@@ -421,11 +421,8 @@ static void printImm(int syntax, SStream *O, int64_t imm, bool positive)
|
||||
if (imm < 0) {
|
||||
if (imm == 0x8000000000000000LL) // imm == -imm
|
||||
SStream_concat0(O, "0x8000000000000000");
|
||||
- else if (imm < -HEX_THRESHOLD)
|
||||
- SStream_concat(O, "-0x%"PRIx64, -imm);
|
||||
- else
|
||||
- SStream_concat(O, "-%"PRIu64, -imm);
|
||||
-
|
||||
+ else
|
||||
+ SStream_concat(O, "0x%"PRIx64, imm);
|
||||
} else {
|
||||
if (imm > HEX_THRESHOLD)
|
||||
SStream_concat(O, "0x%"PRIx64, imm);
|
Loading…
x
Reference in New Issue
Block a user