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