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