blob: 37bda4cdab456e009daadf01e47f7812f363f564 [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 Quynh56db6392014-03-11 11:24:46 +08004Version 2.1.1: March 13th, 2014
5
6This is a stable release to fix some bugs deep in the core. There is no update
7to any architectures or bindings, so bindings version 2.1 can be used with this
8version 2.1.1 just fine.
9
10[ Core changes]
11
12- Fix a buffer overflow bug in Thumb mode (ARM). Some special input can
13 trigger this flaw.
14- Fix a crash issue when embedding Capstone into OSX kernel. This should
15 enable Capstone to be embedded into other systems with limited stack
16 memory size such as Linux kernel or some firmwares.
17- Use a proper SONAME for library versioning (Linux).
18
19---------------------------------
Nguyen Anh Quynhf51971d2014-03-05 00:09:49 +080020Version 2.1: March 5th, 2014
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +080021
22[ API changes ]
23
24- API version has been bumped to 2.1.
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +080025- Change prototype of cs_close() to be able to invalidate closed handle.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +080026 See http://capstone-engine.org/version_2.1_API.html for more information.
27- Extend cs_support() to handle more query types, not only about supported
28 architectures. This change is backward compatible, however, so existent code
29 do not need to be modified to support this.
30- New query type CS_SUPPORT_DIET for cs_support() to ask about diet status of
31 the engine.
32- New error code CS_ERR_DIET to report errors about newly added diet mode.
33- New error code CS_ERR_VERSION to report issue of incompatible versions between
34 bindings & core engine.
35
36
37[ Core changes ]
38
39- On memory usage, Capstone uses about 40% less memory, while still faster
40 than version 2.0.
41- All architectures are much smaller: binaries size reduce at least 30%.
42 Especially, X86-only binary reduces from 1.9MB to just 720KB.
43- Support "diet" mode, in which engine size is further reduced (by around 40%)
44 for embedding purpose. The price to pay is that we have to sacrifice some
45 non-critical data fields. See http://capstone-engine.org/diet.html for more
46 details.
47
48
49[ Architectures ]
50
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +080051- Update all 5 architectures to fix bugs.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +080052- PowerPC:
53 - New instructions: FMR & MSYNC.
54- Mips:
55 - New instruction: DLSA
56- X86:
57 - Properly handle AVX-512 instructions.
58 - New instructions: PSETPM, SALC, INT1, GETSEC.
59 - Fix some memory leaking issues in case of prefixed instructions such
60 as LOCK, REP, REPNE.
61
62
63[ Python binding ]
64
65- Verify the core version at initialization time. Refuse to run if its version
66 is different from the core's version.
67- New API disasm_lite() added to Cs class. This light API only returns tuples of
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +080068 (address, size, mnemonic, op_str), rather than list of CsInsn objects. This
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +080069 improves performance by around 30% in some benchmarks.
Nguyen Anh Quynh7fc81212014-03-04 23:56:42 +080070- New API version_bind() returns binding's version, which might differ from
Nguyen Anh Quynhb0b73082014-03-03 17:57:15 +080071 the core's API version if the binding is out-of-date.
Nguyen Anh Quynhf51971d2014-03-05 00:09:49 +080072- New API debug() returns information on Cython support, diet status & archs
Nguyen Anh Quynh7fc81212014-03-04 23:56:42 +080073 compiled in.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +080074- Fixed some memory leaking bugs for Cython binding.
75- Fix a bug crashing Cython code when accessing @regs_read/regs_write/groups.
Nguyen Anh Quynhe6c378e2014-03-03 17:25:53 +080076- Support diet mode.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +080077
78
79[ Java binding ]
80
81- Fix some memory leaking bugs.
Nguyen Anh Quynhe6c378e2014-03-03 17:25:53 +080082- New API version() returns combined version.
83- Support diet mode.
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +080084- Better support for detail option.
85
86
87[ Miscellaneous ]
88
Nguyen Anh Quynh6cfabcd2014-03-03 17:04:15 +080089- make.sh now can uninstall the core engine. This is done with:
90
Nguyen Anh Quynh6e6ada22014-03-03 16:50:04 +080091 $ sudo ./make.sh uninstall
92
93----------------------------------
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +080094Version 2.0: January 22nd, 2014
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +080095
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +080096Release 2.0 deprecates verison 1.0 and brings a lot of crucial changes.
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +080097
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +080098[ API changes ]
99
100- API version has been bumped to 2.0 (see cs_version() API)
101- New API cs_strerror(errno) returns a string describing error code given
102 in its only argument.
103- cs_version() now returns combined version encoding both major & minor versions.
104- New option CS_OPT_MODE allows to change engine’s mode at run-time with
105 cs_option().
106- New option CS_OPT_MEM allows to specify user-defined functions for dynamically
107 memory management used internally by Capstone. This is useful to embed Capstone
108 into special environments such as kernel or firware.
109- New API cs_support() can be used to check if this lib supports a particular
110 architecture (this is necessary since we now allow to choose which architectures
111 to compile in).
112- The detail option is OFF by default now. To get detail information, it should be
113 explicitly turned ON. The details then can be accessed using cs_insn.detail
114 pointer (to newly added structure cs_detail)
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800115
116
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800117[ Core changes ]
118
119- On memory usage, Capstone uses much less memory, but a lot faster now.
120- User now can choose which architectures to be supported by modifying config.mk
121 before compiling/installing.
122
123
124[ Architectures ]
125
126- Arm
127 - Support Big-Endian mode (besides Little-Endian mode).
Nguyen Anh Quynh6c5eec52014-01-22 18:33:35 +0800128 - Support friendly register, so instead of output sub "r12,r11,0x14",
129 we have "sub ip,fp,0x14".
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800130- Arm64: support Big-Endian mode (besides Little-Endian mode).
131- PowerPC: newly added.
Nguyen Anh Quynh6c5eec52014-01-22 18:33:35 +0800132- Mips: support friendly register, so instead of output "srl $2,$1,0x1f",
133 we have "srl $v0,$at,0x1f".
Nguyen Anh Quynh1ee23262014-01-22 18:27:39 +0800134- X86: bug fixes.
135
136
137[ Python binding ]
138
139- Python binding is vastly improved in performance: around 3 ~ 4 times faster
140 than in 1.0.
141- Cython support has been added, which can further speed up over the default
142 pure Python binding (up to 30% in some cases)
143- Function cs_disasm_quick() & Cs.disasm() now use generator (rather than a list)
144 to return succesfully disassembled instructions. This improves the performance
145 and reduces memory usage.
146
147
148[ Java binding ]
149
150- Better performance & bug fixes.
151
152
153[ Miscellaneous ]
154
155- Fixed some installation issues with Gentoo Linux.
156- Capstone now can easily compile/install on all *nix, including Linux, OSX,
157 {Net, Free, Open}BSD & Solaris.
158
159----------------------------------
Nguyen Anh Quynh8282dc62014-01-15 21:20:47 +0800160[Version 1.0]: December 18th, 2013
161
162- Initial public release.
163