blob: 62076fa74fb2551286150a80b6f8f8ad5a82a651 [file] [log] [blame]
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +08001This file details the changelog of Capstone.
2
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +08003---------------------------------
Nguyen Anh Quynhfadbddc2014-11-18 22:53:32 +08004Version 3.0: November 2014
5
6[ API ]
7
8- New API: cs_disasm_iter & cs_malloc. See docs/README for tutorials.
9- Renamed cs_disasm_ex to cs_disasm (cs_disasm_ex is still supported, but
10 marked obsolete to be removed in future)
11- Support SKIPDATA mode, so Capstone can jump over unknown data and keep going
12 from the next legitimate instruction. See docs/README for tutorials.
13- More details provided in cs_detail struct for all architectures.
14- API version was bumped to 3.0.
15
16
17[ Bindings ]
18
19- Python binding supports Python3 (besides Python2).
20- Support Ocaml binding.
21
22
23[ Architectures ]
24
25- New architectures: Sparc, SystemZ & XCore.
26- Important bugfixes for Arm, Arm64, Mips, PowerPC & X86.
27- Support more instructions for Arm, Arm64, Mips, PowerPC & X86.
28- Always expose absolute addresses rather than relative addresses (Arm, Arm64,
29 Mips, PPC, Sparc, X86).
30- Use common instruction operand types REG, IMM, MEM & FP across all
31 architectures (to enable cross-architecture analysis).
32- Use common instruction group types across all architectures (to enable
33 cross-architecture analysis).
34
35
36[ X86 ]
37
38- X86 engine is mature & handles all the malware tricks (that we are aware of).
39- Added a lot of new instructions (such as AVX512, 3DNow, etc).
40- Add prefix symbols X86_PREFIX_REP/REPNE/LOCK/CS/DS/SS/FS/GS/ES/OPSIZE/ADDRSIZE.
41- Print immediate in positive form & hexadecimal for AND/OR/XOR instructions.
42- More friendly disassembly for JMP16i (in the form segment:offset)
43
44
45[ Mips ]
46
47- Engine added supports for new hardware modes: Mips32R6 (CS_MODE_MIPS32R6) &
48 MipsGP64 (CS_MODE_MIPSGP64).
49- Removed the ABI-only mode CS_MODE_N64.
50- New modes CS_MODE_MIPS32 & CS_MODE_MIPS64 (to use instead of CS_MODE_32 &
51 CS_MODE_64).
52
53
54[ ARM ]
55
56- Support new mode CS_MODE_V8 for Armv8 A32 encodings.
57- Print immediate in positive form & hexadecimal for AND/ORR/EOR/BIC instructions
58
59
60[ ARM64 ]
61
62- Print immediate in hexadecimal for AND/ORR/EOR/TST instructions.
63
64
65[ PowerPC ]
66
67- Do not print a dot in front of absolute address.
68
69
70[ Other features ]
71
72- Support for Microsoft Visual Studio (so enable Windows native compilation).
73- Support CMake compilation.
74- Cross-compile for Android.
75- Build libraries/tests using XCode project
76- Much faster, while consuming less memory for all architectures.
77
78---------------------------------
Nguyen Anh Quynh2f43c392014-04-01 09:19:19 +080079Version 2.1.2: April 3rd, 2014
Nguyen Anh Quynh025a3452014-03-30 22:39:22 +080080
81This is a stable release to fix some bugs deep in the core. There is no update
82to any architectures or bindings, so bindings version 2.1 can be used with this
83version 2.1.2 just fine.
84
85[ Core changes]
86
Nguyen Anh Quynh2f43c392014-04-01 09:19:19 +080087- Support cross-compilation for all iDevices (iPhone/iPad/iPod).
88- X86: do not print memory offset in negative form.
Nguyen Anh Quynh025a3452014-03-30 22:39:22 +080089- Fix a bug in X86 when Capstone cannot handle short instruction.
90- Print negative number above -9 without prefix 0x (arm64, mips, arm).
91- Correct the SONAME setup for library versioning (Linux, *BSD, Solaris).
92- Set library versioning for dylib of OSX.
93
94---------------------------------
Nguyen Anh Quynh56db6392014-03-11 11:24:46 +080095Version 2.1.1: March 13th, 2014
96
97This is a stable release to fix some bugs deep in the core. There is no update
98to any architectures or bindings, so bindings version 2.1 can be used with this
99version 2.1.1 just fine.
100
101[ Core changes]
102
103- Fix a buffer overflow bug in Thumb mode (ARM). Some special input can
104 trigger this flaw.
105- Fix a crash issue when embedding Capstone into OSX kernel. This should
Nguyen Anh Quynha96d25e2014-03-11 11:41:09 +0800106 also enable Capstone to be embedded into other systems with limited stack
Nguyen Anh Quynh56db6392014-03-11 11:24:46 +0800107 memory size such as Linux kernel or some firmwares.
108- Use a proper SONAME for library versioning (Linux).
109
110---------------------------------
Nguyen Anh Quynhf51971d2014-03-05 00:09:49 +0800111Version 2.1: March 5th, 2014
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800112
113[ API changes ]
114
115- API version has been bumped to 2.1.
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800116- Change prototype of cs_close() to be able to invalidate closed handle.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800117 See http://capstone-engine.org/version_2.1_API.html for more information.
118- Extend cs_support() to handle more query types, not only about supported
119 architectures. This change is backward compatible, however, so existent code
120 do not need to be modified to support this.
121- New query type CS_SUPPORT_DIET for cs_support() to ask about diet status of
122 the engine.
123- New error code CS_ERR_DIET to report errors about newly added diet mode.
124- New error code CS_ERR_VERSION to report issue of incompatible versions between
125 bindings & core engine.
126
127
128[ Core changes ]
129
130- On memory usage, Capstone uses about 40% less memory, while still faster
131 than version 2.0.
132- All architectures are much smaller: binaries size reduce at least 30%.
133 Especially, X86-only binary reduces from 1.9MB to just 720KB.
134- Support "diet" mode, in which engine size is further reduced (by around 40%)
135 for embedding purpose. The price to pay is that we have to sacrifice some
136 non-critical data fields. See http://capstone-engine.org/diet.html for more
137 details.
138
139
140[ Architectures ]
141
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800142- Update all 5 architectures to fix bugs.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800143- PowerPC:
144 - New instructions: FMR & MSYNC.
145- Mips:
146 - New instruction: DLSA
147- X86:
148 - Properly handle AVX-512 instructions.
149 - New instructions: PSETPM, SALC, INT1, GETSEC.
150 - Fix some memory leaking issues in case of prefixed instructions such
151 as LOCK, REP, REPNE.
152
153
154[ Python binding ]
155
156- Verify the core version at initialization time. Refuse to run if its version
157 is different from the core's version.
158- New API disasm_lite() added to Cs class. This light API only returns tuples of
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800159 (address, size, mnemonic, op_str), rather than list of CsInsn objects. This
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800160 improves performance by around 30% in some benchmarks.
Nguyen Anh Quynh7fc81212014-03-04 23:56:42 +0800161- New API version_bind() returns binding's version, which might differ from
Nguyen Anh Quynhb0b73082014-03-03 17:57:15 +0800162 the core's API version if the binding is out-of-date.
Nguyen Anh Quynhf51971d2014-03-05 00:09:49 +0800163- New API debug() returns information on Cython support, diet status & archs
Nguyen Anh Quynh7fc81212014-03-04 23:56:42 +0800164 compiled in.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800165- Fixed some memory leaking bugs for Cython binding.
166- Fix a bug crashing Cython code when accessing @regs_read/regs_write/groups.
Nguyen Anh Quynhe6c378e2014-03-03 17:25:53 +0800167- Support diet mode.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800168
169
170[ Java binding ]
171
172- Fix some memory leaking bugs.
Nguyen Anh Quynhe6c378e2014-03-03 17:25:53 +0800173- New API version() returns combined version.
174- Support diet mode.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800175- Better support for detail option.
176
177
178[ Miscellaneous ]
179
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800180- make.sh now can uninstall the core engine. This is done with:
181
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800182 $ sudo ./make.sh uninstall
183
184----------------------------------
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800185Version 2.0: January 22nd, 2014
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800186
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800187Release 2.0 deprecates verison 1.0 and brings a lot of crucial changes.
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800188
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800189[ API changes ]
190
191- API version has been bumped to 2.0 (see cs_version() API)
192- New API cs_strerror(errno) returns a string describing error code given
193 in its only argument.
194- cs_version() now returns combined version encoding both major & minor versions.
195- New option CS_OPT_MODE allows to change engine’s mode at run-time with
196 cs_option().
197- New option CS_OPT_MEM allows to specify user-defined functions for dynamically
198 memory management used internally by Capstone. This is useful to embed Capstone
199 into special environments such as kernel or firware.
200- New API cs_support() can be used to check if this lib supports a particular
201 architecture (this is necessary since we now allow to choose which architectures
202 to compile in).
203- The detail option is OFF by default now. To get detail information, it should be
204 explicitly turned ON. The details then can be accessed using cs_insn.detail
205 pointer (to newly added structure cs_detail)
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800206
207
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800208[ Core changes ]
209
210- On memory usage, Capstone uses much less memory, but a lot faster now.
211- User now can choose which architectures to be supported by modifying config.mk
212 before compiling/installing.
213
214
215[ Architectures ]
216
217- Arm
218 - Support Big-Endian mode (besides Little-Endian mode).
Nguyen Anh Quynh6c5eec52014-01-22 18:33:35 +0800219 - Support friendly register, so instead of output sub "r12,r11,0x14",
220 we have "sub ip,fp,0x14".
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800221- Arm64: support Big-Endian mode (besides Little-Endian mode).
222- PowerPC: newly added.
Nguyen Anh Quynh6c5eec52014-01-22 18:33:35 +0800223- Mips: support friendly register, so instead of output "srl $2,$1,0x1f",
224 we have "srl $v0,$at,0x1f".
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800225- X86: bug fixes.
226
227
228[ Python binding ]
229
230- Python binding is vastly improved in performance: around 3 ~ 4 times faster
231 than in 1.0.
232- Cython support has been added, which can further speed up over the default
233 pure Python binding (up to 30% in some cases)
234- Function cs_disasm_quick() & Cs.disasm() now use generator (rather than a list)
235 to return succesfully disassembled instructions. This improves the performance
236 and reduces memory usage.
237
238
239[ Java binding ]
240
241- Better performance & bug fixes.
242
243
244[ Miscellaneous ]
245
246- Fixed some installation issues with Gentoo Linux.
247- Capstone now can easily compile/install on all *nix, including Linux, OSX,
248 {Net, Free, Open}BSD & Solaris.
249
250----------------------------------
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800251[Version 1.0]: December 18th, 2013
252
253- Initial public release.
254