capstone/bindings
Rot127 3a2cd3c331
Coverity defects (#2469)
* Fix CID 508418 - Uninitialized struct

* Fix CID 509089 - Fix OOB read and write

* Fix CID 509088 - OOB.

Also adds tests and to ensure no OOB access.

* Fix CID 509085 - Resource leak.

* Fix CID 508414 and companions - Using undefined values.

* Fix CID 508405 - Use of uninitialized value

* Remove unnecessary and badly implemented dev fuzz code.

* Fix CID 508396 - Uninitialzied variable.

* Fix CID 508393, 508365 -- OOB read.

* Fix CID 432207 - OVerlapping memory access.

* Remove unused functions

* Fix CID 432170 - Overlapping memory access.

* Fix CID 166022 - Check for negative index

* Let strncat not depend n src operand.

* Fix 509083 and 509084 - NULL dereference

* Remove duplicated code.

* Initialize sysop

* Fix resource leak

* Remove unreachable code.

* Remove duplicate code.

* Add assert to check return value of cmoack

* Fixed: d should be a signed value, since it is checked against < 0

* Add missing break.

* Add NULL check

* Fix signs of binary search comparisons.

* Add explicit cast of or result

* Fix correct scope of case.

* Handle invalid integer type.

* Return UINT_MAX instead of implicitly casted -1

* Remove dead code

* Fix type of im

* Fix type of d

* Remove duplicated code.

* Add returns after CS_ASSERTS

* Check for len == 0 case.

* Ensure shift operates on uint64

* Replace strcpy with strncpy.

* Handle edge cases for 32bit rotate

* Fix some out of enum warnings

* Replace a strcpy with strncpy.

* Fix increment of address

* Skip some linting

* Fix: set instruction id

* Remove unused enum

* Replace the last usages of strcpy with SStream functions.

* Increase number of allowed AArch64 operands.

* Check safety of incrementing t the next operand.

* Fix naming of operand

* Update python constants

* Fix option setup of CS_OPT_DETAIL_REAL

* Document DETAIL_REAL has to be used with CS_OPT_ON.

* Run Coverity scan every Monday.

* Remove dead code

* Fix OOB read

* Rename macro to reflect it is only used with sstreams

* Fix rebase issues
2024-09-18 21:19:42 +08:00
..
java Auto-Sync Mips (#2410) 2024-09-07 22:30:47 +08:00
ocaml Auto-Sync Mips (#2410) 2024-09-07 22:30:47 +08:00
powershell Fix a couple of corner-cases with rarely used m68k instructions. (#1344) 2019-01-21 17:42:01 +08:00
python Coverity defects (#2469) 2024-09-18 21:19:42 +08:00
vb6 fix typos (#2346) 2024-05-12 21:17:20 +08:00
const_generator.py SystemZ Auto-Sync refactor (#2462) 2024-09-14 16:57:54 +08:00
README Swift binding (#1707) 2020-11-25 14:41:10 +08:00

This directory contains bindings & test code for Python, Java & OCaml.
See <language>/README for how to compile & install each binding.

More bindings created & maintained by the community are available as followings.

- Gapstone: Go binding (by Scott Knight).

	https://github.com/knightsc/gapstone

- Crabstone: Ruby binding for Capstone 3+ (by david942j).

	https://github.com/david942j/crabstone

- Crabstone: Ruby binding (by Ben Nagy).

	https://github.com/bnagy/crabstone

- Capstone-Vala: Vala binding (by Pancake).

	https://github.com/radare/capstone-vala

- Node-Capstone: NodeJS binding (by Jason Oster).

	https://github.com/parasyte/node-capstone

- CCcapstone: C++ binding (by Peter Hlavaty).

	https://github.com/zer0mem/cccapstone

- LuaCapstone: Lua binding (by Antonio Davide).

	https://github.com/Dax89/LuaCapstone

- Capstone-RS: Rust binding (by Richo Healey).

	https://github.com/capstone-rust/capstone-rs

- Capstone.NET: .NET framework binding (by Ahmed Garhy).

	https://github.com/9ee1/Capstone.NET

- CapstoneJ: High level Java wrapper for Capstone-java (by Keve Müller).

	https://github.com/kevemueller/capstonej

- Hapstone: Haskell binding (by ibabushkin)

    https://github.com/ibabushkin/hapstone

- CL-Capstone: Common Lisp bindings (by GrammaTech).

    https://github.com/GrammaTech/cl-capstone

- Emacs-capstone: Emacs (elisp) binding (by Bas Alberts)

    https://github.com/collarchoke/emacs-capstone

- C# binding (by Matt Graeber). Note: this is only for Capstone v2.0.

	https://github.com/mattifestation/capstone

- PowerShell binding (by Ruben Boonen).

	https://github.com/aquynh/capstone/tree/master/bindings/powershell

- PHP binding (by Fadhil Mandaga).

	https://github.com/firodj/php-capstone
	
- capstone-d: D binding (by Dimitri Bohlender)

	https://github.com/bohlender/capstone-d

- Swift binding (by Jesús A. Álvarez)

	https://github.com/zydeco/capstone-swift