Debian Codegraph @

ChangeLog

raw
1 This file details the changelog of Capstone.
2
3 --------------------------------
4 Version 5.0.9: May 28th, 2026
5
6 ## What's Changed
7
8 * Set the correct CS_VERSION_EXTRA version number in capstone.h
9 * Fix reachable OOB read in M68KInstPrinter.c (GHSA-jrw4-wj52-2vw8).
10 * Fix invalid decoding for malformed br_table instruction in WASM (GHSA-5m9f-vqcm-g5pr).
11
12 --------------------------------
13 Version 5.0.8: May 23th, 2026
14
15 ## What's Changed
16 * Python binding: Removing xprint utility used in the tests in v5 branch by @Antelox in https://github.com/capstone-engine/capstone/pull/2873
17 * v5: Speedup x86 decoding with the help of LUT tables by @trufae in https://github.com/capstone-engine/capstone/pull/2907
18 * Backport #2886 - cs_disasm_iter: return early on zero-size input by @Rot127 in https://github.com/capstone-engine/capstone/pull/2920
19 * Backport #2913 - Implement load libcapstone.so with RTLD_DEEPBIND by @Rot127 in https://github.com/capstone-engine/capstone/pull/2919
20 * Backport #2915 - Use setattr to rewire Cs.disasm to avoid type checking errors by @Rot127 in https://github.com/capstone-engine/capstone/pull/2918
21 * Backport of CVE-2026-47143 fix by @Rot127 in https://github.com/capstone-engine/capstone/pull/2924
22 * Backport #2930 by @Rot127 in https://github.com/capstone-engine/capstone/pull/2931
23
24 **Full Changelog**: https://github.com/capstone-engine/capstone/compare/5.0.7...5.0.8
25
26 --------------------------------
27 Version 5.0.7: February 4th, 2026
28
29 ## What's Changed
30 * Backport for 5.0.7 by @scribam in https://github.com/capstone-engine/capstone/pull/2785
31 * CVE v5 backports by @Rot127 in https://github.com/capstone-engine/capstone/pull/2835
32
33 **Full Changelog**: https://github.com/capstone-engine/capstone/compare/5.0.6...5.0.7
34
35 --------------------------------
36 Version 5.0.6: March 23th, 2025
37
38 ## What's Changed
39 * V5 - Fix sdist build and add CI job for testing it. by @Rot127 in https://github.com/capstone-engine/capstone/pull/2623
40 * Build Tarball before DEB/RPM package. by @Rot127 in https://github.com/capstone-engine/capstone/pull/2626
41 * Fix cmake error when build with capstone as submodule by @WerWolv in https://github.com/capstone-engine/capstone/pull/2619
42 * [v5] Tms32c64x little endian by @Rot127 in https://github.com/capstone-engine/capstone/pull/2649
43
44 ## New Contributors
45 * @WerWolv made their first contribution in https://github.com/capstone-engine/capstone/pull/2619
46
47 --------------------------------
48 Version 5.0.5: January 16th, 2025
49
50 ## What's Changed
51 * Fix code missing in v5.0.4
52
53 --------------------------------
54 Version 5.0.4: January 16th, 2025
55
56 ## What's Changed
57 * [v5][SuperH] Fix missing setting detail->sh by @david942j in https://github.com/capstone-engine/capstone/pull/2465
58 * tricore: fixes #2386 in v5 by @imbillow in https://github.com/capstone-engine/capstone/pull/2527
59 * Creating a functional Debian Package for Capstone v5 by @AndrewQuijano in https://github.com/capstone-engine/capstone/pull/2569
60 * Duplicate of #2590 for v5 Branch by @AndrewQuijano in https://github.com/capstone-engine/capstone/pull/2596
61 * Update version to v5.0.4 by @kabeor in https://github.com/capstone-engine/capstone/pull/2604
62
63 --------------------------------
64 Version 5.0.3: August 20th, 2024
65
66 ## What's Changed
67 * [v5] Updates and fixes to the Python wheel builder workflow by @Rot127 in https://github.com/capstone-engine/capstone/pull/2440
68 * Relocatable package v5 by @mrexodia in https://github.com/capstone-engine/capstone/pull/2447
69 * [v5] Wheel build fixes: manylinux1, trigger upload on release, Linux AArch64 by @Rot127 in https://github.com/capstone-engine/capstone/pull/2443
70
71 --------------------------------
72 Version 5.0.2: August 12th, 2024
73
74 ## What's Changed
75 * [v5] Add meta-programming macros for ARM64/AArch64 name change to capstone.h by @Rot127 in https://github.com/capstone-engine/capstone/pull/2199
76 * [v5] Add CS_aarch64 macro without parameter. by @Rot127 in https://github.com/capstone-engine/capstone/pull/2219
77 * [v5] python: Fix definition of capstone syntax value option constants by @nmeum in https://github.com/capstone-engine/capstone/pull/2240
78 * Constify TriCore by @rth7680 in https://github.com/capstone-engine/capstone/pull/2246
79 * Revert constant value of CS_OP_MEM to `v5.0.1` by @Rot127 in https://github.com/capstone-engine/capstone/pull/2275
80 * Do not use 0b prefix, not supported on old compilers by @trufae in https://github.com/capstone-engine/capstone/pull/2306
81 * Update CMakeLists.txt version (See #2310) by @PerikiyoXD in https://github.com/capstone-engine/capstone/pull/2311
82 * [v5] Fix #2128 by adding missing mapping values. by @Rot127 in https://github.com/capstone-engine/capstone/pull/2334
83 * [v5] Fix #2079: Add missing 1 immediate to `rcl` by @Rot127 in https://github.com/capstone-engine/capstone/pull/2329
84 * [v5] Fix incorrect ID mappings for PPC by @Rot127 in https://github.com/capstone-engine/capstone/pull/2333
85 * [v5] Fix #2244: Don't apply pseudo-instr. offset to `vcmp` id by @Rot127 in https://github.com/capstone-engine/capstone/pull/2332
86 * Fix comparison using narrow types in loop condition by @trufae in https://github.com/capstone-engine/capstone/pull/2360
87 * SH: Use bitwise OR with mask for sign extension by @lhsazevedo in https://github.com/capstone-engine/capstone/pull/2371
88 * Remove deprecated packaging and cython by @twizmwazin in https://github.com/capstone-engine/capstone/pull/2400
89 * [v5] Fix typo in AArch64 Python binding by @david942j in https://github.com/capstone-engine/capstone/pull/2412
90 * Backport python-publish.yml from next by @twizmwazin in https://github.com/capstone-engine/capstone/pull/2408
91 * [v5] Add release wheel build workflow for all Python versions by @Rot127 in https://github.com/capstone-engine/capstone/pull/2415
92 * [v5] Fix unintended zero set in Sparc printInst by @david942j in https://github.com/capstone-engine/capstone/pull/2420
93 * [v5][arm] Consider SpecRegRBit on setting SYSREG by @david942j in https://github.com/capstone-engine/capstone/pull/2422
94 * Prepare for release v5.0.2 by @kabeor in https://github.com/capstone-engine/capstone/pull/2425
95
96 ## New Contributors
97 * @nmeum made their first contribution in https://github.com/capstone-engine/capstone/pull/2240
98 * @PerikiyoXD made their first contribution in https://github.com/capstone-engine/capstone/pull/2311
99 * @lhsazevedo made their first contribution in https://github.com/capstone-engine/capstone/pull/2371
100
101
102 --------------------------------
103 Version 5.0.1: August 23rd, 2023
104
105 ## What's Changed
106
107 * [ARM] Fix VFP feature check by @Rot127 in https://github.com/capstone-engine/capstone/pull/2090
108 * Restore the ARM register naming from v4. by @gerph in https://github.com/capstone-engine/capstone/pull/2108
109 * Use OS independent printf formatting. by @Rot127 in https://github.com/capstone-engine/capstone/pull/2109
110 * Cherry-pick from next for v5.0.1 by @kabeor in https://github.com/capstone-engine/capstone/pull/2141
111 * Add Python bindings for WASM by @peace-maker https://github.com/capstone-engine/capstone/pull/2095
112 * Sync Python bindings for x86, m68k, and mos65xx by @peace-maker https://github.com/capstone-engine/capstone/pull/2100
113 * Add Python bindings for SH by @peace-maker https://github.com/capstone-engine/capstone/pull/2096
114 * Update Python binding constants by @peace-maker https://github.com/capstone-engine/capstone/pull/2097
115 * Fixing TriCore disasm instructions by @bkoppelmann https://github.com/capstone-engine/capstone/pull/2088
116 * allow absolute CMAKE_INSTALL_*DIR @chayleaf https://github.com/capstone-engine/capstone/pull/2134
117
118 ## New Contributors
119 * @gerph made their first contribution in https://github.com/capstone-engine/capstone/pull/2108
120 * @bkoppelmann made their first contribution in https://github.com/capstone-engine/capstone/pull/2088
121 * @chayleaf made their first contribution in https://github.com/capstone-engine/capstone/pull/2134
122
123
124 -----------------------------
125 Version 5.0.0: July 5th, 2023
126
127 ## What's Changed
128 * [workflows] Remove deprecated image versions by @kabeor in https://github.com/capstone-engine/capstone/pull/2057
129 * Fix capstone_test.c #2059 by @imbillow in https://github.com/capstone-engine/capstone/pull/2060
130 * Support repz prefix on X86 ret instructions by @adamjseitz in https://github.com/capstone-engine/capstone/pull/2063
131 * fix for msvc static lib, dll build error and warnings by @arkup in https://github.com/capstone-engine/capstone/pull/2061
132 * use calloc for cs_insn instead of malloc by @ConnorRigby in https://github.com/capstone-engine/capstone/pull/1972
133 * Fix access bug for TEST op by @melynx in https://github.com/capstone-engine/capstone/pull/1511
134 * Update Cython bindings by @peace-maker in https://github.com/capstone-engine/capstone/pull/2068
135 * Use Intel register syntax for Tricore by @XVilka in https://github.com/capstone-engine/capstone/pull/2067
136 * Add `#` prefix to tricore imm operand by @imbillow in https://github.com/capstone-engine/capstone/pull/2070
137 * Revert "Mark cs_* as thread local to avoid race condition in multithreads" by @oleavr in https://github.com/capstone-engine/capstone/pull/1933
138 * Replace strncpy with memcpy to fix compiler warning. by @Rot127 in https://github.com/capstone-engine/capstone/pull/2075
139 * Remove outdated and irrelevant TODO by @XVilka in https://github.com/capstone-engine/capstone/pull/2074
140
141 ## New Contributors
142 * @arkup made their first contribution in https://github.com/capstone-engine/capstone/pull/2061
143 * @ConnorRigby made their first contribution in https://github.com/capstone-engine/capstone/pull/1972
144 * @melynx made their first contribution in https://github.com/capstone-engine/capstone/pull/1511
145
146
147 ---------------------------------
148 Version 5.0.0-rc4: June 18th, 2023
149
150 ## What's Changed
151 * Fix TriCore test by @hamarituc in https://github.com/capstone-engine/capstone/pull/2049
152 * [workflows] Fix python-publish issue by @kabeor in https://github.com/capstone-engine/capstone/pull/2050
153 * Update version tag by @kabeor in https://github.com/capstone-engine/capstone/pull/2052
154 * Release 5.0-rc4 by @kabeor in https://github.com/capstone-engine/capstone/pull/2051
155
156 ---------------------------------
157 Version 5.0.0-rc3: June 17th, 2023
158
159 What's Changed:
160 - update pkgconfig version by @kabeor in #1847
161 - vb6 bindings: clarify license as Apache v2.0 by @dzzie in #1850
162 - AArch64 SYS instruction operands by @adamjseitz in #1859
163 - AArch64: fix missing VAS specifiers in aliased instructions by @adamjseitz in #1860
164 - Add cstool in CMake Package Config + CMake Github Workflow by @theblackunknown in #1867
165 - Fix pkgconfig not installed when CAPSTONE_BUILD_CSTOOL is false by @theblackunknown in #1870
166 - AArch64 comprehensively add vas specifiers to aliased instructions by @adamjseitz in #1877
167 - Fix pkg-config template by @hamarituc in #1878
168 - Fix eBPF lddw opcode by @terorie in #1885
169 - Add eBPF callx instruction by @terorie in #1886
170 - Mark cs_* as thread local to avoid race condition in multithreads by @wtdcode in #1891
171 - One semicolon is enough in C by @trufae in #1892
172 - Add PowerPC paired-singles support by @terorie in #1898
173 - Update the table for UD0 and UD1 with the latest llvm table by @junghee in #1863
174 - Sync eBPF and PowerPC bindings by @terorie in #1900
175 - Fix PPC insn names and psq displacement by @terorie in #1902
176 - Fix -Werror build by @trufae in #1906
177 - Remove outdated ctypes requirement by @jbott in #1910
178 - Fix memory leak in testsuite by @hamarituc in #1919
179 - PPC: fix out of bound memory access by @hamarituc in #1913
180 - AArch64 armv9.2 update by @FinnWilkinson in #1907
181 - m68k: Add support for the FNOP instruction by @huth in #1921
182 - arm64: fix invalid free introduced in 662bb3f by @trufae in #1926
183 - Fixed SME index alias printing issue. by @FinnWilkinson in #1925
184 - Updated Arm64 python bindings after Armv9.2-a support. by @FinnWilkinson in #1932
185 - ARM/AArch64: Add post-index to instruction info by @ZehMatt in #1937
186 - Fix regressions in custom memory allocator support by @oleavr in #1934
187 - cstool: support riscv compressed instruction disassemble by @rrwhx in #1940
188 - Mention debug build option for cmake. by @Rot127 in #1942
189 - cstool: avoid misaligned instructions in compressed riscv by @carenas in #1943
190 - arm64: fix missing post_index by @HyperSine in #1944
191 - Add CMAKE_EXPORT_COMPILE_COMMANDS to cmake build doc by @Rot127 in #1948
192 - Fix potential array out of bounds by @mjunix in #1938
193 - Add Renesas SuperH instructions support by @ysat0 in #1927
194 - fix missing access field in arm64 java binding by @sunxingxing in #1959
195 - Update python bindings to fix ARM in detail mode. by @wideglide in #1961
196 - sh: add missing include for CMake install step by @SweetVishnya in #1964
197 - Fix CITest && python binding issues by @kabeor in #1965
198 - correct register accesses for ARM's sxtb/uxtb and similar instructions by @covanam in #1968
199 - In x86: Fixed backward compatibility with C90 by @hasherezade in #1969
200 - Fix for missing register usages on ARM64 authenticated branches (issue #1975) by - @stevielavern in #1976
201 - AArch64: fixes register access flags for moves by @thomasdangl in #1974
202 - [SH] Fix build warnings by @Rot127 in #1960
203 - update CI ubuntu version by @kabeor in #1986
204 - fix cstest Makefile by @imbillow in #1989
205 - fix: compile error missing file cstool msvc/visual studio by @raigorx in #2000
206 - Fix missing NOTRACK prefix by @junghee in #2002
207 - Fix make builds with SH support by @trufae in #2006
208 - Add missing architectures in the readme and sort them by @trufae in #2008
209 - Add TriCore Architecture by @imbillow in #1973
210 - Fix compilation warnings related to TriCore. by @imbillow in #2012
211 - Fix SH build warnings. by @Rot127 in #2016
212 - Tricore fix the negative call and jump by @imbillow in #2018
213 - [SH] Fix warnings about unhandled switch cases by adding defaults. by @Rot127 in #2017
214 - Tricore fix disp fill and ctest build by @imbillow in #2019
215 - Fix disassemble of xor by @imbillow in #2023
216 - Fix register accesses & operands of multiple ARMv8.3 PAC instructions by @stevielavern in - #2022
217 - Add missing arm64 to Darwin LIBARCHS and remove dependencies tracking… by @gdbinit in #2024
218 - Fix tricore compile warning by @imbillow in #2027
219 - [PPC] Fix random branch hint and update_cr0 set up. by @Rot127 in #2028
220 - Fix #2032 by @Rot127 in #2033
221 - Add operands access support for TriCore by @imbillow in #2034
222 - Hotfix for -DCAPSTONE_DIET build. by @Rot127 in #2038
223 - Fix Python bindings after changes to cs_detail by @peace-maker in #2041
224 - RISCV: Add call, int and branch_relative instruction groups by @peace-maker in #2007
225 - Re-fix pkgconfig includedir/Cflags by @orlitzky in #2046
226
227 New Contributors:
228 - @adamjseitz made their first contribution in #1859
229 - @theblackunknown made their first contribution in #1867
230 - @hamarituc made their first contribution in #1878
231 - @terorie made their first contribution in #1885
232 - @junghee made their first contribution in #1863
233 - @jbott made their first contribution in #1910
234 - @FinnWilkinson made their first contribution in #1907
235 - @huth made their first contribution in #1921
236 - @ZehMatt made their first contribution in #1937
237 - @rrwhx made their first contribution in #1940
238 - @Rot127 made their first contribution in #1942
239 - @HyperSine made their first contribution in #1944
240 - @mjunix made their first contribution in #1938
241 - @ysat0 made their first contribution in #1927
242 - @sunxingxing made their first contribution in #1959
243 - @wideglide made their first contribution in #1961
244 - @SweetVishnya made their first contribution in #1964
245 - @covanam made their first contribution in #1968
246 - @thomasdangl made their first contribution in #1974
247 - @imbillow made their first contribution in #1989
248 - @raigorx made their first contribution in #2000
249 - @peace-maker made their first contribution in #2041
250 - @orlitzky made their first contribution in #2046
251
252
253 ---------------------------------
254 Version 5.0.0-rc2: February 28th, 2022
255
256 New features:
257 - None
258
259 Improvements:
260 - Fix for python publish build (#1844)
261 - Modernize CMake and switch to CMake 3.15 (#1841)
262 - Fix AArch64 ldapr detailed information (#1840)
263 - Fix incorrect MI->ac_idx leading to wrong AArch64 InsnOp access printing (#1845)
264
265 Contributors:
266 - stevielavern
267 - mrexodia
268 - kabeor
269
270 ---------------------------------
271 Version 5.0.0-rc1: February 27th, 2022
272
273 New features:
274 - Add arch BPF (#1388)
275 - Add arch RISCV (#1401)
276 - Add arch WASM (#1359)
277 - PyPI workflow (#1645)
278 - Option to generate install target (#1698 #1700)
279 - Swift binding (#1707)
280 - Add CI Test support (#1797)
281 - Add benchmark (#1811)
282
283 Improvements:
284 - Add fixups for aarch64 instructions (#1632 #1655)
285 - Add fixups for x86 instructions (#1644 #1657 #1689 1751)
286 - Add fixups for m68k instructions (#1663 #1709)
287 - Add fixups for m680x instructions (#1695)
288 - Add fixups for mips instructions (#1674)
289 - Add fixups for mos65xx instructions (#1702)
290 - Add fixups for systemz instructions (#1679)
291 - Add fixups for risc-v instructions (#1682 #1690 #1691)
292 - Add fixups for ppc instructions (#1687 #1688)
293 - Add cmake config and export targets (#1637)
294 - Fix issues in Makefiles (#1639)
295 - Fix issues about cmake builds (#1649 #1659)
296 - MSVC tooling updates (#1651)
297 - Fix crash when using skipdata with NULL mnemonic(#1703)
298 - Fix python only use ascii character (#1704)
299 - Add support for aarch64 distributions (#1720)
300 - Fix registry access for several versions of pop such as POPDS, POPSS, etc. (#1725)
301 - Fix registry access on cmov instructions (#1727)
302 - Fix -Wstringop-truncation warnings (#1730)
303 - Fix always return the same type from regs_read (#1736)
304 - Fix inconsistent behavior of Mips_option() (#1744)
305 - Fix pythonic bug (#1745)
306 - Fixes the (pip) Python Module build on FreeBSD (#1750)
307 - Enable detection and build on all BSD systems (#1753)
308 - Fix the displacement offset for moffset-encoded operands (#1754)
309 - Update cmake_minimum_required to version 2.8.12 (#1756)
310 - Fixed typos in compilation steps (#1762)
311 - Fix build android (#1765)
312 - Support disassembling bytes from memoryview (#1773)
313 - Fixed library extension to build properly under CYGWIN (#1791)
314 - Add Capstone Engine Documentation (#1794)
315 - Fix eflags effects for adc/sbb (#1798)
316 - Update x86 operand access information (#1801)
317 - CI automatically build release tarball (#1802)
318 - Dont format sstreams when there's nothing to format (#1805)
319 - Fix warning about Unused variables (#1815)
320 - Fix insn initialization when instruction have no operands or have a prefix (#1816)
321 - Avoid abort() if x86 not supported (#1818)
322 - Fix unterminated string regression (#1819)
323 - Fixed incorrect operand access on x86 instruction vmovdqu (#1823)
324
325 Contributors:
326 - ekilmer
327 - mcmtroffaes
328 - sh1r4s3
329 - emoon
330 - chfl4gs
331 - heshpdx
332 - hmoenck
333 - cyanpencil
334 - NicolasDerumigny
335 - trofi
336 - maximumspatium
337 - junchao-loongson
338 - carenas
339 - notyourusualaccountname
340 - rth7680
341 - StalkR
342 - aeflores
343 - TobiasFaller
344 - XVilka
345 - meme
346 - zydeco
347 - catenacyber
348 - michalsc
349 - urbas
350 - keenk
351 - kazarmy
352 - learn-more
353 - veritas501
354 - trufae
355 - cederom
356 - Quentin01
357 - jranieri-grammatech
358 - scribam
359 - huettenhain
360 - LBJ-the-GOAT
361 - wheremyfoodat
362 - Jaysonicc
363 - huettenhain
364 - syscl
365 - bezita
366 - Smartsmurf
367 - tmfink
368 - kazarmy
369 - rofl0r
370 - bSr43
371 - wtdcode
372 - dropTableUsers42
373 - carenas
374 - owlxiao
375 - Mxz297
376 - SpikeI
377 - catenacyber
378 - david942j
379 - fanfuqiang
380 - aquynh
381 - kabeor
382
383
384 ---------------------------------
385 Version 4.0.2: May 8th, 2020
386
387 [ Core ]
388
389 - Windows kernel-mode driver support
390 - Fix installation path on FreeBSD and DragonFly
391
392
393 [ cstool ]
394
395 - Add armv8, ppc32 & thumbv8 modes
396 - Print instruction ID
397
398
399 [ X86 ]
400
401 - Support CS_OPT_UNSIGNED for ATT syntax
402 - Fix operand size for some instructions
403 - Fix LOCK prefixes
404 - Recognize xacquire/xrelease prefix
405 - Fix call/jmp access mode of mem operand
406 - Add ENDBR32, ENDBR64 to reduce mode
407 - Other minor fixes
408
409
410 [ ARM64 ]
411
412 - Support CS_OPT_UNSIGNED
413 - Fix register access flags for memory instructions
414 - Fix UMOV vess
415
416
417 [ ARM ]
418
419 - Update writeback for STR_POST_REG
420
421
422 [ M68K ]
423
424 - Store correct register value in op.reg_pair
425
426
427 [ PowerPC ]
428
429 - BDZLA is absolute branch
430
431
432 [ SystemZ ]
433
434 - Fix truncated 64bit imm operand
435 - Fix base/index printing
436
437
438 [ Python ]
439
440 - Fix skipdata struct being destroyed
441 - Add repr for capstone.CsInsn
442
443
444 [ Java ]
445
446 - Fix Java bindings to use pointers instead of longs
447
448
449 [ Ocaml ]
450
451 - Fix x86_op record
452
453
454 ---------------------------------
455 Version 4.0.1: January 10th, 2019
456
457
458 [ Core ]
459
460 - Fix some issues for packaging (Debian, Gentoo).
461 - Better support for building with Mingw.
462 - cstool has new option -s to turn on skipdata mode.
463 - cstool -v now report build settings of the core.
464 - Add suite/capstone_get_setup.c so users can integrate with their own code
465 to retrieve Capstone settings at build time.
466
467
468 [ Arm ]
469
470 - Fix 4.0 regression: the `tbh [r0, r1, lsl #1]` instruction sets the operand.shift.value back again (see #1317)
471 - Remove ARM_REG_PC group for BX instruction.
472
473
474 [ X86 ]
475
476 - Fix: endbr32 and endbr64 instructions are now properly decoded in both CS_MODE_32 and CS_MODE_64 (#1129)
477
478
479 [ M680X ]
480
481 - Fix some issues reported by clang-analyzer (#1329).
482
483
484 [ Python ]
485
486 - Fix skipdata setup.
487 - Add getter/setter for skipdata_mnem, skipdata_callback.
488
489
490 ---------------------------------
491 Version 4.0: December 18th, 2018
492
493
494 [ Core ]
495
496 - New APIs: cs_regs_access()
497 - Add new options for cs_option(): CS_OPT_MNEMONIC & CS_OPT_UNSIGNED & CS_OPT_SYNTAX_MASM.
498 - Various updates & bugfixes for all architectures.
499 - Add 4 new architectures: EVM, M68K, M680X & TMS320C64x.
500 - Add new group types: CS_GRP_PRIVILEGE & CS_GRP_BRANCH_RELATIVE.
501 - Add new error types: CS_ERR_X86_MASM.
502
503
504 [ X86 ]
505
506 - Add XOP code condition type in x86_xop_cc.
507 - Add some info on encoding to cs_x86 in cs_x86_encoding.
508 - Add register flags update in cs_x86.{eflags, fpu_flags}
509 - Change cs_x86.disp type from int32_t to int64_t.
510 - Add new groups: X86_GRP_VM & X86_GRP_FPU.
511 - Lots of new instructions (AVX)
512
513
514 [ ARM64 ]
515
516 - Add instruction ARM64_INS_NEGS & ARM64_INS_NGCS.
517
518
519 [ Mips ]
520
521 - Add mode CS_MODE_MIPS2.
522
523
524 [ PPC ]
525
526 - Change cs_ppc_op.imm type from int32_t to int64_t.
527 - Add new groups: PPC_GRP_ICBT, PPC_GRP_P8ALTIVEC, PPC_GRP_P8VECTOR & PPC_GRP_QPX.
528 - Lots of new instructions (QPX among them)
529
530
531 [ Sparc ]
532
533 - Change cs_sparc_op.imm type from int32_t to int64_t.
534
535
536 [ Binding ]
537
538 - New bindings: PowerShell & VB6
539
540
541 ---------------------------------
542 Version 3.0.5: July 18th, 2018
543
544
545 [ Core ]
546
547 - Fix the include path for Android builds when building cstool.
548 - Add posibility to disable universal build for Mac OS.
549 - cstool: Separate instruction bytes by spaces.
550 - Fix code path of pkg-config in Cmake.
551 - Update XCode project for XCode 9.1.
552 - Add Cortex-M support to cstool.
553 - Cmake forces to be build using MT with MSVC.
554 - Better support for Mac OS kernel.
555
556
557 [ X86 ]
558
559 - Fix some issues in handling EVEX & VEX3 instructions.
560 - Fix immediate operand for AND instruction in ATT mode.
561 - Fix ATT syntax when imm operand is 0.
562 - Better handle XACQUIRE/XRELEASE.
563 - Fix imm operand of RETF.
564
565
566 [ ARM ]
567
568 - Fix an integer overlow bug.
569
570
571 [ ARM64 ]
572
573 - Bug fix for incorrect operand type in certain load/store instructions.
574
575
576 [ Mips ]
577
578 - Mode CS_MODE_MIPS32R6 automatically sets CS_MODE_32
579
580
581 [ PPC ]
582
583 - Fix endian check.
584
585
586 [ Sparc ]
587
588 - Fix an integer overlow bug.
589
590
591 [ SystemZ ]
592
593 - Fix an integer overlow bug.
594
595
596 [ Python binding ]
597
598 - Raise error on accessing irrelevant data fields if skipdata & detail modes are enable.
599
600
601 ---------------------------------
602 Version 3.0.5-rc3: July 31st, 2017
603
604
605 [ Core ]
606
607 - Fix compilation for MacOS kernel extension
608 - cstool to support armbe and arm64be modes
609 - Add nmake.bat for Windows build
610 - Fix an integer overflow for Windows kernel driver
611 - Support to embedded Capstone into MacOS kernel
612 - cstool: fix mips64 mode
613 - Fix a compiling error in MS Visual Studio 2015
614 - Install pkgconfig file with CMake build
615 - Fix SOVERSION property of CMake build
616 - Properly handle switching to Endian mode at run-time for Arm, Arm64, Mips & Sparc
617 - Fix MingW build
618 - Better handle CMake installation for Linux 64bit
619
620
621 [ X86 ]
622
623 - Support BND prefix of Intel MPX extension
624 - Correct operand size for CALL/JMP in 64bit mode with prefix 0x66
625 - LOCK NOP is a valid instruction
626 - Fix ATT syntax for instruction with zero offset segment register
627 - LES/LDS are invalid in 64bit mode
628 - Fix number of operands for some MOV instructions
629
630
631 [ ARM ]
632
633 - Fix POP reg to update SP register
634 - Update flags for UADD8 instruction
635
636
637 [ ARM64 ]
638
639 - Better performance with new lookup table
640 - Handle system registers added in ARMv8.1/2
641
642
643 [ Java binding ]
644
645 - Better handle input with invalid code
646
647
648 [ Visual Basic binding ]
649
650 - New binding
651
652 ---------------------------------
653 Version 3.0.5-rc2: March 2nd, 2017
654
655
656 [ Core ]
657
658 - Fix build for Visual Studio 2012
659 - Fix X86_REL_ADDR macro
660 - Add CS_VERSION_MAJOR, CS_VERSION_MINOR, CS_VERSION_EXTRA
661 - Better support for embedding Capstone into Windows kernel drivers
662 - Support to embedded Capstone into MacOS kernel
663 - Support MacOS 10.11 and up
664 - Better support for Cygwin
665 - Support build packages for FreeBSD & DragonflyBSD
666 - Add a command-line tool "cstool"
667 - Properly handle switching to Endian mode at run-time for Arm, Arm64, Mips & Sparc
668
669
670 [ X86 ]
671
672 - Some random 16-bit code can be handled wrongly.
673 - Remove abundant operand type X86_OP_FP
674 - Fix instructions MOVQ, LOOP, LOOPE, LOOPNE, CALL/JMP rel16, REPNE LODSD, MOV *AX, MOFFS, FAR JMP/CALL
675 - Add X86_REG_EFLAGS for STC and STD
676 - Fix instruction attributes for SYSEXIT, MOVW, ROL, LGS, SLDT
677 - Rename registers ST0-ST7 to be consistent with asm output
678
679
680 [ ARM ]
681
682 - Properly handle IT instruction
683 - Fix LDRSB
684 - Fix writeback for LDR
685 - Fix Thumb BigEndian setup
686
687
688 [ ARM64 ]
689
690 - Fix arith extender
691 - Fix writeback for LDR
692 - Rename enum arm64_mrs_reg to arm64_sysreg
693
694
695 [ PowerPC ]
696
697 - Print 0 offset for memory operand
698
699
700 [ Sparc ]
701
702 - Fix POPC instruction
703
704
705 [ Python binding ]
706
707 - Better PyPy support
708 - Add __version__
709 - Better support for Python 3
710 - Fix CS_SKIPDATA_CALLBACK prototype
711 - Cast skipdata function inside binding to simplify the API
712
713
714 [ Java binding ]
715
716 - Better handle input with invalid code
717
718
719 [ PowerShell ]
720
721 - New binding
722
723 ---------------------------------
724 Version 3.0.4: July 15th, 2015
725
726
727 [ Library ]
728
729 - Improve cross-compile for Android using Android NDK.
730 - Support cross-compile for AArch64 Android (with Linux GCC).
731 - Removed osxkernel_inttypes.h that is incompatible with BSD license.
732 - Make it possible to compile with CC having a space inside (like "ccache gcc").
733
734
735 [ X86 ]
736
737 - Fix a null pointer dereference bug on handling code with special prefixes.
738 - Properly handle AL/AX/EAX operand for OUT instruction in AT&T syntax.
739 - Print immediate operand in positive form in some algorithm instructions.
740 - Properly decode some SSE instructions.
741
742
743 [ PowerPC ]
744
745 - Fixed a memory corruption bug.
746 - Fixed a memory corruption bug for the engine built in DIET mode.
747
748
749 [ Mips ]
750
751 - Fixed instruction ID of SUBU instruction.
752 - Fixed a memory corruption bug.
753
754
755 [ Arm ]
756
757 - Fixed a memory corruption bug on IT instruction.
758
759
760 [ XCore ]
761
762 - Fixed a memory corruption bug when instruction has a memory operand.
763
764
765 [ Python ]
766
767 - Support Virtualenv.
768 - setup.py supports option --user if not in a virtualenv to allow for local usage.
769 - Properly handle the destruction of Cs object in the case the shared library
770 was already unloaded.
771
772 ---------------------------------
773 Version 3.0.3: May 08th, 2015
774
775
776 [ Library ]
777
778 - Support to embed into Mac OS X kernel extensions.
779 - Now it is possible to compile Capstone with older C compilers, such as
780 GCC 4.8 on Ubuntu 12.04.
781 - Add "test_iter" to MSVC project.
782
783
784 [ X86 ]
785
786 - All shifted instructions SHL, SHR, SAL, SAR, RCL, RCR, ROL & ROR now support
787 $1 as first operand in *AT&T* syntax (so we have "rcll $1, %edx" instead of
788 "rcll %edx").
789 - CMPXCHG16B is a valid instruction with LOCK prefix.
790 - Fixed a segfault on the input of 0xF3.
791
792
793 [ Arm ]
794
795 - BLX instruction modifies PC & LR registers.
796
797
798 [ Sparc ]
799
800 - Improved displacement decoding for sparc banching instructions.
801
802
803 [ Python binding ]
804
805 - Fix for Cython so it can properly initialize.
806 - X86Op.avx_zero_mask now has c_bool type, but not c_uint8 type.
807 - Properly support compile with Cygwin & install binding (setup.py).
808
809 ---------------------------------
810 Version 3.0.2: March 11th, 2015
811
812
813 [ Library ]
814
815 - On *nix, only export symbols that are part of the API (instead of all
816 the internal symbols).
817
818
819 [ X86 ]
820
821 - Do not consider 0xF2 as REPNE prefix if it is a part of instruction encoding.
822 - Fix implicit registers read/written & instruction groups of some instructions.
823 - More flexible on the order of prefixes, so better handle some tricky
824 instructions.
825 - REPNE prefix can go with STOS & MOVS instructions.
826 - Fix a compilation bug for X86_REDUCE mode.
827 - Fix operand size of instructions with operand PTR []
828
829
830 [ Arm ]
831
832 - Fix a bug where arm_op_mem.disp is wrongly calculated (in DETAIL mode).
833 - Fix a bug on handling the If-Then block.
834
835
836 [ Mips ]
837
838 - Sanity check for the input size for MIPS64 mode.
839
840
841 [ MSVC ]
842
843 - Compile capstone.dll with static runtime MSVCR built in.
844
845
846 [ Python binding ]
847
848 - Fix a compiling issue of Cython binding with gcc 4.9.
849
850 ---------------------------------
851 Version 3.0.1: February 03rd, 2015
852
853 [ X86 ]
854
855 - Properly handle LOCK, REP, REPE & REPNE prefixes.
856 - Handle undocumented immediates for SSE's (V)CMPPS/PD/SS/SD instructions.
857 - Print LJUMP/LCALL without * as prefix for Intel syntax.
858 - Handle REX prefix properly for segment/MMX related instructions (x86_64).
859 - Instruction with length > 15 is consider invalid.
860 - Handle some tricky encodings for instructions MOVSXD, FXCH, FCOM, FCOMP,
861 FSTP, FSTPNCE, NOP.
862 - Handle some tricky code for some X86_64 instructions with REX prefix.
863 - Add missing operands in detail mode for PUSH , POP , IN/OUT reg, reg
864 - MOV32ms & MOV32sm should reference word rather than dword.
865
866
867 [ Arm64 ]
868
869 - BL & BLR instructions do not read SP register.
870 - Print absolute (rather than relative) address for instructions B, BL,
871 CBNZ, ADR.
872
873
874 [ Arm ]
875
876 - Instructions ADC & SBC do not update flags.
877 - BL & BLX do not read SP, but PC register.
878 - Alias LDR instruction with operands [sp], 4 to POP.
879 - Print immediate operand of MVN instruction in positive hexadecimal form.
880
881
882 [ PowerPC ]
883
884 - Fix some compilation bugs when DIET mode is enable.
885 - Populate SLWI/SRWI instruction details with SH operand.
886
887
888 [ Python binding ]
889
890 - Fix a Cython bug when CsInsn.bytes returns a shorten array of bytes.
891 - Fixed a memory leak for Cython disasm functions when we immaturely quit
892 the enumeration of disassembled instructions.
893 - Fix a NULL memory access issue when SKIPDATA & Detail modes are enable
894 at the same time.
895 - Fix a memory leaking bug when when we stop enumeration over the disassembled
896 instructions prematurely.
897 - Export generic operand types & groups (CS_OP_xxx & CS_GRP_xxx).
898
899 ---------------------------------
900 Version 3.0: November 19th, 2014
901
902 [ API ]
903
904 - New API: cs_disasm_iter & cs_malloc. See docs/README for tutorials.
905 - Renamed cs_disasm_ex to cs_disasm (cs_disasm_ex is still supported, but
906 marked obsolete to be removed in future)
907 - Support SKIPDATA mode, so Capstone can jump over unknown data and keep going
908 from the next legitimate instruction. See docs/README for tutorials.
909 - More details provided in cs_detail struct for all architectures.
910 - API version was bumped to 3.0.
911
912
913 [ Bindings ]
914
915 - Python binding supports Python3 (besides Python2).
916 - Support Ocaml binding.
917 - Java: add close() method to be used to deinitialize a Capstone object when
918 no longer use it.
919
920
921 [ Architectures ]
922
923 - New architectures: Sparc, SystemZ & XCore.
924 - Important bugfixes for Arm, Arm64, Mips, PowerPC & X86.
925 - Support more instructions for Arm, Arm64, Mips, PowerPC & X86.
926 - Always expose absolute addresses rather than relative addresses (Arm, Arm64,
927 Mips, PPC, Sparc, X86).
928 - Use common instruction operand types REG, IMM, MEM & FP across all
929 architectures (to enable cross-architecture analysis).
930 - Use common instruction group types across all architectures (to enable
931 cross-architecture analysis).
932
933
934 [ X86 ]
935
936 - X86 engine is mature & handles all the malware tricks (that we are aware of).
937 - Added a lot of new instructions (such as AVX512, 3DNow, etc).
938 - Add prefix symbols X86_PREFIX_REP/REPNE/LOCK/CS/DS/SS/FS/GS/ES/OPSIZE/ADDRSIZE.
939 - Print immediate in positive form & hexadecimal for AND/OR/XOR instructions.
940 - More friendly disassembly for JMP16i (in the form segment:offset)
941
942
943 [ Mips ]
944
945 - Engine added supports for new hardware modes: Mips32R6 (CS_MODE_MIPS32R6) &
946 MipsGP64 (CS_MODE_MIPSGP64).
947 - Removed the ABI-only mode CS_MODE_N64.
948 - New modes CS_MODE_MIPS32 & CS_MODE_MIPS64 (to use instead of CS_MODE_32 &
949 CS_MODE_64).
950
951
952 [ ARM ]
953
954 - Support new mode CS_MODE_V8 for Armv8 A32 encodings.
955 - Print immediate in positive form & hexadecimal for AND/ORR/EOR/BIC instructions
956
957
958 [ ARM64 ]
959
960 - Print immediate in hexadecimal for AND/ORR/EOR/TST instructions.
961
962
963 [ PowerPC ]
964
965 - Do not print a dot in front of absolute address.
966
967
968 [ Other features ]
969
970 - Support for Microsoft Visual Studio (so enable Windows native compilation).
971 - Support CMake compilation.
972 - Cross-compile for Android.
973 - Build libraries/tests using XCode project
974 - Much faster, while consuming less memory for all architectures.
975
976 ---------------------------------
977 Version 2.1.2: April 3rd, 2014
978
979 This is a stable release to fix some bugs deep in the core. There is no update
980 to any architectures or bindings, so bindings version 2.1 can be used with this
981 version 2.1.2 just fine.
982
983 [ Core changes]
984
985 - Support cross-compilation for all iDevices (iPhone/iPad/iPod).
986 - X86: do not print memory offset in negative form.
987 - Fix a bug in X86 when Capstone cannot handle short instruction.
988 - Print negative number above -9 without prefix 0x (arm64, mips, arm).
989 - Correct the SONAME setup for library versioning (Linux, *BSD, Solaris).
990 - Set library versioning for dylib of OSX.
991
992 ---------------------------------
993 Version 2.1.1: March 13th, 2014
994
995 This is a stable release to fix some bugs deep in the core. There is no update
996 to any architectures or bindings, so bindings version 2.1 can be used with this
997 version 2.1.1 just fine.
998
999 [ Core changes]
1000
1001 - Fix a buffer overflow bug in Thumb mode (ARM). Some special input can
1002 trigger this flaw.
1003 - Fix a crash issue when embedding Capstone into OSX kernel. This should
1004 also enable Capstone to be embedded into other systems with limited stack
1005 memory size such as Linux kernel or some firmwares.
1006 - Use a proper SONAME for library versioning (Linux).
1007
1008 ---------------------------------
1009 Version 2.1: March 5th, 2014
1010
1011 [ API changes ]
1012
1013 - API version has been bumped to 2.1.
1014 - Change prototype of cs_close() to be able to invalidate closed handle.
1015 See http://capstone-engine.org/version_2.1_API.html for more information.
1016 - Extend cs_support() to handle more query types, not only about supported
1017 architectures. This change is backward compatible, however, so existent code
1018 do not need to be modified to support this.
1019 - New query type CS_SUPPORT_DIET for cs_support() to ask about diet status of
1020 the engine.
1021 - New error code CS_ERR_DIET to report errors about newly added diet mode.
1022 - New error code CS_ERR_VERSION to report issue of incompatible versions between
1023 bindings & core engine.
1024
1025
1026 [ Core changes ]
1027
1028 - On memory usage, Capstone uses about 40% less memory, while still faster
1029 than version 2.0.
1030 - All architectures are much smaller: binaries size reduce at least 30%.
1031 Especially, X86-only binary reduces from 1.9MB to just 720KB.
1032 - Support "diet" mode, in which engine size is further reduced (by around 40%)
1033 for embedding purpose. The price to pay is that we have to sacrifice some
1034 non-critical data fields. See http://capstone-engine.org/diet.html for more
1035 details.
1036
1037
1038 [ Architectures ]
1039
1040 - Update all 5 architectures to fix bugs.
1041 - PowerPC:
1042 - New instructions: FMR & MSYNC.
1043 - Mips:
1044 - New instruction: DLSA
1045 - X86:
1046 - Properly handle AVX-512 instructions.
1047 - New instructions: PSETPM, SALC, INT1, GETSEC.
1048 - Fix some memory leaking issues in case of prefixed instructions such
1049 as LOCK, REP, REPNE.
1050
1051
1052 [ Python binding ]
1053
1054 - Verify the core version at initialization time. Refuse to run if its version
1055 is different from the core's version.
1056 - New API disasm_lite() added to Cs class. This light API only returns tuples of
1057 (address, size, mnemonic, op_str), rather than list of CsInsn objects. This
1058 improves performance by around 30% in some benchmarks.
1059 - New API version_bind() returns binding's version, which might differ from
1060 the core's API version if the binding is out-of-date.
1061 - New API debug() returns information on Cython support, diet status & archs
1062 compiled in.
1063 - Fixed some memory leaking bugs for Cython binding.
1064 - Fix a bug crashing Cython code when accessing @regs_read/regs_write/groups.
1065 - Support diet mode.
1066
1067
1068 [ Java binding ]
1069
1070 - Fix some memory leaking bugs.
1071 - New API version() returns combined version.
1072 - Support diet mode.
1073 - Better support for detail option.
1074
1075
1076 [ Miscellaneous ]
1077
1078 - make.sh now can uninstall the core engine. This is done with:
1079
1080 $ sudo ./make.sh uninstall
1081
1082 ----------------------------------
1083 Version 2.0: January 22nd, 2014
1084
1085 Release 2.0 deprecates verison 1.0 and brings a lot of crucial changes.
1086
1087 [ API changes ]
1088
1089 - API version has been bumped to 2.0 (see cs_version() API)
1090 - New API cs_strerror(errno) returns a string describing error code given
1091 in its only argument.
1092 - cs_version() now returns combined version encoding both major & minor versions.
1093 - New option CS_OPT_MODE allows to change engine’s mode at run-time with
1094 cs_option().
1095 - New option CS_OPT_MEM allows to specify user-defined functions for dynamically
1096 memory management used internally by Capstone. This is useful to embed Capstone
1097 into special environments such as kernel or firware.
1098 - New API cs_support() can be used to check if this lib supports a particular
1099 architecture (this is necessary since we now allow to choose which architectures
1100 to compile in).
1101 - The detail option is OFF by default now. To get detail information, it should be
1102 explicitly turned ON. The details then can be accessed using cs_insn.detail
1103 pointer (to newly added structure cs_detail)
1104
1105
1106 [ Core changes ]
1107
1108 - On memory usage, Capstone uses much less memory, but a lot faster now.
1109 - User now can choose which architectures to be supported by modifying config.mk
1110 before compiling/installing.
1111
1112
1113 [ Architectures ]
1114
1115 - Arm
1116 - Support Big-Endian mode (besides Little-Endian mode).
1117 - Support friendly register, so instead of output sub "r12,r11,0x14",
1118 we have "sub ip,fp,0x14".
1119 - Arm64: support Big-Endian mode (besides Little-Endian mode).
1120 - PowerPC: newly added.
1121 - Mips: support friendly register, so instead of output "srl $2,$1,0x1f",
1122 we have "srl $v0,$at,0x1f".
1123 - X86: bug fixes.
1124
1125
1126 [ Python binding ]
1127
1128 - Python binding is vastly improved in performance: around 3 ~ 4 times faster
1129 than in 1.0.
1130 - Cython support has been added, which can further speed up over the default
1131 pure Python binding (up to 30% in some cases)
1132 - Function cs_disasm_quick() & Cs.disasm() now use generator (rather than a list)
1133 to return succesfully disassembled instructions. This improves the performance
1134 and reduces memory usage.
1135
1136
1137 [ Java binding ]
1138
1139 - Better performance & bug fixes.
1140
1141
1142 [ Miscellaneous ]
1143
1144 - Fixed some installation issues with Gentoo Linux.
1145 - Capstone now can easily compile/install on all *nix, including Linux, OSX,
1146 {Net, Free, Open}BSD & Solaris.
1147
1148 ----------------------------------
1149 [Version 1.0]: December 18th, 2013
1150
1151 - Initial public release.
1152