Commit Graph

656 Commits

Author SHA1 Message Date
bughoho
ec31ea84ee https://github.com/aquynh/capstone/issues/483 2015-09-28 15:08:25 +08:00
Nguyen Anh Quynh
ebf0041e6a arm: another fix for #446. bug reported by @uxmal 2015-08-19 22:36:37 +08:00
Nguyen Anh Quynh
609e342fef x86: another attempt to fix #456 2015-08-19 09:34:56 +08:00
Nguyen Anh Quynh
0dde6707b9 x86: another attempt for #456 2015-08-16 18:43:49 +08:00
Nguyen Anh Quynh
0e45cd2904 x86: more AT&T fixes for #458 reported by Ruslan Kabatsayev 2015-08-15 23:51:36 +08:00
Nguyen Anh Quynh
e075bb5f7f x86: more fix for #458 2015-08-15 17:03:48 +08:00
Nguyen Anh Quynh
c3871eaa5a x86: fix issue #458 reported by Ruslan Kabatsayev 2015-08-15 15:05:27 +08:00
Nguyen Anh Quynh
4243d21a68 x86: fix issue #456 reported by Ruslan Kabatsayev 2015-08-15 14:46:51 +08:00
Nguyen Anh Quynh
2202a0d40d arm: fix issue #459 reported by Ahmed Garhy 2015-08-15 14:16:39 +08:00
Nguyen Anh Quynh
9899510e01 x86: fix target addresses of CALL/JMP rel16. bug reported by Ruslan Kabatsayev 2015-08-15 13:25:13 +08:00
Nguyen Anh Quynh
96ba58fd34 x86: REPNE prefix is valid for LODSD. this fixes the bug reported by Ruslan Kabatsayev 2015-08-14 22:08:41 +08:00
Nguyen Anh Quynh
b4c4d4506f x86: some AT&T instructions wrongly add one more operand in front (index 0). this fixes the issue reported by Ruslan Kabatsayev 2015-08-14 22:05:05 +08:00
Nguyen Anh Quynh
b0b5fb8db1 x86: repne prefix can come with INS/OUTS/LODS instructions. bug reported by Ruslan Kabatsayev 2015-08-14 21:34:09 +08:00
Nguyen Anh Quynh
12bd773d5e x86: rep* prefix read/write *CX register. bug reported by Ruslan Kabatsayev 2015-08-14 16:59:07 +08:00
Nguyen Anh Quynh
c0f3fad4a5 x86: fix operand size of farjmp/farcall. bug reported by Ruslan Kabatsayev 2015-08-14 10:46:55 +08:00
Nguyen Anh Quynh
d57786260a x86: loope/loopne read EFLAGS. bug reported by Ruslan Kabatsayev 2015-08-14 08:57:58 +08:00
Nguyen Anh Quynh
d4ce57bfda sparc: fix POPC instruction. bug reported by @zonkzonk & @pancake 2015-08-14 00:27:07 +08:00
Nguyen Anh Quynh
751f84f086 x86: LOOP* instructions should read/write *CX registers. bug reported by Ruslan Kabatsayev 2015-08-14 00:16:26 +08:00
Nguyen Anh Quynh
c0bf5feac9 x86: fix selector part of farjmp/farcall instructions. bug reported by Ruslan Kabatsayev 2015-08-13 23:38:01 +08:00
Nguyen Anh Quynh
1757603fb1 x86: truncat immediate for non-64bit. this fixes the disassembly of the code e9e9eeeeee in 32bit mode 2015-07-11 10:01:24 +08:00
Nguyen Anh Quynh
1304fc225a mips: remove alias_insns[] 2015-06-22 15:48:45 +08:00
Nguyen Anh Quynh
a25e41b76c mips: delete the alias map SUBU to NEGU. bug reported by @joelpx 2015-06-22 11:21:49 +08:00
Nguyen Anh Quynh
459556c769 x86: fix immediate operand of AND/OR/XOR instructions. bug reported by @yegord 2015-06-20 10:56:54 +08:00
Nguyen Anh Quynh
2f6ea60772 mips: return Fail on assert failure in MipsDisassembler.c 2015-06-16 14:09:25 +08:00
Nguyen Anh Quynh
3a46e85ad2 ppc: return failure when Base>=32 in decodeMemRIOperands() 2015-06-16 14:03:22 +08:00
Nguyen Anh Quynh
7ae9c9d9d3 ppc: handle invalid CR bits with more than 8 zeros in decodeCRBitMOperand(). bug reported by @felixgr 2015-06-16 13:59:10 +08:00
Nguyen Anh Quynh
e5aa75131b x86: treat prefix-only sequences of bytes as invalid code. this fixes a NDP reported by @felixgr 2015-06-16 11:57:45 +08:00
Nguyen Anh Quynh
fb18a93f73 ppc: avoid potential memleak issue when alias mnemonic is empty in PPC_printInst() 2015-06-06 19:11:25 +08:00
Nguyen Anh Quynh
5cb356061e ppc: make sure alias mnememonic is not empty in PPC_printInst() 2015-06-06 16:10:07 +08:00
Nguyen Anh Quynh
aa7c6cd6ce xcore: increase op_count in set_mem_access() only on register operand. bug reported by Ben Nagy 2015-06-06 12:30:56 +08:00
Nguyen Anh Quynh
e39f9e1ab9 x86: properly handle AL/AX/EAX operand of OUT instruction in AT&T syntax 2015-06-06 00:32:42 +08:00
Nguyen Anh Quynh
743832a80f x86: some algorithm instructions with immediate of 1 byte should be printed in positive form 2015-06-06 00:04:03 +08:00
Nguyen Anh Quynh
b0a1832d2d xcore: turn off doing_mem after each printing each instruction. this fixes a memory corruption reported by @felixgr 2015-06-05 18:06:22 +08:00
Nguyen Anh Quynh
c0bf7f6e48 x86: revert the old change that check prefix location more strictly 2015-06-04 21:30:15 +08:00
Nikolay Igotti
1bcb7d6cc6 Fix Thumb disassembler memory corruption with IT sequence (issue #385) 2015-06-03 15:38:45 +02:00
Nguyen Anh Quynh
b1d12e50d4 arm: fix an warning on conversion from uint64_t to bool. issue reported by @yegord 2015-05-24 21:33:17 +08:00
Nguyen Anh Quynh
5c48bb22f9 arm: remove ASRS, LSRS, SUBS & MOVS from mapping table insns[]. backported from the 'next' branch, but do not really remove these 'dead' instructions for compatibility reason 2015-05-08 15:08:35 +08:00
Nguyen Anh Quynh
accd198468 arm: BLX should read PC & modify LR registers. bug reported by Zach Riggle 2015-05-08 15:04:09 +08:00
Nguyen Anh Quynh
c52d8cd7d3 x86: make all shifted instructions to support first operand in AT&T syntax 2015-05-08 14:23:08 +08:00
Ole André Vadla Ravnås
2ac028681c Fix handling of cmpxchg16b with lock prefix
This was discovered when Frida's Stalker encountered the following
x86-64 instruction while tracing code in ntdll: `f0 49 0f c7 0a`.
2015-04-23 20:44:21 +08:00
learn_more
a129475a26 Fix compiling with nmake 2015-04-14 15:36:10 +02:00
Nguyen Anh Quynh
b2c6fd566c Merge pull request #311 from jpenalbae/sparc-branchfix
Sparc conditional branches displacement fix
2015-04-13 22:21:53 +08:00
NighterMan
b01881b432 Improved displacement decoding for sparc banching instructions 2015-04-11 04:55:16 +02:00
reverser
cf6201419a Add support to embed Capstone into OS X kernel extensions. 2015-04-10 23:28:12 +08:00
NighterMan
32a0ab7f50 Sparc conditional branches displacement fix 2015-04-10 04:47:42 +02:00
Nguyen Anh Quynh
52ef895d53 x86: tighter check on return of consumeByte() & lookAtByte(). this fixes the segfault on the sole input of 0xf3 reported by windhl 2015-04-08 12:18:33 +08:00
Nguyen Anh Quynh
1739ecc651 x86: tighter check on return of consumeByte() & lookAtByte(). this fixes the segfault on the sole input of 0xf3 reported by windhl 2015-04-08 12:18:27 +08:00
Nguyen Anh Quynh
4504dcdc48 Merge branch 'master' into v3 2015-04-07 13:21:56 +08:00
Nguyen Anh Quynh
e1bde17b6b x86: fix instruction 66f20f59ff reported by @maijin 2015-04-02 12:44:23 +08:00
Nguyen Anh Quynh
3cd999f631 x86: fix the pause instruction reported by @maijin in issue #298 2015-04-02 12:44:11 +08:00