blob: 16b6d64b3b18141d4d34dc3ea04efa43e8749c80 [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 Quynhcfd8db32015-07-15 13:01:12 +08004Version 3.0.4: July 15th, 2015
Nguyen Anh Quynhe49512b2015-07-15 11:38:05 +08005
6
7[ Library ]
8
9- Improve cross-compile for Android using Android NDK.
10- Support cross-compile for AArch64 Android (with Linux GCC).
11- Removed osxkernel_inttypes.h that is incompatible with BSD license.
12- Make it possible to compile with CC having a space inside (like "ccache gcc").
13
14
15[ X86 ]
16
17- Fix a null pointer dereference bug on handling code with special prefixes.
18- Properly handle AL/AX/EAX operand for OUT instruction in AT&T syntax.
19- Print immediate operand in positive form in some algorithm instructions.
20- Properly decode some SSE instructions.
21
22
23[ PowerPC ]
24
25- Fixed a memory corruption bug.
26- Fixed a memory corruption bug for the engine built in DIET mode.
27
28
29[ Mips ]
30
31- Fixed instruction ID of SUBU instruction.
32- Fixed a memory corruption bug.
33
34
35[ Arm ]
36
37- Fixed a memory corruption bug on IT instruction.
38
39
40[ XCore ]
41
42- Fixed a memory corruption bug when instruction has a memory operand.
43
44
45[ Python ]
46
47- Support Virtualenv.
48- setup.py supports option --user if not in a virtualenv to allow for local usage.
49- Properly handle the destruction of Cs object in the case the shared library
50 was already unloaded.
51
52---------------------------------
Nguyen Anh Quynh512303b2015-05-08 15:17:01 +080053Version 3.0.3: May 08th, 2015
54
55
56[ Library ]
57
58- Support to embed into Mac OS X kernel extensions.
59- Now it is possible to compile Capstone with older C compilers, such as
60 GCC 4.8 on Ubuntu 12.04.
61- Add "test_iter" to MSVC project.
62
63
64[ X86 ]
65
66- All shifted instructions SHL, SHR, SAL, SAR, RCL, RCR, ROL & ROR now support
67 $1 as first operand in *AT&T* syntax (so we have "rcll $1, %edx" instead of
68 "rcll %edx").
69- CMPXCHG16B is a valid instruction with LOCK prefix.
70- Fixed a segfault on the input of 0xF3.
71
72
73[ Arm ]
74
75- BLX instruction modifies PC & LR registers.
76
77
78[ Sparc ]
79
80- Improved displacement decoding for sparc banching instructions.
81
82
83[ Python binding ]
84
85- Fix for Cython so it can properly initialize.
86- X86Op.avx_zero_mask now has c_bool type, but not c_uint8 type.
87- Properly support compile with Cygwin & install binding (setup.py).
88
89---------------------------------
Nguyen Anh Quynh359a8b72015-03-11 12:12:33 +080090Version 3.0.2: March 11th, 2015
91
92
93[ Library ]
94
95- On *nix, only export symbols that are part of the API (instead of all
96 the internal symbols).
97
98
99[ X86 ]
100
101- Do not consider 0xF2 as REPNE prefix if it is a part of instruction encoding.
102- Fix implicit registers read/written & instruction groups of some instructions.
103- More flexible on the order of prefixes, so better handle some tricky
104 instructions.
105- REPNE prefix can go with STOS & MOVS instructions.
106- Fix a compilation bug for X86_REDUCE mode.
107- Fix operand size of instructions with operand PTR []
108
109
110[ Arm ]
111
112- Fix a bug where arm_op_mem.disp is wrongly calculated (in DETAIL mode).
113- Fix a bug on handling the If-Then block.
114
115
116[ Mips ]
117
118- Sanity check for the input size for MIPS64 mode.
119
120
121[ MSVC ]
122
123- Compile capstone.dll with static runtime MSVCR built in.
124
125
126[ Python binding ]
127
128- Fix a compiling issue of Cython binding with gcc 4.9.
129
130---------------------------------
131Version 3.0.1: February 03rd, 2015
Nguyen Anh Quynhc6b1be82015-02-03 16:28:27 +0800132
133[ X86 ]
134
135- Properly handle LOCK, REP, REPE & REPNE prefixes.
136- Handle undocumented immediates for SSE's (V)CMPPS/PD/SS/SD instructions.
137- Print LJUMP/LCALL without * as prefix for Intel syntax.
138- Handle REX prefix properly for segment/MMX related instructions (x86_64).
139- Instruction with length > 15 is consider invalid.
140- Handle some tricky encodings for instructions MOVSXD, FXCH, FCOM, FCOMP,
141 FSTP, FSTPNCE, NOP.
142- Handle some tricky code for some X86_64 instructions with REX prefix.
143- Add missing operands in detail mode for PUSH , POP , IN/OUT reg, reg
144- MOV32ms & MOV32sm should reference word rather than dword.
145
146
147[ Arm64 ]
148
149- BL & BLR instructions do not read SP register.
150- Print absolute (rather than relative) address for instructions B, BL,
151 CBNZ, ADR.
152
153
154[ Arm ]
155
156- Instructions ADC & SBC do not update flags.
157- BL & BLX do not read SP, but PC register.
158- Alias LDR instruction with operands [sp], 4 to POP.
159- Print immediate operand of MVN instruction in positive hexadecimal form.
160
161
162[ PowerPC ]
163
164- Fix some compilation bugs when DIET mode is enable.
165- Populate SLWI/SRWI instruction details with SH operand.
166
167
168[ Python binding ]
169
170- Fix a Cython bug when CsInsn.bytes returns a shorten array of bytes.
171- Fixed a memory leak for Cython disasm functions when we immaturely quit
172 the enumeration of disassembled instructions.
173- Fix a NULL memory access issue when SKIPDATA & Detail modes are enable
174 at the same time.
175- Fix a memory leaking bug when when we stop enumeration over the disassembled
176 instructions prematurely.
177- Export generic operand types & groups (CS_OP_xxx & CS_GRP_xxx).
178
179---------------------------------
Nguyen Anh Quynhb53a59a2014-11-19 17:56:04 +0800180Version 3.0: November 19th, 2014
Nguyen Anh Quynhfadbddc2014-11-18 22:53:32 +0800181
182[ API ]
183
184- New API: cs_disasm_iter & cs_malloc. See docs/README for tutorials.
185- Renamed cs_disasm_ex to cs_disasm (cs_disasm_ex is still supported, but
186 marked obsolete to be removed in future)
187- Support SKIPDATA mode, so Capstone can jump over unknown data and keep going
188 from the next legitimate instruction. See docs/README for tutorials.
189- More details provided in cs_detail struct for all architectures.
190- API version was bumped to 3.0.
191
192
193[ Bindings ]
194
195- Python binding supports Python3 (besides Python2).
196- Support Ocaml binding.
Nguyen Anh Quynh89460292014-11-19 14:37:08 +0800197- Java: add close() method to be used to deinitialize a Capstone object when
198 no longer use it.
Nguyen Anh Quynhfadbddc2014-11-18 22:53:32 +0800199
200
201[ Architectures ]
202
203- New architectures: Sparc, SystemZ & XCore.
204- Important bugfixes for Arm, Arm64, Mips, PowerPC & X86.
205- Support more instructions for Arm, Arm64, Mips, PowerPC & X86.
206- Always expose absolute addresses rather than relative addresses (Arm, Arm64,
207 Mips, PPC, Sparc, X86).
208- Use common instruction operand types REG, IMM, MEM & FP across all
209 architectures (to enable cross-architecture analysis).
210- Use common instruction group types across all architectures (to enable
211 cross-architecture analysis).
212
213
214[ X86 ]
215
216- X86 engine is mature & handles all the malware tricks (that we are aware of).
217- Added a lot of new instructions (such as AVX512, 3DNow, etc).
218- Add prefix symbols X86_PREFIX_REP/REPNE/LOCK/CS/DS/SS/FS/GS/ES/OPSIZE/ADDRSIZE.
219- Print immediate in positive form & hexadecimal for AND/OR/XOR instructions.
220- More friendly disassembly for JMP16i (in the form segment:offset)
221
222
223[ Mips ]
224
225- Engine added supports for new hardware modes: Mips32R6 (CS_MODE_MIPS32R6) &
226 MipsGP64 (CS_MODE_MIPSGP64).
227- Removed the ABI-only mode CS_MODE_N64.
228- New modes CS_MODE_MIPS32 & CS_MODE_MIPS64 (to use instead of CS_MODE_32 &
229 CS_MODE_64).
230
231
232[ ARM ]
233
234- Support new mode CS_MODE_V8 for Armv8 A32 encodings.
235- Print immediate in positive form & hexadecimal for AND/ORR/EOR/BIC instructions
236
237
238[ ARM64 ]
239
240- Print immediate in hexadecimal for AND/ORR/EOR/TST instructions.
241
242
243[ PowerPC ]
244
245- Do not print a dot in front of absolute address.
246
247
248[ Other features ]
249
250- Support for Microsoft Visual Studio (so enable Windows native compilation).
251- Support CMake compilation.
252- Cross-compile for Android.
253- Build libraries/tests using XCode project
254- Much faster, while consuming less memory for all architectures.
255
256---------------------------------
Nguyen Anh Quynh2f43c392014-04-01 09:19:19 +0800257Version 2.1.2: April 3rd, 2014
Nguyen Anh Quynh025a3452014-03-30 22:39:22 +0800258
259This is a stable release to fix some bugs deep in the core. There is no update
260to any architectures or bindings, so bindings version 2.1 can be used with this
261version 2.1.2 just fine.
262
263[ Core changes]
264
Nguyen Anh Quynh2f43c392014-04-01 09:19:19 +0800265- Support cross-compilation for all iDevices (iPhone/iPad/iPod).
266- X86: do not print memory offset in negative form.
Nguyen Anh Quynh025a3452014-03-30 22:39:22 +0800267- Fix a bug in X86 when Capstone cannot handle short instruction.
268- Print negative number above -9 without prefix 0x (arm64, mips, arm).
269- Correct the SONAME setup for library versioning (Linux, *BSD, Solaris).
270- Set library versioning for dylib of OSX.
271
272---------------------------------
Nguyen Anh Quynh56db6392014-03-11 11:24:46 +0800273Version 2.1.1: March 13th, 2014
274
275This is a stable release to fix some bugs deep in the core. There is no update
276to any architectures or bindings, so bindings version 2.1 can be used with this
277version 2.1.1 just fine.
278
279[ Core changes]
280
281- Fix a buffer overflow bug in Thumb mode (ARM). Some special input can
282 trigger this flaw.
283- Fix a crash issue when embedding Capstone into OSX kernel. This should
Nguyen Anh Quynha96d25e2014-03-11 11:41:09 +0800284 also enable Capstone to be embedded into other systems with limited stack
Nguyen Anh Quynh56db6392014-03-11 11:24:46 +0800285 memory size such as Linux kernel or some firmwares.
286- Use a proper SONAME for library versioning (Linux).
287
288---------------------------------
Nguyen Anh Quynhf51971d2014-03-05 00:09:49 +0800289Version 2.1: March 5th, 2014
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800290
291[ API changes ]
292
293- API version has been bumped to 2.1.
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800294- Change prototype of cs_close() to be able to invalidate closed handle.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800295 See http://capstone-engine.org/version_2.1_API.html for more information.
296- Extend cs_support() to handle more query types, not only about supported
297 architectures. This change is backward compatible, however, so existent code
298 do not need to be modified to support this.
299- New query type CS_SUPPORT_DIET for cs_support() to ask about diet status of
300 the engine.
301- New error code CS_ERR_DIET to report errors about newly added diet mode.
302- New error code CS_ERR_VERSION to report issue of incompatible versions between
303 bindings & core engine.
304
305
306[ Core changes ]
307
308- On memory usage, Capstone uses about 40% less memory, while still faster
309 than version 2.0.
310- All architectures are much smaller: binaries size reduce at least 30%.
311 Especially, X86-only binary reduces from 1.9MB to just 720KB.
312- Support "diet" mode, in which engine size is further reduced (by around 40%)
313 for embedding purpose. The price to pay is that we have to sacrifice some
314 non-critical data fields. See http://capstone-engine.org/diet.html for more
315 details.
316
317
318[ Architectures ]
319
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800320- Update all 5 architectures to fix bugs.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800321- PowerPC:
322 - New instructions: FMR & MSYNC.
323- Mips:
324 - New instruction: DLSA
325- X86:
326 - Properly handle AVX-512 instructions.
327 - New instructions: PSETPM, SALC, INT1, GETSEC.
328 - Fix some memory leaking issues in case of prefixed instructions such
329 as LOCK, REP, REPNE.
330
331
332[ Python binding ]
333
334- Verify the core version at initialization time. Refuse to run if its version
335 is different from the core's version.
336- New API disasm_lite() added to Cs class. This light API only returns tuples of
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800337 (address, size, mnemonic, op_str), rather than list of CsInsn objects. This
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800338 improves performance by around 30% in some benchmarks.
Nguyen Anh Quynh7fc81212014-03-04 23:56:42 +0800339- New API version_bind() returns binding's version, which might differ from
Nguyen Anh Quynhb0b73082014-03-03 17:57:15 +0800340 the core's API version if the binding is out-of-date.
Nguyen Anh Quynhf51971d2014-03-05 00:09:49 +0800341- New API debug() returns information on Cython support, diet status & archs
Nguyen Anh Quynh7fc81212014-03-04 23:56:42 +0800342 compiled in.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800343- Fixed some memory leaking bugs for Cython binding.
344- Fix a bug crashing Cython code when accessing @regs_read/regs_write/groups.
Nguyen Anh Quynhe6c378e2014-03-03 17:25:53 +0800345- Support diet mode.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800346
347
348[ Java binding ]
349
350- Fix some memory leaking bugs.
Nguyen Anh Quynhe6c378e2014-03-03 17:25:53 +0800351- New API version() returns combined version.
352- Support diet mode.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800353- Better support for detail option.
354
355
356[ Miscellaneous ]
357
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800358- make.sh now can uninstall the core engine. This is done with:
359
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800360 $ sudo ./make.sh uninstall
361
362----------------------------------
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800363Version 2.0: January 22nd, 2014
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800364
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800365Release 2.0 deprecates verison 1.0 and brings a lot of crucial changes.
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800366
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800367[ API changes ]
368
369- API version has been bumped to 2.0 (see cs_version() API)
370- New API cs_strerror(errno) returns a string describing error code given
371 in its only argument.
372- cs_version() now returns combined version encoding both major & minor versions.
373- New option CS_OPT_MODE allows to change engine’s mode at run-time with
374 cs_option().
375- New option CS_OPT_MEM allows to specify user-defined functions for dynamically
376 memory management used internally by Capstone. This is useful to embed Capstone
377 into special environments such as kernel or firware.
378- New API cs_support() can be used to check if this lib supports a particular
379 architecture (this is necessary since we now allow to choose which architectures
380 to compile in).
381- The detail option is OFF by default now. To get detail information, it should be
382 explicitly turned ON. The details then can be accessed using cs_insn.detail
383 pointer (to newly added structure cs_detail)
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800384
385
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800386[ Core changes ]
387
388- On memory usage, Capstone uses much less memory, but a lot faster now.
389- User now can choose which architectures to be supported by modifying config.mk
390 before compiling/installing.
391
392
393[ Architectures ]
394
395- Arm
396 - Support Big-Endian mode (besides Little-Endian mode).
Nguyen Anh Quynh6c5eec52014-01-22 18:33:35 +0800397 - Support friendly register, so instead of output sub "r12,r11,0x14",
398 we have "sub ip,fp,0x14".
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800399- Arm64: support Big-Endian mode (besides Little-Endian mode).
400- PowerPC: newly added.
Nguyen Anh Quynh6c5eec52014-01-22 18:33:35 +0800401- Mips: support friendly register, so instead of output "srl $2,$1,0x1f",
402 we have "srl $v0,$at,0x1f".
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800403- X86: bug fixes.
404
405
406[ Python binding ]
407
408- Python binding is vastly improved in performance: around 3 ~ 4 times faster
409 than in 1.0.
410- Cython support has been added, which can further speed up over the default
411 pure Python binding (up to 30% in some cases)
412- Function cs_disasm_quick() & Cs.disasm() now use generator (rather than a list)
413 to return succesfully disassembled instructions. This improves the performance
414 and reduces memory usage.
415
416
417[ Java binding ]
418
419- Better performance & bug fixes.
420
421
422[ Miscellaneous ]
423
424- Fixed some installation issues with Gentoo Linux.
425- Capstone now can easily compile/install on all *nix, including Linux, OSX,
426 {Net, Free, Open}BSD & Solaris.
427
428----------------------------------
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800429[Version 1.0]: December 18th, 2013
430
431- Initial public release.
432