Commit Graph

792 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
ed43e241c5 arm: fix issue #459 reported by Ahmed Garhy 2015-08-15 14:20:23 +08:00
Nguyen Anh Quynh
2a3635d59b x86: fix target addresses of CALL/JMP rel16. bug reported by Ruslan Kabatsayev 2015-08-15 13:20:04 +08:00
Nguyen Anh Quynh
fe05cb316f x86: REPNE prefix is valid for LODSD. this fixes the bug reported by Ruslan Kabatsayev 2015-08-14 22:09:07 +08:00
Nguyen Anh Quynh
bbc33d6d63 x86: repne prefix can come with INS/OUTS/LODS instructions. bug reported by Ruslan Kabatsayev 2015-08-14 21:34:26 +08:00
Nguyen Anh Quynh
1c6309cdb8 x86: fix operand size of farjmp/farcall. bug reported by Ruslan Kabatsayev 2015-08-14 10:46:42 +08:00
Nguyen Anh Quynh
6482ca156a x86: loope/loopne read EFLAGS. bug reported by Ruslan Kabatsayev 2015-08-14 08:57:34 +08:00
Nguyen Anh Quynh
5e318f6bab x86: LOOP* instructions should read/write *CX registers. bug reported by Ruslan Kabatsayev 2015-08-14 00:05:12 +08:00
Nguyen Anh Quynh
7279f319fa x86: fix operand size for farjmp/farcall instructions. bug reported by Ruslan Kabatsayev 2015-08-13 23:47:00 +08:00
Nguyen Anh Quynh
9b381dc307 x86: print ptr16 part of farjmp/farcall in positive form. issue reported by Ruslan Kabatsayev 2015-08-13 21:36:27 +08:00
Nguyen Anh Quynh
0088d2a318 sparc: fix POPC instruction. issue reported by @zonkzonk & @pancake 2015-08-13 19:13:40 +08:00
Nguyen Anh Quynh
8047fccb49 x86: fix need_zero_prefix() for MASM syntax 2015-08-10 00:03:21 -07:00
Nguyen Anh Quynh
62918abb60 support new syntax CS_OPT_SYNTAX_MASM for X86 2015-08-09 10:34:19 -07:00
Zach Riggle
1e882cf542 Add ARM64_GRP_INT to AArch64 for SVC instruction 2015-07-27 12:42:06 -04:00
Nguyen Anh Quynh
a05d82a55f x86: truncat immediate for non-64bit. this fixes the disassembly of the code e9e9eeeeee in 32bit mode 2015-07-11 10:00:29 +08:00
Nguyen Anh Quynh
fec23ae531 fix autogen_x86imm.py to handle some special instructions. this fixed issue #411 reported by @pancake 2015-06-30 20:49:55 +08:00
Nguyen Anh Quynh
de6fa911b5 skip _LOCK_ instructions for augoten_x86.imm.py 2015-06-28 13:14:36 +08:00
Nguyen Anh Quynh
de8dd26780 x86: handle operand size properly for immediate operands 2015-06-28 12:18:13 +08:00
Nguyen Anh Quynh
517a0fe68e mips: remove alias_insns map 2015-06-22 15:30:25 +08:00
Nguyen Anh Quynh
2ad9eb2a43 mips: delete the alias map SUBU to NEGU. bug reported by @joelpx 2015-06-22 11:21:14 +08:00
w4kfu
e3303c1d8c add CS_AC_READ for X86_CALL16r, X86_CALL32r, X86_CALL64r, X86_JMP16r, X86_JMP32r, X86_JMP64r 2015-06-19 17:19:27 +02:00
Nguyen Anh Quynh
3dcbc07e04 mips: remove dead code reported by Coverity 2015-06-17 14:05:46 +08:00
Nguyen Anh Quynh
4a273b7e92 mips: return Fail on assert() that we ignored before 2015-06-16 14:06:34 +08:00
Nguyen Anh Quynh
761c9c84a4 ppc: return failure when Base>=32 in decodeMemRIOperands() 2015-06-16 14:03:07 +08:00
Nguyen Anh Quynh
011bf8bf84 ppc: handle invalid CR bits with more than 8 zeros in decodeCRBitMOperand(). bug reported by @felixgr 2015-06-16 13:59:36 +08:00
Nguyen Anh Quynh
c009dc6dbf mips: fix OOB issue in DecodeRegListOperand() reported by @felixgr 2015-06-16 12:29:33 +08:00
Nguyen Anh Quynh
0e9da8736a x86: treat prefix-only sequences of bytes as invalid code. this fixes a NDP reported by @felixgr 2015-06-16 11:57:22 +08:00
Nguyen Anh Quynh
53a059b581 fix warnings on some unused functions when CAPTONE_DIET mode is turn on 2015-06-08 21:51:19 +08:00
Nguyen Anh Quynh
6183e381f9 ppc: avoid potential memleak issue when alias mnemonic is empty in PPC_printInst() 2015-06-06 18:06:38 +08:00
Nguyen Anh Quynh
3cf62514ce ppc: make sure alias mnememonic is not empty in PPC_printInst() 2015-06-06 16:09:15 +08:00
Nguyen Anh Quynh
22bc86f4fe xcore: increase op_count in set_mem_access() only on register operand. bug reported by Ben Nagy 2015-06-06 12:30:14 +08:00
Nguyen Anh Quynh
08df00b9ae x86: properly handle AL/AX/EAX operand of OUT instruction in AT&T syntax 2015-06-06 00:30:00 +08:00
Nguyen Anh Quynh
f16c9bd400 xcore: turn off doing_mem after each printing each instruction. this fixes a memory corruption reported by @felixgr 2015-06-05 18:06:46 +08:00
Nikolay Igotti
1d9615de78 Fix Thumb disassembler memory corruption with IT sequence (issue #385) 2015-06-03 22:12:15 +08:00
Nguyen Anh Quynh
aceb2bb8a1 x86: fix value of access field for some instructions. bug reported by Ben Nagy 2015-05-27 23:55:30 +07:00
Nguyen Anh Quynh
4caced62e6 arm: add missing group string for CALL & INT. bug reported by Ben Nagy 2015-05-27 16:14:49 +07:00
Yegor Derevenets
aa17e372d1 Fix building by MSVC 2010 lacking inttypes.h 2015-05-24 19:12:27 +02:00
Nguyen Anh Quynh
106e0f1567 arm: fix an warning on conversion from uint64_t to bool. issue reported by @yegord 2015-05-24 21:33:45 +08:00
Nguyen Anh Quynh
b6f0d440b2 arm64: print immediate as signed int64 for memory operands. suggested by @pancake 2015-05-23 23:57:00 +08:00
Nguyen Anh Quynh
a071b4750a arm64: make the new code instroduced by David more friendly with MSVC & do check for valid detail pointer before updating writeback 2015-05-19 21:18:36 +08:00
Nguyen Anh Quynh
320b383c16 Merge branch 'next' of https://github.com/DavidCallahan/capstone into DavidCallahan-next 2015-05-19 21:09:59 +08:00
David Callahan
19dc1ce875 fix stray typo 2015-05-18 11:58:21 -07:00
David Callahan
4cd188502f reformat 2015-05-16 09:52:12 -07:00
David Callahan
63542aba18 merge 2015-05-16 09:44:50 -07:00
David Callahan
9c95bdef67 fix setting writeback for post index memory accesses 2015-05-16 09:40:24 -07:00
Nguyen Anh Quynh
fb59de4a87 x86: make all shifted instructions to support first operand in AT&T syntax. issue reported by @bipulr 2015-05-16 15:38:09 +08:00
Nguyen Anh Quynh
b0217f6ebd ppc: fix an warning on comparison of unsigned int 2015-05-16 09:25:29 +08:00
Nguyen Anh Quynh
79cc0449b2 Merge branch 'ppc64' of https://github.com/randomstuff/capstone into randomstuff-ppc64 2015-05-16 09:20:19 +08:00
Nguyen Anh Quynh
94fbce1495 x86: CALL should modify stack pointer register. also, relative CALL should references instruction pointer. issue reported by @zachriggle 2015-05-15 12:13:07 +08:00
Gabriel Corona
8102aacfda Make PowerPC imm 64 bit (instad 32 bit) 2015-05-14 23:16:55 +02:00
David Callahan
63547c70d4 fix setting writeback for post index memory accesses 2015-05-10 16:39:15 -07:00