Commit Graph

1660 Commits

Author SHA1 Message Date
Félix Cloutier
aaa01ca910 Added missing include path directives. Oops. 2014-10-15 03:04:21 -04:00
Félix Cloutier
e39cd6a1b4 Removed artificial dependency between framework and static lib 2014-10-15 03:04:08 -04:00
Félix Cloutier
e36b8a3834 Adding CAPSTONE_SHARED setting to framework and dylib 2014-10-03 02:15:01 -04:00
Félix Cloutier
25414e301f Adding framework target 2014-10-03 02:12:39 -04:00
Félix Cloutier
cc30045a67 Added README file; removed dubious config lines 2014-10-03 01:12:40 -04:00
Félix Cloutier
8bc327aca1 (Re-)added preprocessor macros 2014-10-02 17:06:09 -04:00
Félix Cloutier
89005e0fca Changed .gitignore file to ignore xcuserdata dirs 2014-10-02 16:28:09 -04:00
Félix Cloutier
3829e49d84 Deleted unreferenced file 2014-10-02 16:27:44 -04:00
Félix Cloutier
073086b78e Removing schema files since they are normally not committed 2014-10-02 16:23:18 -04:00
Félix Cloutier
0c6c6222b2 Readded targets because I screwed up 2014-10-02 16:21:38 -04:00
Félix Cloutier
1b994ffa35 Added test targets, made sure that tests run 2014-10-02 16:09:36 -04:00
Félix Cloutier
1e97886ca6 Xcode project now builds 2014-10-02 14:36:22 -04:00
Nguyen Anh Quynh
4d3ccf46fd simplify the way to calculate insn_cache in cs_disasm(). suggested by @hlide 2014-10-03 00:39:56 +08:00
Nguyen Anh Quynh
5267baf1f1 fix conflicts 2014-10-02 20:52:02 +08:00
danghvu
2fb7c8e46a Fix a bug with previous patch 2014-10-02 07:38:53 -05:00
Nguyen Anh Quynh
e96935ed68 ppc: remove duplicate op_addReg() in printAliasInstrEx() 2014-10-02 17:09:22 +08:00
Nguyen Anh Quynh
cd18208f49 package: update Macports & Homebrew 2014-10-02 16:34:05 +08:00
Nguyen Anh Quynh
fff1307980 Makefile: simplify generate-pkgcfg by using INCDIR. reviewed by Pancake 2014-10-02 16:14:26 +08:00
Nguyen Anh Quynh
e702b55507 Makefile: do not remove old libs in install 'target' 2014-10-02 16:01:00 +08:00
Nguyen Anh Quynh
ffe4435bb4 package: update FreeBSD package 2014-10-02 15:54:28 +08:00
Nguyen Anh Quynh
910a4df9a3 tests: compile without -O3 flag. this is to make it easier to maintain FreeBSD package 2014-10-02 15:49:53 +08:00
Nguyen Anh Quynh
f9d8a89c24 correct some comments in cs_disasm() 2014-10-02 12:37:32 +08:00
danghvu
0d1aad1e9f Increase cache size by golden ratio 2014-10-01 23:17:52 -05:00
Nguyen Anh Quynh
a90b047d9f x86: simplify printPCRelImm() in calculating absolute address. also fix the issue on AT&T syntax 2014-10-02 12:04:35 +08:00
Nguyen Anh Quynh
27a4a08bb2 fix a double-free bug introduced by the last change in cs_disasm() 2014-10-02 10:31:37 +08:00
Nguyen Anh Quynh
ea3c089591 some simple optimizations for speed. this improves performance about 5% 2014-10-02 10:17:55 +08:00
Nguyen Anh Quynh
16f330c37a cs_disasm(): properly resize the cache when count in range [2, INSN_CACHE_SIZE] 2014-10-02 10:09:59 +08:00
Nguyen Anh Quynh
bff4fbd544 x86: properly calculate absolute addresses for relative CALL & JMP - for AT&T syntax. thanks Perdo, again 2014-10-01 22:57:51 +08:00
Nguyen Anh Quynh
a92d2cba1d x86: properly calculate absolute addresses of relative CALL & JMP. thanks Pedro for valuable helps 2014-10-01 22:10:22 +08:00
Nguyen Anh Quynh
df92a7f346 mips: BC0F is relative branch instruction. bug reported by Pancake 2014-10-01 21:25:18 +08:00
Nguyen Anh Quynh
48eb13c33c ppc: add detail for alias instructions introduced in the latest change by @kratolp 2014-10-01 21:18:55 +08:00
Nguyen Anh Quynh
6b731a097f fix conflicts when merging 2014-10-01 21:05:51 +08:00
Nguyen Anh Quynh
630bcd6d4e ppc: c99 2014-10-01 21:02:30 +08:00
Nguyen Anh Quynh
70fa90fbfe ppc: coding style 2014-10-01 18:21:02 +08:00
Nguyen Anh Quynh
147035ed62 suite: chmod +x ppcbranch.py 2014-10-01 18:17:37 +08:00
kratolp
73835104a4 Merge branch 'next' of https://github.com/aquynh/capstone into next
Conflicts:
	arch/PowerPC/PPCInstPrinter.c
2014-10-01 11:54:14 +02:00
kratolp
a3f0aef79a PPC: Fix absolute/relative offset for branch instruction
PPC: Fix non handling of bc instruction that uses the CTR
2014-10-01 11:39:15 +02:00
Nguyen Anh Quynh
a3f87a54d9 java: add 'check' target to Makefile 2014-10-01 17:13:58 +08:00
Nguyen Anh Quynh
984d45068c Makefile: add 'check' target 2014-10-01 16:42:29 +08:00
Nguyen Anh Quynh
711fd8e3ed update RELEASE_NOTES 2014-10-01 15:07:06 +08:00
Nguyen Anh Quynh
a2c5e4c7ef TODO: Ocaml binding is working now (though still incomplete) 2014-10-01 15:04:41 +08:00
Nguyen Anh Quynh
c96f1b06b2 x86: fix Out-of-bounds read error in is16BitEquivalent(). issue reported by Coverity 2014-10-01 14:35:29 +08:00
Nguyen Anh Quynh
9bf1b87a66 mips: fix out-of-bounds read error in Mips_reg_name(). issue reported by Coverity 2014-10-01 14:32:15 +08:00
Nguyen Anh Quynh
e135056f17 fix a negative array index read in PPC_alias_insn(). issue reported by Coverity 2014-10-01 14:23:35 +08:00
Nguyen Anh Quynh
9d54544288 mips: verify if RegDecoder can get NULL value. issue reported by Coverity 2014-10-01 14:16:07 +08:00
Nguyen Anh Quynh
7e644f0fea ppc: initialize needComma to false. issue reported by Coverity 2014-10-01 14:13:48 +08:00
Nguyen Anh Quynh
839890b83a tests: use cs_group_name() to print out group names in test_detail.c & test_detail.py 2014-10-01 10:51:18 +08:00
Nguyen Anh Quynh
523ca99087 cs_disasm(): make sure cache_size is smaller than INSN_CACHE_SIZE to avoid integer overflow in malloc() 2014-10-01 10:46:37 +08:00
Nguyen Anh Quynh
50eeba2a86 avoid setting instruction cache size to @count when Capstone uses user-customized memory management, which might fail in resource scarce env such as kernel 2014-09-30 13:28:02 +08:00
Nguyen Anh Quynh
ac98ca0129 set buffer size for instruction cache in cs_disasm() to @count if @count > 0. this avoids realloc() in cases where @count is pre-determined. thanks Dang Hoang Vu for the idea 2014-09-30 13:17:36 +08:00