blob: 5da1f5c37a20b5c3603406f2a828c2ddbcb0fc2c [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 Quynh6eeb4a52015-03-11 12:12:33 +08004Version 3.0.2: March 11th, 2015
5
6
7[ Library ]
8
9- On *nix, only export symbols that are part of the API (instead of all
10 the internal symbols).
11
12
13[ X86 ]
14
15- Do not consider 0xF2 as REPNE prefix if it is a part of instruction encoding.
16- Fix implicit registers read/written & instruction groups of some instructions.
17- More flexible on the order of prefixes, so better handle some tricky
18 instructions.
19- REPNE prefix can go with STOS & MOVS instructions.
20- Fix a compilation bug for X86_REDUCE mode.
21- Fix operand size of instructions with operand PTR []
22
23
24[ Arm ]
25
26- Fix a bug where arm_op_mem.disp is wrongly calculated (in DETAIL mode).
27- Fix a bug on handling the If-Then block.
28
29
30[ Mips ]
31
32- Sanity check for the input size for MIPS64 mode.
33
34
35[ MSVC ]
36
37- Compile capstone.dll with static runtime MSVCR built in.
38
39
40[ Python binding ]
41
42- Fix a compiling issue of Cython binding with gcc 4.9.
43
44---------------------------------
45Version 3.0.1: February 03rd, 2015
Nguyen Anh Quynh59bc84d2015-02-03 16:28:27 +080046
47[ X86 ]
48
49- Properly handle LOCK, REP, REPE & REPNE prefixes.
50- Handle undocumented immediates for SSE's (V)CMPPS/PD/SS/SD instructions.
51- Print LJUMP/LCALL without * as prefix for Intel syntax.
52- Handle REX prefix properly for segment/MMX related instructions (x86_64).
53- Instruction with length > 15 is consider invalid.
54- Handle some tricky encodings for instructions MOVSXD, FXCH, FCOM, FCOMP,
55 FSTP, FSTPNCE, NOP.
56- Handle some tricky code for some X86_64 instructions with REX prefix.
57- Add missing operands in detail mode for PUSH , POP , IN/OUT reg, reg
58- MOV32ms & MOV32sm should reference word rather than dword.
59
60
61[ Arm64 ]
62
63- BL & BLR instructions do not read SP register.
64- Print absolute (rather than relative) address for instructions B, BL,
65 CBNZ, ADR.
66
67
68[ Arm ]
69
70- Instructions ADC & SBC do not update flags.
71- BL & BLX do not read SP, but PC register.
72- Alias LDR instruction with operands [sp], 4 to POP.
73- Print immediate operand of MVN instruction in positive hexadecimal form.
74
75
76[ PowerPC ]
77
78- Fix some compilation bugs when DIET mode is enable.
79- Populate SLWI/SRWI instruction details with SH operand.
80
81
82[ Python binding ]
83
84- Fix a Cython bug when CsInsn.bytes returns a shorten array of bytes.
85- Fixed a memory leak for Cython disasm functions when we immaturely quit
86 the enumeration of disassembled instructions.
87- Fix a NULL memory access issue when SKIPDATA & Detail modes are enable
88 at the same time.
89- Fix a memory leaking bug when when we stop enumeration over the disassembled
90 instructions prematurely.
91- Export generic operand types & groups (CS_OP_xxx & CS_GRP_xxx).
92
93---------------------------------
Nguyen Anh Quynhb53a59a2014-11-19 17:56:04 +080094Version 3.0: November 19th, 2014
Nguyen Anh Quynhfadbddc2014-11-18 22:53:32 +080095
96[ API ]
97
98- New API: cs_disasm_iter & cs_malloc. See docs/README for tutorials.
99- Renamed cs_disasm_ex to cs_disasm (cs_disasm_ex is still supported, but
100 marked obsolete to be removed in future)
101- Support SKIPDATA mode, so Capstone can jump over unknown data and keep going
102 from the next legitimate instruction. See docs/README for tutorials.
103- More details provided in cs_detail struct for all architectures.
104- API version was bumped to 3.0.
105
106
107[ Bindings ]
108
109- Python binding supports Python3 (besides Python2).
110- Support Ocaml binding.
Nguyen Anh Quynh89460292014-11-19 14:37:08 +0800111- Java: add close() method to be used to deinitialize a Capstone object when
112 no longer use it.
Nguyen Anh Quynhfadbddc2014-11-18 22:53:32 +0800113
114
115[ Architectures ]
116
117- New architectures: Sparc, SystemZ & XCore.
118- Important bugfixes for Arm, Arm64, Mips, PowerPC & X86.
119- Support more instructions for Arm, Arm64, Mips, PowerPC & X86.
120- Always expose absolute addresses rather than relative addresses (Arm, Arm64,
121 Mips, PPC, Sparc, X86).
122- Use common instruction operand types REG, IMM, MEM & FP across all
123 architectures (to enable cross-architecture analysis).
124- Use common instruction group types across all architectures (to enable
125 cross-architecture analysis).
126
127
128[ X86 ]
129
130- X86 engine is mature & handles all the malware tricks (that we are aware of).
131- Added a lot of new instructions (such as AVX512, 3DNow, etc).
132- Add prefix symbols X86_PREFIX_REP/REPNE/LOCK/CS/DS/SS/FS/GS/ES/OPSIZE/ADDRSIZE.
133- Print immediate in positive form & hexadecimal for AND/OR/XOR instructions.
134- More friendly disassembly for JMP16i (in the form segment:offset)
135
136
137[ Mips ]
138
139- Engine added supports for new hardware modes: Mips32R6 (CS_MODE_MIPS32R6) &
140 MipsGP64 (CS_MODE_MIPSGP64).
141- Removed the ABI-only mode CS_MODE_N64.
142- New modes CS_MODE_MIPS32 & CS_MODE_MIPS64 (to use instead of CS_MODE_32 &
143 CS_MODE_64).
144
145
146[ ARM ]
147
148- Support new mode CS_MODE_V8 for Armv8 A32 encodings.
149- Print immediate in positive form & hexadecimal for AND/ORR/EOR/BIC instructions
150
151
152[ ARM64 ]
153
154- Print immediate in hexadecimal for AND/ORR/EOR/TST instructions.
155
156
157[ PowerPC ]
158
159- Do not print a dot in front of absolute address.
160
161
162[ Other features ]
163
164- Support for Microsoft Visual Studio (so enable Windows native compilation).
165- Support CMake compilation.
166- Cross-compile for Android.
167- Build libraries/tests using XCode project
168- Much faster, while consuming less memory for all architectures.
169
170---------------------------------
Nguyen Anh Quynh2f43c392014-04-01 09:19:19 +0800171Version 2.1.2: April 3rd, 2014
Nguyen Anh Quynh025a3452014-03-30 22:39:22 +0800172
173This is a stable release to fix some bugs deep in the core. There is no update
174to any architectures or bindings, so bindings version 2.1 can be used with this
175version 2.1.2 just fine.
176
177[ Core changes]
178
Nguyen Anh Quynh2f43c392014-04-01 09:19:19 +0800179- Support cross-compilation for all iDevices (iPhone/iPad/iPod).
180- X86: do not print memory offset in negative form.
Nguyen Anh Quynh025a3452014-03-30 22:39:22 +0800181- Fix a bug in X86 when Capstone cannot handle short instruction.
182- Print negative number above -9 without prefix 0x (arm64, mips, arm).
183- Correct the SONAME setup for library versioning (Linux, *BSD, Solaris).
184- Set library versioning for dylib of OSX.
185
186---------------------------------
Nguyen Anh Quynh56db6392014-03-11 11:24:46 +0800187Version 2.1.1: March 13th, 2014
188
189This is a stable release to fix some bugs deep in the core. There is no update
190to any architectures or bindings, so bindings version 2.1 can be used with this
191version 2.1.1 just fine.
192
193[ Core changes]
194
195- Fix a buffer overflow bug in Thumb mode (ARM). Some special input can
196 trigger this flaw.
197- Fix a crash issue when embedding Capstone into OSX kernel. This should
Nguyen Anh Quynha96d25e2014-03-11 11:41:09 +0800198 also enable Capstone to be embedded into other systems with limited stack
Nguyen Anh Quynh56db6392014-03-11 11:24:46 +0800199 memory size such as Linux kernel or some firmwares.
200- Use a proper SONAME for library versioning (Linux).
201
202---------------------------------
Nguyen Anh Quynhf51971d2014-03-05 00:09:49 +0800203Version 2.1: March 5th, 2014
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800204
205[ API changes ]
206
207- API version has been bumped to 2.1.
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800208- Change prototype of cs_close() to be able to invalidate closed handle.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800209 See http://capstone-engine.org/version_2.1_API.html for more information.
210- Extend cs_support() to handle more query types, not only about supported
211 architectures. This change is backward compatible, however, so existent code
212 do not need to be modified to support this.
213- New query type CS_SUPPORT_DIET for cs_support() to ask about diet status of
214 the engine.
215- New error code CS_ERR_DIET to report errors about newly added diet mode.
216- New error code CS_ERR_VERSION to report issue of incompatible versions between
217 bindings & core engine.
218
219
220[ Core changes ]
221
222- On memory usage, Capstone uses about 40% less memory, while still faster
223 than version 2.0.
224- All architectures are much smaller: binaries size reduce at least 30%.
225 Especially, X86-only binary reduces from 1.9MB to just 720KB.
226- Support "diet" mode, in which engine size is further reduced (by around 40%)
227 for embedding purpose. The price to pay is that we have to sacrifice some
228 non-critical data fields. See http://capstone-engine.org/diet.html for more
229 details.
230
231
232[ Architectures ]
233
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800234- Update all 5 architectures to fix bugs.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800235- PowerPC:
236 - New instructions: FMR & MSYNC.
237- Mips:
238 - New instruction: DLSA
239- X86:
240 - Properly handle AVX-512 instructions.
241 - New instructions: PSETPM, SALC, INT1, GETSEC.
242 - Fix some memory leaking issues in case of prefixed instructions such
243 as LOCK, REP, REPNE.
244
245
246[ Python binding ]
247
248- Verify the core version at initialization time. Refuse to run if its version
249 is different from the core's version.
250- New API disasm_lite() added to Cs class. This light API only returns tuples of
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800251 (address, size, mnemonic, op_str), rather than list of CsInsn objects. This
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800252 improves performance by around 30% in some benchmarks.
Nguyen Anh Quynh7fc81212014-03-04 23:56:42 +0800253- New API version_bind() returns binding's version, which might differ from
Nguyen Anh Quynhb0b73082014-03-03 17:57:15 +0800254 the core's API version if the binding is out-of-date.
Nguyen Anh Quynhf51971d2014-03-05 00:09:49 +0800255- New API debug() returns information on Cython support, diet status & archs
Nguyen Anh Quynh7fc81212014-03-04 23:56:42 +0800256 compiled in.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800257- Fixed some memory leaking bugs for Cython binding.
258- Fix a bug crashing Cython code when accessing @regs_read/regs_write/groups.
Nguyen Anh Quynhe6c378e2014-03-03 17:25:53 +0800259- Support diet mode.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800260
261
262[ Java binding ]
263
264- Fix some memory leaking bugs.
Nguyen Anh Quynhe6c378e2014-03-03 17:25:53 +0800265- New API version() returns combined version.
266- Support diet mode.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800267- Better support for detail option.
268
269
270[ Miscellaneous ]
271
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800272- make.sh now can uninstall the core engine. This is done with:
273
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800274 $ sudo ./make.sh uninstall
275
276----------------------------------
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800277Version 2.0: January 22nd, 2014
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800278
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800279Release 2.0 deprecates verison 1.0 and brings a lot of crucial changes.
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800280
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800281[ API changes ]
282
283- API version has been bumped to 2.0 (see cs_version() API)
284- New API cs_strerror(errno) returns a string describing error code given
285 in its only argument.
286- cs_version() now returns combined version encoding both major & minor versions.
287- New option CS_OPT_MODE allows to change engine’s mode at run-time with
288 cs_option().
289- New option CS_OPT_MEM allows to specify user-defined functions for dynamically
290 memory management used internally by Capstone. This is useful to embed Capstone
291 into special environments such as kernel or firware.
292- New API cs_support() can be used to check if this lib supports a particular
293 architecture (this is necessary since we now allow to choose which architectures
294 to compile in).
295- The detail option is OFF by default now. To get detail information, it should be
296 explicitly turned ON. The details then can be accessed using cs_insn.detail
297 pointer (to newly added structure cs_detail)
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800298
299
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800300[ Core changes ]
301
302- On memory usage, Capstone uses much less memory, but a lot faster now.
303- User now can choose which architectures to be supported by modifying config.mk
304 before compiling/installing.
305
306
307[ Architectures ]
308
309- Arm
310 - Support Big-Endian mode (besides Little-Endian mode).
Nguyen Anh Quynh6c5eec52014-01-22 18:33:35 +0800311 - Support friendly register, so instead of output sub "r12,r11,0x14",
312 we have "sub ip,fp,0x14".
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800313- Arm64: support Big-Endian mode (besides Little-Endian mode).
314- PowerPC: newly added.
Nguyen Anh Quynh6c5eec52014-01-22 18:33:35 +0800315- Mips: support friendly register, so instead of output "srl $2,$1,0x1f",
316 we have "srl $v0,$at,0x1f".
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800317- X86: bug fixes.
318
319
320[ Python binding ]
321
322- Python binding is vastly improved in performance: around 3 ~ 4 times faster
323 than in 1.0.
324- Cython support has been added, which can further speed up over the default
325 pure Python binding (up to 30% in some cases)
326- Function cs_disasm_quick() & Cs.disasm() now use generator (rather than a list)
327 to return succesfully disassembled instructions. This improves the performance
328 and reduces memory usage.
329
330
331[ Java binding ]
332
333- Better performance & bug fixes.
334
335
336[ Miscellaneous ]
337
338- Fixed some installation issues with Gentoo Linux.
339- Capstone now can easily compile/install on all *nix, including Linux, OSX,
340 {Net, Free, Open}BSD & Solaris.
341
342----------------------------------
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800343[Version 1.0]: December 18th, 2013
344
345- Initial public release.
346