Nguyen Anh Quynh | 8282dc6 | 2014-01-15 21:20:47 +0800 | [diff] [blame] | 1 | This file details the changelog of Capstone. |
| 2 | |
Nguyen Anh Quynh | 1ee2326 | 2014-01-22 18:27:39 +0800 | [diff] [blame] | 3 | --------------------------------- |
Nguyen Anh Quynh | 2f43c39 | 2014-04-01 09:19:19 +0800 | [diff] [blame] | 4 | Version 2.1.2: April 3rd, 2014 |
Nguyen Anh Quynh | 025a345 | 2014-03-30 22:39:22 +0800 | [diff] [blame] | 5 | |
| 6 | This is a stable release to fix some bugs deep in the core. There is no update |
| 7 | to any architectures or bindings, so bindings version 2.1 can be used with this |
| 8 | version 2.1.2 just fine. |
| 9 | |
| 10 | [ Core changes] |
| 11 | |
Nguyen Anh Quynh | 2f43c39 | 2014-04-01 09:19:19 +0800 | [diff] [blame] | 12 | - Support cross-compilation for all iDevices (iPhone/iPad/iPod). |
| 13 | - X86: do not print memory offset in negative form. |
Nguyen Anh Quynh | 025a345 | 2014-03-30 22:39:22 +0800 | [diff] [blame] | 14 | - Fix a bug in X86 when Capstone cannot handle short instruction. |
| 15 | - Print negative number above -9 without prefix 0x (arm64, mips, arm). |
| 16 | - Correct the SONAME setup for library versioning (Linux, *BSD, Solaris). |
| 17 | - Set library versioning for dylib of OSX. |
| 18 | |
| 19 | --------------------------------- |
Nguyen Anh Quynh | 56db639 | 2014-03-11 11:24:46 +0800 | [diff] [blame] | 20 | Version 2.1.1: March 13th, 2014 |
| 21 | |
| 22 | This is a stable release to fix some bugs deep in the core. There is no update |
| 23 | to any architectures or bindings, so bindings version 2.1 can be used with this |
| 24 | version 2.1.1 just fine. |
| 25 | |
| 26 | [ Core changes] |
| 27 | |
| 28 | - Fix a buffer overflow bug in Thumb mode (ARM). Some special input can |
| 29 | trigger this flaw. |
| 30 | - Fix a crash issue when embedding Capstone into OSX kernel. This should |
Nguyen Anh Quynh | a96d25e | 2014-03-11 11:41:09 +0800 | [diff] [blame] | 31 | also enable Capstone to be embedded into other systems with limited stack |
Nguyen Anh Quynh | 56db639 | 2014-03-11 11:24:46 +0800 | [diff] [blame] | 32 | memory size such as Linux kernel or some firmwares. |
| 33 | - Use a proper SONAME for library versioning (Linux). |
| 34 | |
| 35 | --------------------------------- |
Nguyen Anh Quynh | f51971d | 2014-03-05 00:09:49 +0800 | [diff] [blame] | 36 | Version 2.1: March 5th, 2014 |
Nguyen Anh Quynh | 6e6ada2 | 2014-03-03 16:50:04 +0800 | [diff] [blame] | 37 | |
| 38 | [ API changes ] |
| 39 | |
| 40 | - API version has been bumped to 2.1. |
Nguyen Anh Quynh | 6cfabcd | 2014-03-03 17:04:15 +0800 | [diff] [blame] | 41 | - Change prototype of cs_close() to be able to invalidate closed handle. |
Nguyen Anh Quynh | 6e6ada2 | 2014-03-03 16:50:04 +0800 | [diff] [blame] | 42 | See http://capstone-engine.org/version_2.1_API.html for more information. |
| 43 | - Extend cs_support() to handle more query types, not only about supported |
| 44 | architectures. This change is backward compatible, however, so existent code |
| 45 | do not need to be modified to support this. |
| 46 | - New query type CS_SUPPORT_DIET for cs_support() to ask about diet status of |
| 47 | the engine. |
| 48 | - New error code CS_ERR_DIET to report errors about newly added diet mode. |
| 49 | - New error code CS_ERR_VERSION to report issue of incompatible versions between |
| 50 | bindings & core engine. |
| 51 | |
| 52 | |
| 53 | [ Core changes ] |
| 54 | |
| 55 | - On memory usage, Capstone uses about 40% less memory, while still faster |
| 56 | than version 2.0. |
| 57 | - All architectures are much smaller: binaries size reduce at least 30%. |
| 58 | Especially, X86-only binary reduces from 1.9MB to just 720KB. |
| 59 | - Support "diet" mode, in which engine size is further reduced (by around 40%) |
| 60 | for embedding purpose. The price to pay is that we have to sacrifice some |
| 61 | non-critical data fields. See http://capstone-engine.org/diet.html for more |
| 62 | details. |
| 63 | |
| 64 | |
| 65 | [ Architectures ] |
| 66 | |
Nguyen Anh Quynh | 6cfabcd | 2014-03-03 17:04:15 +0800 | [diff] [blame] | 67 | - Update all 5 architectures to fix bugs. |
Nguyen Anh Quynh | 6e6ada2 | 2014-03-03 16:50:04 +0800 | [diff] [blame] | 68 | - PowerPC: |
| 69 | - New instructions: FMR & MSYNC. |
| 70 | - Mips: |
| 71 | - New instruction: DLSA |
| 72 | - X86: |
| 73 | - Properly handle AVX-512 instructions. |
| 74 | - New instructions: PSETPM, SALC, INT1, GETSEC. |
| 75 | - Fix some memory leaking issues in case of prefixed instructions such |
| 76 | as LOCK, REP, REPNE. |
| 77 | |
| 78 | |
| 79 | [ Python binding ] |
| 80 | |
| 81 | - Verify the core version at initialization time. Refuse to run if its version |
| 82 | is different from the core's version. |
| 83 | - New API disasm_lite() added to Cs class. This light API only returns tuples of |
Nguyen Anh Quynh | 6cfabcd | 2014-03-03 17:04:15 +0800 | [diff] [blame] | 84 | (address, size, mnemonic, op_str), rather than list of CsInsn objects. This |
Nguyen Anh Quynh | 6e6ada2 | 2014-03-03 16:50:04 +0800 | [diff] [blame] | 85 | improves performance by around 30% in some benchmarks. |
Nguyen Anh Quynh | 7fc8121 | 2014-03-04 23:56:42 +0800 | [diff] [blame] | 86 | - New API version_bind() returns binding's version, which might differ from |
Nguyen Anh Quynh | b0b7308 | 2014-03-03 17:57:15 +0800 | [diff] [blame] | 87 | the core's API version if the binding is out-of-date. |
Nguyen Anh Quynh | f51971d | 2014-03-05 00:09:49 +0800 | [diff] [blame] | 88 | - New API debug() returns information on Cython support, diet status & archs |
Nguyen Anh Quynh | 7fc8121 | 2014-03-04 23:56:42 +0800 | [diff] [blame] | 89 | compiled in. |
Nguyen Anh Quynh | 6e6ada2 | 2014-03-03 16:50:04 +0800 | [diff] [blame] | 90 | - Fixed some memory leaking bugs for Cython binding. |
| 91 | - Fix a bug crashing Cython code when accessing @regs_read/regs_write/groups. |
Nguyen Anh Quynh | e6c378e | 2014-03-03 17:25:53 +0800 | [diff] [blame] | 92 | - Support diet mode. |
Nguyen Anh Quynh | 6e6ada2 | 2014-03-03 16:50:04 +0800 | [diff] [blame] | 93 | |
| 94 | |
| 95 | [ Java binding ] |
| 96 | |
| 97 | - Fix some memory leaking bugs. |
Nguyen Anh Quynh | e6c378e | 2014-03-03 17:25:53 +0800 | [diff] [blame] | 98 | - New API version() returns combined version. |
| 99 | - Support diet mode. |
Nguyen Anh Quynh | 6e6ada2 | 2014-03-03 16:50:04 +0800 | [diff] [blame] | 100 | - Better support for detail option. |
| 101 | |
| 102 | |
| 103 | [ Miscellaneous ] |
| 104 | |
Nguyen Anh Quynh | 6cfabcd | 2014-03-03 17:04:15 +0800 | [diff] [blame] | 105 | - make.sh now can uninstall the core engine. This is done with: |
| 106 | |
Nguyen Anh Quynh | 6e6ada2 | 2014-03-03 16:50:04 +0800 | [diff] [blame] | 107 | $ sudo ./make.sh uninstall |
| 108 | |
| 109 | ---------------------------------- |
Nguyen Anh Quynh | 1ee2326 | 2014-01-22 18:27:39 +0800 | [diff] [blame] | 110 | Version 2.0: January 22nd, 2014 |
Nguyen Anh Quynh | 8282dc6 | 2014-01-15 21:20:47 +0800 | [diff] [blame] | 111 | |
Nguyen Anh Quynh | 1ee2326 | 2014-01-22 18:27:39 +0800 | [diff] [blame] | 112 | Release 2.0 deprecates verison 1.0 and brings a lot of crucial changes. |
Nguyen Anh Quynh | 8282dc6 | 2014-01-15 21:20:47 +0800 | [diff] [blame] | 113 | |
Nguyen Anh Quynh | 1ee2326 | 2014-01-22 18:27:39 +0800 | [diff] [blame] | 114 | [ API changes ] |
| 115 | |
| 116 | - API version has been bumped to 2.0 (see cs_version() API) |
| 117 | - New API cs_strerror(errno) returns a string describing error code given |
| 118 | in its only argument. |
| 119 | - cs_version() now returns combined version encoding both major & minor versions. |
| 120 | - New option CS_OPT_MODE allows to change engine’s mode at run-time with |
| 121 | cs_option(). |
| 122 | - New option CS_OPT_MEM allows to specify user-defined functions for dynamically |
| 123 | memory management used internally by Capstone. This is useful to embed Capstone |
| 124 | into special environments such as kernel or firware. |
| 125 | - New API cs_support() can be used to check if this lib supports a particular |
| 126 | architecture (this is necessary since we now allow to choose which architectures |
| 127 | to compile in). |
| 128 | - The detail option is OFF by default now. To get detail information, it should be |
| 129 | explicitly turned ON. The details then can be accessed using cs_insn.detail |
| 130 | pointer (to newly added structure cs_detail) |
Nguyen Anh Quynh | 8282dc6 | 2014-01-15 21:20:47 +0800 | [diff] [blame] | 131 | |
| 132 | |
Nguyen Anh Quynh | 1ee2326 | 2014-01-22 18:27:39 +0800 | [diff] [blame] | 133 | [ Core changes ] |
| 134 | |
| 135 | - On memory usage, Capstone uses much less memory, but a lot faster now. |
| 136 | - User now can choose which architectures to be supported by modifying config.mk |
| 137 | before compiling/installing. |
| 138 | |
| 139 | |
| 140 | [ Architectures ] |
| 141 | |
| 142 | - Arm |
| 143 | - Support Big-Endian mode (besides Little-Endian mode). |
Nguyen Anh Quynh | 6c5eec5 | 2014-01-22 18:33:35 +0800 | [diff] [blame] | 144 | - Support friendly register, so instead of output sub "r12,r11,0x14", |
| 145 | we have "sub ip,fp,0x14". |
Nguyen Anh Quynh | 1ee2326 | 2014-01-22 18:27:39 +0800 | [diff] [blame] | 146 | - Arm64: support Big-Endian mode (besides Little-Endian mode). |
| 147 | - PowerPC: newly added. |
Nguyen Anh Quynh | 6c5eec5 | 2014-01-22 18:33:35 +0800 | [diff] [blame] | 148 | - Mips: support friendly register, so instead of output "srl $2,$1,0x1f", |
| 149 | we have "srl $v0,$at,0x1f". |
Nguyen Anh Quynh | 1ee2326 | 2014-01-22 18:27:39 +0800 | [diff] [blame] | 150 | - X86: bug fixes. |
| 151 | |
| 152 | |
| 153 | [ Python binding ] |
| 154 | |
| 155 | - Python binding is vastly improved in performance: around 3 ~ 4 times faster |
| 156 | than in 1.0. |
| 157 | - Cython support has been added, which can further speed up over the default |
| 158 | pure Python binding (up to 30% in some cases) |
| 159 | - Function cs_disasm_quick() & Cs.disasm() now use generator (rather than a list) |
| 160 | to return succesfully disassembled instructions. This improves the performance |
| 161 | and reduces memory usage. |
| 162 | |
| 163 | |
| 164 | [ Java binding ] |
| 165 | |
| 166 | - Better performance & bug fixes. |
| 167 | |
| 168 | |
| 169 | [ Miscellaneous ] |
| 170 | |
| 171 | - Fixed some installation issues with Gentoo Linux. |
| 172 | - Capstone now can easily compile/install on all *nix, including Linux, OSX, |
| 173 | {Net, Free, Open}BSD & Solaris. |
| 174 | |
| 175 | ---------------------------------- |
Nguyen Anh Quynh | 8282dc6 | 2014-01-15 21:20:47 +0800 | [diff] [blame] | 176 | [Version 1.0]: December 18th, 2013 |
| 177 | |
| 178 | - Initial public release. |
| 179 | |