Debian Codegraph @

capstone/ChangeLog

raw
1 This file details the changelog of Capstone.
2
3 ---------------------------------
4 Version 5.0.0-rc2: February 28th, 2022
5
6 New features:
7 - None
8
9 Improvements:
10 - Fix for python publish build (#1844)
11 - Modernize CMake and switch to CMake 3.15 (#1841)
12 - Fix AArch64 ldapr detailed information (#1840)
13 - Fix incorrect MI->ac_idx leading to wrong AArch64 InsnOp access printing (#1845)
14
15 Contributors:
16 - stevielavern
17 - mrexodia
18 - kabeor
19
20 ---------------------------------
21 Version 5.0.0-rc1: February 27th, 2022
22
23 New features:
24 - Add arch BPF (#1388)
25 - Add arch RISCV (#1401)
26 - Add arch WASM (#1359)
27 - PyPI workflow (#1645)
28 - Option to generate install target (#1698 #1700)
29 - Swift binding (#1707)
30 - Add CI Test support (#1797)
31 - Add benchmark (#1811)
32
33 Improvements:
34 - Add fixups for aarch64 instructions (#1632 #1655)
35 - Add fixups for x86 instructions (#1644 #1657 #1689 1751)
36 - Add fixups for m68k instructions (#1663 #1709)
37 - Add fixups for m680x instructions (#1695)
38 - Add fixups for mips instructions (#1674)
39 - Add fixups for mos65xx instructions (#1702)
40 - Add fixups for systemz instructions (#1679)
41 - Add fixups for risc-v instructions (#1682 #1690 #1691)
42 - Add fixups for ppc instructions (#1687 #1688)
43 - Add cmake config and export targets (#1637)
44 - Fix issues in Makefiles (#1639)
45 - Fix issues about cmake builds (#1649 #1659)
46 - MSVC tooling updates (#1651)
47 - Fix crash when using skipdata with NULL mnemonic(#1703)
48 - Fix python only use ascii character (#1704)
49 - Add support for aarch64 distributions (#1720)
50 - Fix registry access for several versions of pop such as POPDS, POPSS, etc. (#1725)
51 - Fix registry access on cmov instructions (#1727)
52 - Fix -Wstringop-truncation warnings (#1730)
53 - Fix always return the same type from regs_read (#1736)
54 - Fix inconsistent behavior of Mips_option() (#1744)
55 - Fix pythonic bug (#1745)
56 - Fixes the (pip) Python Module build on FreeBSD (#1750)
57 - Enable detection and build on all BSD systems (#1753)
58 - Fix the displacement offset for moffset-encoded operands (#1754)
59 - Update cmake_minimum_required to version 2.8.12 (#1756)
60 - Fixed typos in compilation steps (#1762)
61 - Fix build android (#1765)
62 - Support disassembling bytes from memoryview (#1773)
63 - Fixed library extension to build properly under CYGWIN (#1791)
64 - Add Capstone Engine Documentation (#1794)
65 - Fix eflags effects for adc/sbb (#1798)
66 - Update x86 operand access information (#1801)
67 - CI automatically build release tarball (#1802)
68 - Dont format sstreams when there's nothing to format (#1805)
69 - Fix warning about Unused variables (#1815)
70 - Fix insn initialization when instruction have no operands or have a prefix (#1816)
71 - Avoid abort() if x86 not supported (#1818)
72 - Fix unterminated string regression (#1819)
73 - Fixed incorrect operand access on x86 instruction vmovdqu (#1823)
74
75 Contributors:
76 - ekilmer
77 - mcmtroffaes
78 - sh1r4s3
79 - emoon
80 - chfl4gs
81 - heshpdx
82 - hmoenck
83 - cyanpencil
84 - NicolasDerumigny
85 - trofi
86 - maximumspatium
87 - junchao-loongson
88 - carenas
89 - notyourusualaccountname
90 - rth7680
91 - StalkR
92 - aeflores
93 - TobiasFaller
94 - XVilka
95 - meme
96 - zydeco
97 - catenacyber
98 - michalsc
99 - urbas
100 - keenk
101 - kazarmy
102 - learn-more
103 - veritas501
104 - trufae
105 - cederom
106 - Quentin01
107 - jranieri-grammatech
108 - scribam
109 - huettenhain
110 - LBJ-the-GOAT
111 - wheremyfoodat
112 - Jaysonicc
113 - huettenhain
114 - syscl
115 - bezita
116 - Smartsmurf
117 - tmfink
118 - kazarmy
119 - rofl0r
120 - bSr43
121 - wtdcode
122 - dropTableUsers42
123 - carenas
124 - owlxiao
125 - Mxz297
126 - SpikeI
127 - catenacyber
128 - david942j
129 - fanfuqiang
130 - aquynh
131 - kabeor
132
133
134 ---------------------------------
135 Version 4.0.2: May 8th, 2020
136
137 [ Core ]
138
139 - Windows kernel-mode driver support
140 - Fix installation path on FreeBSD and DragonFly
141
142
143 [ cstool ]
144
145 - Add armv8, ppc32 & thumbv8 modes
146 - Print instruction ID
147
148
149 [ X86 ]
150
151 - Support CS_OPT_UNSIGNED for ATT syntax
152 - Fix operand size for some instructions
153 - Fix LOCK prefixes
154 - Recognize xacquire/xrelease prefix
155 - Fix call/jmp access mode of mem operand
156 - Add ENDBR32, ENDBR64 to reduce mode
157 - Other minor fixes
158
159
160 [ ARM64 ]
161
162 - Support CS_OPT_UNSIGNED
163 - Fix register access flags for memory instructions
164 - Fix UMOV vess
165
166
167 [ ARM ]
168
169 - Update writeback for STR_POST_REG
170
171
172 [ M68K ]
173
174 - Store correct register value in op.reg_pair
175
176
177 [ PowerPC ]
178
179 - BDZLA is absolute branch
180
181
182 [ SystemZ ]
183
184 - Fix truncated 64bit imm operand
185 - Fix base/index printing
186
187
188 [ Python ]
189
190 - Fix skipdata struct being destroyed
191 - Add repr for capstone.CsInsn
192
193
194 [ Java ]
195
196 - Fix Java bindings to use pointers instead of longs
197
198
199 [ Ocaml ]
200
201 - Fix x86_op record
202
203
204 ---------------------------------
205 Version 4.0.1: January 10th, 2019
206
207
208 [ Core ]
209
210 - Fix some issues for packaging (Debian, Gentoo).
211 - Better support for building with Mingw.
212 - cstool has new option -s to turn on skipdata mode.
213 - cstool -v now report build settings of the core.
214 - Add suite/capstone_get_setup.c so users can integrate with their own code
215 to retrieve Capstone settings at build time.
216
217
218 [ Arm ]
219
220 - Fix 4.0 regression: the `tbh [r0, r1, lsl #1]` instruction sets the operand.shift.value back again (see #1317)
221 - Remove ARM_REG_PC group for BX instruction.
222
223
224 [ X86 ]
225
226 - Fix: endbr32 and endbr64 instructions are now properly decoded in both CS_MODE_32 and CS_MODE_64 (#1129)
227
228
229 [ M680X ]
230
231 - Fix some issues reported by clang-analyzer (#1329).
232
233
234 [ Python ]
235
236 - Fix skipdata setup.
237 - Add getter/setter for skipdata_mnem, skipdata_callback.
238
239
240 ---------------------------------
241 Version 4.0: December 18th, 2018
242
243
244 [ Core ]
245
246 - New APIs: cs_regs_access()
247 - Add new options for cs_option(): CS_OPT_MNEMONIC & CS_OPT_UNSIGNED & CS_OPT_SYNTAX_MASM.
248 - Various updates & bugfixes for all architectures.
249 - Add 4 new architectures: EVM, M68K, M680X & TMS320C64x.
250 - Add new group types: CS_GRP_PRIVILEGE & CS_GRP_BRANCH_RELATIVE.
251 - Add new error types: CS_ERR_X86_MASM.
252
253
254 [ X86 ]
255
256 - Add XOP code condition type in x86_xop_cc.
257 - Add some info on encoding to cs_x86 in cs_x86_encoding.
258 - Add register flags update in cs_x86.{eflags, fpu_flags}
259 - Change cs_x86.disp type from int32_t to int64_t.
260 - Add new groups: X86_GRP_VM & X86_GRP_FPU.
261 - Lots of new instructions (AVX)
262
263
264 [ ARM64 ]
265
266 - Add instruction ARM64_INS_NEGS & ARM64_INS_NGCS.
267
268
269 [ Mips ]
270
271 - Add mode CS_MODE_MIPS2.
272
273
274 [ PPC ]
275
276 - Change cs_ppc_op.imm type from int32_t to int64_t.
277 - Add new groups: PPC_GRP_ICBT, PPC_GRP_P8ALTIVEC, PPC_GRP_P8VECTOR & PPC_GRP_QPX.
278 - Lots of new instructions (QPX among them)
279
280
281 [ Sparc ]
282
283 - Change cs_sparc_op.imm type from int32_t to int64_t.
284
285
286 [ Binding ]
287
288 - New bindings: PowerShell & VB6
289
290
291 ---------------------------------
292 Version 3.0.5: July 18th, 2018
293
294
295 [ Core ]
296
297 - Fix the include path for Android builds when building cstool.
298 - Add posibility to disable universal build for Mac OS.
299 - cstool: Separate instruction bytes by spaces.
300 - Fix code path of pkg-config in Cmake.
301 - Update XCode project for XCode 9.1.
302 - Add Cortex-M support to cstool.
303 - Cmake forces to be build using MT with MSVC.
304 - Better support for Mac OS kernel.
305
306
307 [ X86 ]
308
309 - Fix some issues in handling EVEX & VEX3 instructions.
310 - Fix immediate operand for AND instruction in ATT mode.
311 - Fix ATT syntax when imm operand is 0.
312 - Better handle XACQUIRE/XRELEASE.
313 - Fix imm operand of RETF.
314
315
316 [ ARM ]
317
318 - Fix an integer overlow bug.
319
320
321 [ ARM64 ]
322
323 - Bug fix for incorrect operand type in certain load/store instructions.
324
325
326 [ Mips ]
327
328 - Mode CS_MODE_MIPS32R6 automatically sets CS_MODE_32
329
330
331 [ PPC ]
332
333 - Fix endian check.
334
335
336 [ Sparc ]
337
338 - Fix an integer overlow bug.
339
340
341 [ SystemZ ]
342
343 - Fix an integer overlow bug.
344
345
346 [ Python binding ]
347
348 - Raise error on accessing irrelevant data fields if skipdata & detail modes are enable.
349
350
351 ---------------------------------
352 Version 3.0.5-rc3: July 31st, 2017
353
354
355 [ Core ]
356
357 - Fix compilation for MacOS kernel extension
358 - cstool to support armbe and arm64be modes
359 - Add nmake.bat for Windows build
360 - Fix an integer overflow for Windows kernel driver
361 - Support to embedded Capstone into MacOS kernel
362 - cstool: fix mips64 mode
363 - Fix a compiling error in MS Visual Studio 2015
364 - Install pkgconfig file with CMake build
365 - Fix SOVERSION property of CMake build
366 - Properly handle switching to Endian mode at run-time for Arm, Arm64, Mips & Sparc
367 - Fix MingW build
368 - Better handle CMake installation for Linux 64bit
369
370
371 [ X86 ]
372
373 - Support BND prefix of Intel MPX extension
374 - Correct operand size for CALL/JMP in 64bit mode with prefix 0x66
375 - LOCK NOP is a valid instruction
376 - Fix ATT syntax for instruction with zero offset segment register
377 - LES/LDS are invalid in 64bit mode
378 - Fix number of operands for some MOV instructions
379
380
381 [ ARM ]
382
383 - Fix POP reg to update SP register
384 - Update flags for UADD8 instruction
385
386
387 [ ARM64 ]
388
389 - Better performance with new lookup table
390 - Handle system registers added in ARMv8.1/2
391
392
393 [ Java binding ]
394
395 - Better handle input with invalid code
396
397
398 [ Visual Basic binding ]
399
400 - New binding
401
402 ---------------------------------
403 Version 3.0.5-rc2: March 2nd, 2017
404
405
406 [ Core ]
407
408 - Fix build for Visual Studio 2012
409 - Fix X86_REL_ADDR macro
410 - Add CS_VERSION_MAJOR, CS_VERSION_MINOR, CS_VERSION_EXTRA
411 - Better support for embedding Capstone into Windows kernel drivers
412 - Support to embedded Capstone into MacOS kernel
413 - Support MacOS 10.11 and up
414 - Better support for Cygwin
415 - Support build packages for FreeBSD & DragonflyBSD
416 - Add a command-line tool "cstool"
417 - Properly handle switching to Endian mode at run-time for Arm, Arm64, Mips & Sparc
418
419
420 [ X86 ]
421
422 - Some random 16-bit code can be handled wrongly.
423 - Remove abundant operand type X86_OP_FP
424 - Fix instructions MOVQ, LOOP, LOOPE, LOOPNE, CALL/JMP rel16, REPNE LODSD, MOV *AX, MOFFS, FAR JMP/CALL
425 - Add X86_REG_EFLAGS for STC and STD
426 - Fix instruction attributes for SYSEXIT, MOVW, ROL, LGS, SLDT
427 - Rename registers ST0-ST7 to be consistent with asm output
428
429
430 [ ARM ]
431
432 - Properly handle IT instruction
433 - Fix LDRSB
434 - Fix writeback for LDR
435 - Fix Thumb BigEndian setup
436
437
438 [ ARM64 ]
439
440 - Fix arith extender
441 - Fix writeback for LDR
442 - Rename enum arm64_mrs_reg to arm64_sysreg
443
444
445 [ PowerPC ]
446
447 - Print 0 offset for memory operand
448
449
450 [ Sparc ]
451
452 - Fix POPC instruction
453
454
455 [ Python binding ]
456
457 - Better PyPy support
458 - Add __version__
459 - Better support for Python 3
460 - Fix CS_SKIPDATA_CALLBACK prototype
461 - Cast skipdata function inside binding to simplify the API
462
463
464 [ Java binding ]
465
466 - Better handle input with invalid code
467
468
469 [ PowerShell ]
470
471 - New binding
472
473 ---------------------------------
474 Version 3.0.4: July 15th, 2015
475
476
477 [ Library ]
478
479 - Improve cross-compile for Android using Android NDK.
480 - Support cross-compile for AArch64 Android (with Linux GCC).
481 - Removed osxkernel_inttypes.h that is incompatible with BSD license.
482 - Make it possible to compile with CC having a space inside (like "ccache gcc").
483
484
485 [ X86 ]
486
487 - Fix a null pointer dereference bug on handling code with special prefixes.
488 - Properly handle AL/AX/EAX operand for OUT instruction in AT&T syntax.
489 - Print immediate operand in positive form in some algorithm instructions.
490 - Properly decode some SSE instructions.
491
492
493 [ PowerPC ]
494
495 - Fixed a memory corruption bug.
496 - Fixed a memory corruption bug for the engine built in DIET mode.
497
498
499 [ Mips ]
500
501 - Fixed instruction ID of SUBU instruction.
502 - Fixed a memory corruption bug.
503
504
505 [ Arm ]
506
507 - Fixed a memory corruption bug on IT instruction.
508
509
510 [ XCore ]
511
512 - Fixed a memory corruption bug when instruction has a memory operand.
513
514
515 [ Python ]
516
517 - Support Virtualenv.
518 - setup.py supports option --user if not in a virtualenv to allow for local usage.
519 - Properly handle the destruction of Cs object in the case the shared library
520 was already unloaded.
521
522 ---------------------------------
523 Version 3.0.3: May 08th, 2015
524
525
526 [ Library ]
527
528 - Support to embed into Mac OS X kernel extensions.
529 - Now it is possible to compile Capstone with older C compilers, such as
530 GCC 4.8 on Ubuntu 12.04.
531 - Add "test_iter" to MSVC project.
532
533
534 [ X86 ]
535
536 - All shifted instructions SHL, SHR, SAL, SAR, RCL, RCR, ROL & ROR now support
537 $1 as first operand in *AT&T* syntax (so we have "rcll $1, %edx" instead of
538 "rcll %edx").
539 - CMPXCHG16B is a valid instruction with LOCK prefix.
540 - Fixed a segfault on the input of 0xF3.
541
542
543 [ Arm ]
544
545 - BLX instruction modifies PC & LR registers.
546
547
548 [ Sparc ]
549
550 - Improved displacement decoding for sparc banching instructions.
551
552
553 [ Python binding ]
554
555 - Fix for Cython so it can properly initialize.
556 - X86Op.avx_zero_mask now has c_bool type, but not c_uint8 type.
557 - Properly support compile with Cygwin & install binding (setup.py).
558
559 ---------------------------------
560 Version 3.0.2: March 11th, 2015
561
562
563 [ Library ]
564
565 - On *nix, only export symbols that are part of the API (instead of all
566 the internal symbols).
567
568
569 [ X86 ]
570
571 - Do not consider 0xF2 as REPNE prefix if it is a part of instruction encoding.
572 - Fix implicit registers read/written & instruction groups of some instructions.
573 - More flexible on the order of prefixes, so better handle some tricky
574 instructions.
575 - REPNE prefix can go with STOS & MOVS instructions.
576 - Fix a compilation bug for X86_REDUCE mode.
577 - Fix operand size of instructions with operand PTR []
578
579
580 [ Arm ]
581
582 - Fix a bug where arm_op_mem.disp is wrongly calculated (in DETAIL mode).
583 - Fix a bug on handling the If-Then block.
584
585
586 [ Mips ]
587
588 - Sanity check for the input size for MIPS64 mode.
589
590
591 [ MSVC ]
592
593 - Compile capstone.dll with static runtime MSVCR built in.
594
595
596 [ Python binding ]
597
598 - Fix a compiling issue of Cython binding with gcc 4.9.
599
600 ---------------------------------
601 Version 3.0.1: February 03rd, 2015
602
603 [ X86 ]
604
605 - Properly handle LOCK, REP, REPE & REPNE prefixes.
606 - Handle undocumented immediates for SSE's (V)CMPPS/PD/SS/SD instructions.
607 - Print LJUMP/LCALL without * as prefix for Intel syntax.
608 - Handle REX prefix properly for segment/MMX related instructions (x86_64).
609 - Instruction with length > 15 is consider invalid.
610 - Handle some tricky encodings for instructions MOVSXD, FXCH, FCOM, FCOMP,
611 FSTP, FSTPNCE, NOP.
612 - Handle some tricky code for some X86_64 instructions with REX prefix.
613 - Add missing operands in detail mode for PUSH , POP , IN/OUT reg, reg
614 - MOV32ms & MOV32sm should reference word rather than dword.
615
616
617 [ Arm64 ]
618
619 - BL & BLR instructions do not read SP register.
620 - Print absolute (rather than relative) address for instructions B, BL,
621 CBNZ, ADR.
622
623
624 [ Arm ]
625
626 - Instructions ADC & SBC do not update flags.
627 - BL & BLX do not read SP, but PC register.
628 - Alias LDR instruction with operands [sp], 4 to POP.
629 - Print immediate operand of MVN instruction in positive hexadecimal form.
630
631
632 [ PowerPC ]
633
634 - Fix some compilation bugs when DIET mode is enable.
635 - Populate SLWI/SRWI instruction details with SH operand.
636
637
638 [ Python binding ]
639
640 - Fix a Cython bug when CsInsn.bytes returns a shorten array of bytes.
641 - Fixed a memory leak for Cython disasm functions when we immaturely quit
642 the enumeration of disassembled instructions.
643 - Fix a NULL memory access issue when SKIPDATA & Detail modes are enable
644 at the same time.
645 - Fix a memory leaking bug when when we stop enumeration over the disassembled
646 instructions prematurely.
647 - Export generic operand types & groups (CS_OP_xxx & CS_GRP_xxx).
648
649 ---------------------------------
650 Version 3.0: November 19th, 2014
651
652 [ API ]
653
654 - New API: cs_disasm_iter & cs_malloc. See docs/README for tutorials.
655 - Renamed cs_disasm_ex to cs_disasm (cs_disasm_ex is still supported, but
656 marked obsolete to be removed in future)
657 - Support SKIPDATA mode, so Capstone can jump over unknown data and keep going
658 from the next legitimate instruction. See docs/README for tutorials.
659 - More details provided in cs_detail struct for all architectures.
660 - API version was bumped to 3.0.
661
662
663 [ Bindings ]
664
665 - Python binding supports Python3 (besides Python2).
666 - Support Ocaml binding.
667 - Java: add close() method to be used to deinitialize a Capstone object when
668 no longer use it.
669
670
671 [ Architectures ]
672
673 - New architectures: Sparc, SystemZ & XCore.
674 - Important bugfixes for Arm, Arm64, Mips, PowerPC & X86.
675 - Support more instructions for Arm, Arm64, Mips, PowerPC & X86.
676 - Always expose absolute addresses rather than relative addresses (Arm, Arm64,
677 Mips, PPC, Sparc, X86).
678 - Use common instruction operand types REG, IMM, MEM & FP across all
679 architectures (to enable cross-architecture analysis).
680 - Use common instruction group types across all architectures (to enable
681 cross-architecture analysis).
682
683
684 [ X86 ]
685
686 - X86 engine is mature & handles all the malware tricks (that we are aware of).
687 - Added a lot of new instructions (such as AVX512, 3DNow, etc).
688 - Add prefix symbols X86_PREFIX_REP/REPNE/LOCK/CS/DS/SS/FS/GS/ES/OPSIZE/ADDRSIZE.
689 - Print immediate in positive form & hexadecimal for AND/OR/XOR instructions.
690 - More friendly disassembly for JMP16i (in the form segment:offset)
691
692
693 [ Mips ]
694
695 - Engine added supports for new hardware modes: Mips32R6 (CS_MODE_MIPS32R6) &
696 MipsGP64 (CS_MODE_MIPSGP64).
697 - Removed the ABI-only mode CS_MODE_N64.
698 - New modes CS_MODE_MIPS32 & CS_MODE_MIPS64 (to use instead of CS_MODE_32 &
699 CS_MODE_64).
700
701
702 [ ARM ]
703
704 - Support new mode CS_MODE_V8 for Armv8 A32 encodings.
705 - Print immediate in positive form & hexadecimal for AND/ORR/EOR/BIC instructions
706
707
708 [ ARM64 ]
709
710 - Print immediate in hexadecimal for AND/ORR/EOR/TST instructions.
711
712
713 [ PowerPC ]
714
715 - Do not print a dot in front of absolute address.
716
717
718 [ Other features ]
719
720 - Support for Microsoft Visual Studio (so enable Windows native compilation).
721 - Support CMake compilation.
722 - Cross-compile for Android.
723 - Build libraries/tests using XCode project
724 - Much faster, while consuming less memory for all architectures.
725
726 ---------------------------------
727 Version 2.1.2: April 3rd, 2014
728
729 This is a stable release to fix some bugs deep in the core. There is no update
730 to any architectures or bindings, so bindings version 2.1 can be used with this
731 version 2.1.2 just fine.
732
733 [ Core changes]
734
735 - Support cross-compilation for all iDevices (iPhone/iPad/iPod).
736 - X86: do not print memory offset in negative form.
737 - Fix a bug in X86 when Capstone cannot handle short instruction.
738 - Print negative number above -9 without prefix 0x (arm64, mips, arm).
739 - Correct the SONAME setup for library versioning (Linux, *BSD, Solaris).
740 - Set library versioning for dylib of OSX.
741
742 ---------------------------------
743 Version 2.1.1: March 13th, 2014
744
745 This is a stable release to fix some bugs deep in the core. There is no update
746 to any architectures or bindings, so bindings version 2.1 can be used with this
747 version 2.1.1 just fine.
748
749 [ Core changes]
750
751 - Fix a buffer overflow bug in Thumb mode (ARM). Some special input can
752 trigger this flaw.
753 - Fix a crash issue when embedding Capstone into OSX kernel. This should
754 also enable Capstone to be embedded into other systems with limited stack
755 memory size such as Linux kernel or some firmwares.
756 - Use a proper SONAME for library versioning (Linux).
757
758 ---------------------------------
759 Version 2.1: March 5th, 2014
760
761 [ API changes ]
762
763 - API version has been bumped to 2.1.
764 - Change prototype of cs_close() to be able to invalidate closed handle.
765 See http://capstone-engine.org/version_2.1_API.html for more information.
766 - Extend cs_support() to handle more query types, not only about supported
767 architectures. This change is backward compatible, however, so existent code
768 do not need to be modified to support this.
769 - New query type CS_SUPPORT_DIET for cs_support() to ask about diet status of
770 the engine.
771 - New error code CS_ERR_DIET to report errors about newly added diet mode.
772 - New error code CS_ERR_VERSION to report issue of incompatible versions between
773 bindings & core engine.
774
775
776 [ Core changes ]
777
778 - On memory usage, Capstone uses about 40% less memory, while still faster
779 than version 2.0.
780 - All architectures are much smaller: binaries size reduce at least 30%.
781 Especially, X86-only binary reduces from 1.9MB to just 720KB.
782 - Support "diet" mode, in which engine size is further reduced (by around 40%)
783 for embedding purpose. The price to pay is that we have to sacrifice some
784 non-critical data fields. See http://capstone-engine.org/diet.html for more
785 details.
786
787
788 [ Architectures ]
789
790 - Update all 5 architectures to fix bugs.
791 - PowerPC:
792 - New instructions: FMR & MSYNC.
793 - Mips:
794 - New instruction: DLSA
795 - X86:
796 - Properly handle AVX-512 instructions.
797 - New instructions: PSETPM, SALC, INT1, GETSEC.
798 - Fix some memory leaking issues in case of prefixed instructions such
799 as LOCK, REP, REPNE.
800
801
802 [ Python binding ]
803
804 - Verify the core version at initialization time. Refuse to run if its version
805 is different from the core's version.
806 - New API disasm_lite() added to Cs class. This light API only returns tuples of
807 (address, size, mnemonic, op_str), rather than list of CsInsn objects. This
808 improves performance by around 30% in some benchmarks.
809 - New API version_bind() returns binding's version, which might differ from
810 the core's API version if the binding is out-of-date.
811 - New API debug() returns information on Cython support, diet status & archs
812 compiled in.
813 - Fixed some memory leaking bugs for Cython binding.
814 - Fix a bug crashing Cython code when accessing @regs_read/regs_write/groups.
815 - Support diet mode.
816
817
818 [ Java binding ]
819
820 - Fix some memory leaking bugs.
821 - New API version() returns combined version.
822 - Support diet mode.
823 - Better support for detail option.
824
825
826 [ Miscellaneous ]
827
828 - make.sh now can uninstall the core engine. This is done with:
829
830 $ sudo ./make.sh uninstall
831
832 ----------------------------------
833 Version 2.0: January 22nd, 2014
834
835 Release 2.0 deprecates verison 1.0 and brings a lot of crucial changes.
836
837 [ API changes ]
838
839 - API version has been bumped to 2.0 (see cs_version() API)
840 - New API cs_strerror(errno) returns a string describing error code given
841 in its only argument.
842 - cs_version() now returns combined version encoding both major & minor versions.
843 - New option CS_OPT_MODE allows to change engine’s mode at run-time with
844 cs_option().
845 - New option CS_OPT_MEM allows to specify user-defined functions for dynamically
846 memory management used internally by Capstone. This is useful to embed Capstone
847 into special environments such as kernel or firware.
848 - New API cs_support() can be used to check if this lib supports a particular
849 architecture (this is necessary since we now allow to choose which architectures
850 to compile in).
851 - The detail option is OFF by default now. To get detail information, it should be
852 explicitly turned ON. The details then can be accessed using cs_insn.detail
853 pointer (to newly added structure cs_detail)
854
855
856 [ Core changes ]
857
858 - On memory usage, Capstone uses much less memory, but a lot faster now.
859 - User now can choose which architectures to be supported by modifying config.mk
860 before compiling/installing.
861
862
863 [ Architectures ]
864
865 - Arm
866 - Support Big-Endian mode (besides Little-Endian mode).
867 - Support friendly register, so instead of output sub "r12,r11,0x14",
868 we have "sub ip,fp,0x14".
869 - Arm64: support Big-Endian mode (besides Little-Endian mode).
870 - PowerPC: newly added.
871 - Mips: support friendly register, so instead of output "srl $2,$1,0x1f",
872 we have "srl $v0,$at,0x1f".
873 - X86: bug fixes.
874
875
876 [ Python binding ]
877
878 - Python binding is vastly improved in performance: around 3 ~ 4 times faster
879 than in 1.0.
880 - Cython support has been added, which can further speed up over the default
881 pure Python binding (up to 30% in some cases)
882 - Function cs_disasm_quick() & Cs.disasm() now use generator (rather than a list)
883 to return succesfully disassembled instructions. This improves the performance
884 and reduces memory usage.
885
886
887 [ Java binding ]
888
889 - Better performance & bug fixes.
890
891
892 [ Miscellaneous ]
893
894 - Fixed some installation issues with Gentoo Linux.
895 - Capstone now can easily compile/install on all *nix, including Linux, OSX,
896 {Net, Free, Open}BSD & Solaris.
897
898 ----------------------------------
899 [Version 1.0]: December 18th, 2013
900
901 - Initial public release.
902