blob: 6250e7584c7d2cf9cadf2dbeafcf8cdf4147786f [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 Quynh9ea5fbd2018-07-17 15:59:51 +08004Version 3.0.5: July 1xth, 2018
5
6
7[ Core ]
8
9- Fix the include path for Android builds when building cstool.
10- Add posibility to disable universal build for Mac OS.
11- cstool: Separate instruction bytes by spaces.
12- Fix code path of pkg-config in Cmake.
13- Update XCode project for XCode 9.1.
14- Add Cortex-M support to cstool.
15- Cmake forces to be build using MT with MSVC.
16- Better support for Mac OS kernel.
17
18
19[ X86 ]
20
21- Fix some issues in handling EVEX & VEX3 instructions.
22- Fix immediate operand for AND instruction in ATT mode.
23- Fix ATT syntax when imm operand is 0.
24- Better handle XACQUIRE/XRELEASE.
25- Fix imm operand of RETF.
26
27
28[ ARM ]
29
30- Fix an integer overlow bug.
31
32
33[ ARM64 ]
34
35- Bug fix for incorrect operand type in certain load/store instructions.
36
37
38[ Mips ]
39
40- Mode CS_MODE_MIPS32R6 automatically sets CS_MODE_32
41
42
43[ PPC ]
44
45- Fix endian check.
46
47
48[ Sparc ]
49
50- Fix an integer overlow bug.
51
52
53[ SystemZ ]
54
55- Fix an integer overlow bug.
56
57
Nguyen Anh Quynheeff1032018-07-18 13:48:32 +080058[ Python binding ]
59
60- Raise error on accessing irrelevant data fields if skipdata & detail modes are enable.
61
62
Nguyen Anh Quynh9ea5fbd2018-07-17 15:59:51 +080063---------------------------------
Nguyen Anh Quynhda2e94e2017-07-31 13:15:18 +070064Version 3.0.5-rc3: July 31st, 2017
65
66
67[ Core ]
68
69- Fix compilation for MacOS kernel extension
70- cstool to support armbe and arm64be modes
71- Add nmake.bat for Windows build
72- Fix an integer overflow for Windows kernel driver
73- Support to embedded Capstone into MacOS kernel
74- cstool: fix mips64 mode
75- Fix a compiling error in MS Visual Studio 2015
76- Install pkgconfig file with CMake build
77- Fix SOVERSION property of CMake build
78- Properly handle switching to Endian mode at run-time for Arm, Arm64, Mips & Sparc
79- Fix MingW build
80- Better handle CMake installation for Linux 64bit
81
82
83[ X86 ]
84
85- Support BND prefix of Intel MPX extension
86- Correct operand size for CALL/JMP in 64bit mode with prefix 0x66
87- LOCK NOP is a valid instruction
88- Fix ATT syntax for instruction with zero offset segment register
89- LES/LDS are invalid in 64bit mode
90- Fix number of operands for some MOV instructions
91
92
93[ ARM ]
94
95- Fix POP reg to update SP register
96- Update flags for UADD8 instruction
97
98
99[ ARM64 ]
100
101- Better performance with new lookup table
102- Handle system registers added in ARMv8.1/2
103
104
105[ Java binding ]
106
107- Better handle input with invalid code
108
109
110[ Visual Basic binding ]
111
112- New binding
113
114---------------------------------
Nguyen Anh Quynhe22577e2017-03-02 22:21:24 +0800115Version 3.0.5-rc2: March 2nd, 2017
116
117
118[ Core ]
119
120- Fix build for Visual Studio 2012
121- Fix X86_REL_ADDR macro
122- Add CS_VERSION_MAJOR, CS_VERSION_MINOR, CS_VERSION_EXTRA
123- Better support for embedding Capstone into Windows kernel drivers
124- Support to embedded Capstone into MacOS kernel
125- Support MacOS 10.11 and up
126- Better support for Cygwin
127- Support build packages for FreeBSD & DragonflyBSD
128- Add a command-line tool "cstool"
129- Properly handle switching to Endian mode at run-time for Arm, Arm64, Mips & Sparc
130
131
132[ X86 ]
133
134- Some random 16-bit code can be handled wrongly.
135- Remove abundant operand type X86_OP_FP
136- Fix instructions MOVQ, LOOP, LOOPE, LOOPNE, CALL/JMP rel16, REPNE LODSD, MOV *AX, MOFFS, FAR JMP/CALL
137- Add X86_REG_EFLAGS for STC and STD
138- Fix instruction attributes for SYSEXIT, MOVW, ROL, LGS, SLDT
139- Rename registers ST0-ST7 to be consistent with asm output
140
141
142[ ARM ]
143
144- Properly handle IT instruction
145- Fix LDRSB
146- Fix writeback for LDR
147- Fix Thumb BigEndian setup
148
149
150[ ARM64 ]
151
152- Fix arith extender
153- Fix writeback for LDR
154- Rename enum arm64_mrs_reg to arm64_sysreg
155
156
157[ PowerPC ]
158
159- Print 0 offset for memory operand
160
161
162[ Sparc ]
163
164- Fix POPC instruction
165
166
167[ Python binding ]
168
169- Better PyPy support
170- Add __version__
171- Better support for Python 3
172- Fix CS_SKIPDATA_CALLBACK prototype
173- Cast skipdata function inside binding to simplify the API
174
175
176[ Java binding ]
177
178- Better handle input with invalid code
179
180
181[ PowerShell ]
182
183- New binding
184
185---------------------------------
Nguyen Anh Quynhcfd8db32015-07-15 13:01:12 +0800186Version 3.0.4: July 15th, 2015
Nguyen Anh Quynhe49512b2015-07-15 11:38:05 +0800187
188
189[ Library ]
190
191- Improve cross-compile for Android using Android NDK.
192- Support cross-compile for AArch64 Android (with Linux GCC).
193- Removed osxkernel_inttypes.h that is incompatible with BSD license.
194- Make it possible to compile with CC having a space inside (like "ccache gcc").
195
196
197[ X86 ]
198
199- Fix a null pointer dereference bug on handling code with special prefixes.
200- Properly handle AL/AX/EAX operand for OUT instruction in AT&T syntax.
201- Print immediate operand in positive form in some algorithm instructions.
202- Properly decode some SSE instructions.
203
204
205[ PowerPC ]
206
207- Fixed a memory corruption bug.
208- Fixed a memory corruption bug for the engine built in DIET mode.
209
210
211[ Mips ]
212
213- Fixed instruction ID of SUBU instruction.
214- Fixed a memory corruption bug.
215
216
217[ Arm ]
218
219- Fixed a memory corruption bug on IT instruction.
220
221
222[ XCore ]
223
224- Fixed a memory corruption bug when instruction has a memory operand.
225
226
227[ Python ]
228
229- Support Virtualenv.
230- setup.py supports option --user if not in a virtualenv to allow for local usage.
231- Properly handle the destruction of Cs object in the case the shared library
232 was already unloaded.
233
234---------------------------------
Nguyen Anh Quynh512303b2015-05-08 15:17:01 +0800235Version 3.0.3: May 08th, 2015
236
237
238[ Library ]
239
240- Support to embed into Mac OS X kernel extensions.
241- Now it is possible to compile Capstone with older C compilers, such as
242 GCC 4.8 on Ubuntu 12.04.
243- Add "test_iter" to MSVC project.
244
245
246[ X86 ]
247
248- All shifted instructions SHL, SHR, SAL, SAR, RCL, RCR, ROL & ROR now support
249 $1 as first operand in *AT&T* syntax (so we have "rcll $1, %edx" instead of
250 "rcll %edx").
251- CMPXCHG16B is a valid instruction with LOCK prefix.
252- Fixed a segfault on the input of 0xF3.
253
254
255[ Arm ]
256
257- BLX instruction modifies PC & LR registers.
258
259
260[ Sparc ]
261
262- Improved displacement decoding for sparc banching instructions.
263
264
265[ Python binding ]
266
267- Fix for Cython so it can properly initialize.
268- X86Op.avx_zero_mask now has c_bool type, but not c_uint8 type.
269- Properly support compile with Cygwin & install binding (setup.py).
270
271---------------------------------
Nguyen Anh Quynh359a8b72015-03-11 12:12:33 +0800272Version 3.0.2: March 11th, 2015
273
274
275[ Library ]
276
277- On *nix, only export symbols that are part of the API (instead of all
278 the internal symbols).
279
280
281[ X86 ]
282
283- Do not consider 0xF2 as REPNE prefix if it is a part of instruction encoding.
284- Fix implicit registers read/written & instruction groups of some instructions.
285- More flexible on the order of prefixes, so better handle some tricky
286 instructions.
287- REPNE prefix can go with STOS & MOVS instructions.
288- Fix a compilation bug for X86_REDUCE mode.
289- Fix operand size of instructions with operand PTR []
290
291
292[ Arm ]
293
294- Fix a bug where arm_op_mem.disp is wrongly calculated (in DETAIL mode).
295- Fix a bug on handling the If-Then block.
296
297
298[ Mips ]
299
300- Sanity check for the input size for MIPS64 mode.
301
302
303[ MSVC ]
304
305- Compile capstone.dll with static runtime MSVCR built in.
306
307
308[ Python binding ]
309
310- Fix a compiling issue of Cython binding with gcc 4.9.
311
312---------------------------------
313Version 3.0.1: February 03rd, 2015
Nguyen Anh Quynhc6b1be82015-02-03 16:28:27 +0800314
315[ X86 ]
316
317- Properly handle LOCK, REP, REPE & REPNE prefixes.
318- Handle undocumented immediates for SSE's (V)CMPPS/PD/SS/SD instructions.
319- Print LJUMP/LCALL without * as prefix for Intel syntax.
320- Handle REX prefix properly for segment/MMX related instructions (x86_64).
321- Instruction with length > 15 is consider invalid.
322- Handle some tricky encodings for instructions MOVSXD, FXCH, FCOM, FCOMP,
323 FSTP, FSTPNCE, NOP.
324- Handle some tricky code for some X86_64 instructions with REX prefix.
325- Add missing operands in detail mode for PUSH , POP , IN/OUT reg, reg
326- MOV32ms & MOV32sm should reference word rather than dword.
327
328
329[ Arm64 ]
330
331- BL & BLR instructions do not read SP register.
332- Print absolute (rather than relative) address for instructions B, BL,
333 CBNZ, ADR.
334
335
336[ Arm ]
337
338- Instructions ADC & SBC do not update flags.
339- BL & BLX do not read SP, but PC register.
340- Alias LDR instruction with operands [sp], 4 to POP.
341- Print immediate operand of MVN instruction in positive hexadecimal form.
342
343
344[ PowerPC ]
345
346- Fix some compilation bugs when DIET mode is enable.
347- Populate SLWI/SRWI instruction details with SH operand.
348
349
350[ Python binding ]
351
352- Fix a Cython bug when CsInsn.bytes returns a shorten array of bytes.
353- Fixed a memory leak for Cython disasm functions when we immaturely quit
354 the enumeration of disassembled instructions.
355- Fix a NULL memory access issue when SKIPDATA & Detail modes are enable
356 at the same time.
357- Fix a memory leaking bug when when we stop enumeration over the disassembled
358 instructions prematurely.
359- Export generic operand types & groups (CS_OP_xxx & CS_GRP_xxx).
360
361---------------------------------
Nguyen Anh Quynhb53a59a2014-11-19 17:56:04 +0800362Version 3.0: November 19th, 2014
Nguyen Anh Quynhfadbddc2014-11-18 22:53:32 +0800363
364[ API ]
365
366- New API: cs_disasm_iter & cs_malloc. See docs/README for tutorials.
367- Renamed cs_disasm_ex to cs_disasm (cs_disasm_ex is still supported, but
368 marked obsolete to be removed in future)
369- Support SKIPDATA mode, so Capstone can jump over unknown data and keep going
370 from the next legitimate instruction. See docs/README for tutorials.
371- More details provided in cs_detail struct for all architectures.
372- API version was bumped to 3.0.
373
374
375[ Bindings ]
376
377- Python binding supports Python3 (besides Python2).
378- Support Ocaml binding.
Nguyen Anh Quynh89460292014-11-19 14:37:08 +0800379- Java: add close() method to be used to deinitialize a Capstone object when
380 no longer use it.
Nguyen Anh Quynhfadbddc2014-11-18 22:53:32 +0800381
382
383[ Architectures ]
384
385- New architectures: Sparc, SystemZ & XCore.
386- Important bugfixes for Arm, Arm64, Mips, PowerPC & X86.
387- Support more instructions for Arm, Arm64, Mips, PowerPC & X86.
388- Always expose absolute addresses rather than relative addresses (Arm, Arm64,
389 Mips, PPC, Sparc, X86).
390- Use common instruction operand types REG, IMM, MEM & FP across all
391 architectures (to enable cross-architecture analysis).
392- Use common instruction group types across all architectures (to enable
393 cross-architecture analysis).
394
395
396[ X86 ]
397
398- X86 engine is mature & handles all the malware tricks (that we are aware of).
399- Added a lot of new instructions (such as AVX512, 3DNow, etc).
400- Add prefix symbols X86_PREFIX_REP/REPNE/LOCK/CS/DS/SS/FS/GS/ES/OPSIZE/ADDRSIZE.
401- Print immediate in positive form & hexadecimal for AND/OR/XOR instructions.
402- More friendly disassembly for JMP16i (in the form segment:offset)
403
404
405[ Mips ]
406
407- Engine added supports for new hardware modes: Mips32R6 (CS_MODE_MIPS32R6) &
408 MipsGP64 (CS_MODE_MIPSGP64).
409- Removed the ABI-only mode CS_MODE_N64.
410- New modes CS_MODE_MIPS32 & CS_MODE_MIPS64 (to use instead of CS_MODE_32 &
411 CS_MODE_64).
412
413
414[ ARM ]
415
416- Support new mode CS_MODE_V8 for Armv8 A32 encodings.
417- Print immediate in positive form & hexadecimal for AND/ORR/EOR/BIC instructions
418
419
420[ ARM64 ]
421
422- Print immediate in hexadecimal for AND/ORR/EOR/TST instructions.
423
424
425[ PowerPC ]
426
427- Do not print a dot in front of absolute address.
428
429
430[ Other features ]
431
432- Support for Microsoft Visual Studio (so enable Windows native compilation).
433- Support CMake compilation.
434- Cross-compile for Android.
435- Build libraries/tests using XCode project
436- Much faster, while consuming less memory for all architectures.
437
438---------------------------------
Nguyen Anh Quynh2f43c392014-04-01 09:19:19 +0800439Version 2.1.2: April 3rd, 2014
Nguyen Anh Quynh025a3452014-03-30 22:39:22 +0800440
441This is a stable release to fix some bugs deep in the core. There is no update
442to any architectures or bindings, so bindings version 2.1 can be used with this
443version 2.1.2 just fine.
444
445[ Core changes]
446
Nguyen Anh Quynh2f43c392014-04-01 09:19:19 +0800447- Support cross-compilation for all iDevices (iPhone/iPad/iPod).
448- X86: do not print memory offset in negative form.
Nguyen Anh Quynh025a3452014-03-30 22:39:22 +0800449- Fix a bug in X86 when Capstone cannot handle short instruction.
450- Print negative number above -9 without prefix 0x (arm64, mips, arm).
451- Correct the SONAME setup for library versioning (Linux, *BSD, Solaris).
452- Set library versioning for dylib of OSX.
453
454---------------------------------
Nguyen Anh Quynh56db6392014-03-11 11:24:46 +0800455Version 2.1.1: March 13th, 2014
456
457This is a stable release to fix some bugs deep in the core. There is no update
458to any architectures or bindings, so bindings version 2.1 can be used with this
459version 2.1.1 just fine.
460
461[ Core changes]
462
463- Fix a buffer overflow bug in Thumb mode (ARM). Some special input can
464 trigger this flaw.
465- Fix a crash issue when embedding Capstone into OSX kernel. This should
Nguyen Anh Quynha96d25e2014-03-11 11:41:09 +0800466 also enable Capstone to be embedded into other systems with limited stack
Nguyen Anh Quynh56db6392014-03-11 11:24:46 +0800467 memory size such as Linux kernel or some firmwares.
468- Use a proper SONAME for library versioning (Linux).
469
470---------------------------------
Nguyen Anh Quynhf51971d2014-03-05 00:09:49 +0800471Version 2.1: March 5th, 2014
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800472
473[ API changes ]
474
475- API version has been bumped to 2.1.
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800476- Change prototype of cs_close() to be able to invalidate closed handle.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800477 See http://capstone-engine.org/version_2.1_API.html for more information.
478- Extend cs_support() to handle more query types, not only about supported
479 architectures. This change is backward compatible, however, so existent code
480 do not need to be modified to support this.
481- New query type CS_SUPPORT_DIET for cs_support() to ask about diet status of
482 the engine.
483- New error code CS_ERR_DIET to report errors about newly added diet mode.
484- New error code CS_ERR_VERSION to report issue of incompatible versions between
485 bindings & core engine.
486
487
488[ Core changes ]
489
490- On memory usage, Capstone uses about 40% less memory, while still faster
491 than version 2.0.
492- All architectures are much smaller: binaries size reduce at least 30%.
493 Especially, X86-only binary reduces from 1.9MB to just 720KB.
494- Support "diet" mode, in which engine size is further reduced (by around 40%)
495 for embedding purpose. The price to pay is that we have to sacrifice some
496 non-critical data fields. See http://capstone-engine.org/diet.html for more
497 details.
498
499
500[ Architectures ]
501
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800502- Update all 5 architectures to fix bugs.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800503- PowerPC:
504 - New instructions: FMR & MSYNC.
505- Mips:
506 - New instruction: DLSA
507- X86:
508 - Properly handle AVX-512 instructions.
509 - New instructions: PSETPM, SALC, INT1, GETSEC.
510 - Fix some memory leaking issues in case of prefixed instructions such
511 as LOCK, REP, REPNE.
512
513
514[ Python binding ]
515
516- Verify the core version at initialization time. Refuse to run if its version
517 is different from the core's version.
518- New API disasm_lite() added to Cs class. This light API only returns tuples of
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800519 (address, size, mnemonic, op_str), rather than list of CsInsn objects. This
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800520 improves performance by around 30% in some benchmarks.
Nguyen Anh Quynh7fc81212014-03-04 23:56:42 +0800521- New API version_bind() returns binding's version, which might differ from
Nguyen Anh Quynhb0b73082014-03-03 17:57:15 +0800522 the core's API version if the binding is out-of-date.
Nguyen Anh Quynhf51971d2014-03-05 00:09:49 +0800523- New API debug() returns information on Cython support, diet status & archs
Nguyen Anh Quynh7fc81212014-03-04 23:56:42 +0800524 compiled in.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800525- Fixed some memory leaking bugs for Cython binding.
526- Fix a bug crashing Cython code when accessing @regs_read/regs_write/groups.
Nguyen Anh Quynhe6c378e2014-03-03 17:25:53 +0800527- Support diet mode.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800528
529
530[ Java binding ]
531
532- Fix some memory leaking bugs.
Nguyen Anh Quynhe6c378e2014-03-03 17:25:53 +0800533- New API version() returns combined version.
534- Support diet mode.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800535- Better support for detail option.
536
537
538[ Miscellaneous ]
539
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +0800540- make.sh now can uninstall the core engine. This is done with:
541
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +0800542 $ sudo ./make.sh uninstall
543
544----------------------------------
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800545Version 2.0: January 22nd, 2014
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800546
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800547Release 2.0 deprecates verison 1.0 and brings a lot of crucial changes.
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800548
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800549[ API changes ]
550
551- API version has been bumped to 2.0 (see cs_version() API)
552- New API cs_strerror(errno) returns a string describing error code given
553 in its only argument.
554- cs_version() now returns combined version encoding both major & minor versions.
555- New option CS_OPT_MODE allows to change engine’s mode at run-time with
556 cs_option().
557- New option CS_OPT_MEM allows to specify user-defined functions for dynamically
558 memory management used internally by Capstone. This is useful to embed Capstone
559 into special environments such as kernel or firware.
560- New API cs_support() can be used to check if this lib supports a particular
561 architecture (this is necessary since we now allow to choose which architectures
562 to compile in).
563- The detail option is OFF by default now. To get detail information, it should be
564 explicitly turned ON. The details then can be accessed using cs_insn.detail
565 pointer (to newly added structure cs_detail)
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800566
567
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800568[ Core changes ]
569
570- On memory usage, Capstone uses much less memory, but a lot faster now.
571- User now can choose which architectures to be supported by modifying config.mk
572 before compiling/installing.
573
574
575[ Architectures ]
576
577- Arm
578 - Support Big-Endian mode (besides Little-Endian mode).
Nguyen Anh Quynh6c5eec52014-01-22 18:33:35 +0800579 - Support friendly register, so instead of output sub "r12,r11,0x14",
580 we have "sub ip,fp,0x14".
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800581- Arm64: support Big-Endian mode (besides Little-Endian mode).
582- PowerPC: newly added.
Nguyen Anh Quynh6c5eec52014-01-22 18:33:35 +0800583- Mips: support friendly register, so instead of output "srl $2,$1,0x1f",
584 we have "srl $v0,$at,0x1f".
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800585- X86: bug fixes.
586
587
588[ Python binding ]
589
590- Python binding is vastly improved in performance: around 3 ~ 4 times faster
591 than in 1.0.
592- Cython support has been added, which can further speed up over the default
593 pure Python binding (up to 30% in some cases)
594- Function cs_disasm_quick() & Cs.disasm() now use generator (rather than a list)
595 to return succesfully disassembled instructions. This improves the performance
596 and reduces memory usage.
597
598
599[ Java binding ]
600
601- Better performance & bug fixes.
602
603
604[ Miscellaneous ]
605
606- Fixed some installation issues with Gentoo Linux.
607- Capstone now can easily compile/install on all *nix, including Linux, OSX,
608 {Net, Free, Open}BSD & Solaris.
609
610----------------------------------
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800611[Version 1.0]: December 18th, 2013
612
613- Initial public release.
614