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