23 Commits

Author SHA1 Message Date
Edward Larson 4f5401601b Fix for issue #427 (#429)
* Add support for MSP430

* Fix test-all.sh

* Use corrected TableGen output files

* Fix bindings for EVM and MSP430

* Remove LLVM_CONSTEXPR (like upstream LLVM did) and fix Java binding

See https://github.com/llvm-mirror/llvm/commit/6feedc56f7855aa24baf759f3bc17112ecbf5699#diff-d14f03e012a2bdbf93486dc1c4ce95ec

* Revert bindings

* Remove added files as well

* Add back changes for bindings created by const_gnerator

* Add back changes for other bindings

* Update CREDITS.TXT

* Fix ADRP instruction encoding

* Trigger checks on PR again, it failed for some reason unrelated to my code

* Add correct offset checks back in

* added llvm support post jan 2

* Remove bounds check on ppc branch instructions target address (fix issue 423)

* Fix vm address reset in aliased PPC instructions

* Fix vm address reset in aliased PPC instructions

(cherry picked from commit 06425a32f3)

* Remove bounds check on ppc branch instructions target address (fix issue 423)

(cherry picked from commit 06afb493e0)

* Clean up test for issue #427

Co-authored-by: Trey Keown <trey@redballoonsecurity.com>
Co-authored-by: Dan Pesce <dan@redballoonsecurity.com>
Co-authored-by: Trey Keown <jfktrey@gmail.com>
Co-authored-by: Nguyen Anh Quynh <aquynh@gmail.com>
2020-06-14 16:04:10 +08:00
Nguyen Anh Quynh 5bb69e2f63 update binding consts 2020-06-10 16:09:50 +08:00
Nguyen Anh Quynh 80d46cee40 add Ethereum VM architecture 2018-03-31 00:08:28 +08:00
Nguyen Anh Quynh ba96155275 add KS_VERSION_{MAJOR, MINOR, EXTRA} 2016-10-25 14:52:19 +08:00
Nguyen Anh Quynh 40c477a79d update bindings to add KS_OPT_SYM_RESOLVER. Python binding now supports this option. see sample.py for example 2016-10-02 13:56:10 +08:00
Nguyen Anh Quynh 0c56ef96eb bindings: support RADIX16 syntax added to the core in the last commit 2016-09-10 02:05:57 +08:00
Nguyen Anh Quynh 8b7ca00c50 x86: fix issue #168 2016-06-05 15:06:04 +08:00
Nguyen Anh Quynh 070b5add69 x86: fix crash-21-x64-llvm-error-expected-absolute-expression.c 2016-05-31 15:08:32 +08:00
Nguyen Anh Quynh 4d2353952b down version to 0.9 for public release 2016-05-31 09:26:37 +08:00
Nguyen Anh Quynh 499f78265e handle error in peekTok(). this fixes c-crashes/crash-04-hexagon-readcount-not-equal-to-one.c 2016-05-31 00:43:35 +08:00
Remco a89d283518 added nodejs makefile, updated all bindings, updated const generator for nodejs, ruby and python 2016-05-30 13:30:29 +02:00
Nguyen Anh Quynh 63317d5757 handle equal directive. this fixes c-crashes/crash-12-x64-cannot-set-a-variable-that-has-already-been-used.c 2016-05-30 01:52:44 +08:00
Nguyen Anh Quynh 6eb7703b3c handle error in applyFixup(). this fixes c-crashes/crash-23-x64-value-does-not-fit-in-the-fixup-field.c 2016-05-30 00:55:46 +08:00
Nguyen Anh Quynh a992d95048 x86: report unsupported instructions in encodeInstruction(). this fixes c-crashes/crash-24-x64-not-is16bitmemoperand.c 2016-05-30 00:28:11 +08:00
Nguyen Anh Quynh e644380b1b handle parser error in getIntVal(), getAPIntVal() & Lex(). this fixes some crashes in c-crashes 2016-05-30 00:04:26 +08:00
Nguyen Anh Quynh 4ae32f997d propagate error from llvm/lib/MC/MCParser/AsmParser.cpp to ks_asm() 2016-05-29 01:13:41 +08:00
Ingmar Steen fc6ff81e80 The aarch64 target is actually little endian. 2016-05-24 10:01:32 +02:00
Nguyen Anh Quynh ef0e95ac4b make ks_strerror() support new error code 2016-05-22 19:13:29 +08:00
Nguyen Anh Quynh f719c95bee remove assert() from AsmToken::getStringContents() 2016-05-22 19:03:54 +08:00
Nguyen Anh Quynh 03193cd9cc rename KS_ERR_ASM_SYMBOL_NOTFOUND to KS_ERR_ASM_SYMBOL_MISSING 2016-05-18 02:14:04 +08:00
Nguyen Anh Quynh fbea39ccd7 propagate the error of missing symbol back to ks_asm(). this adds new error code KS_ERR_ASM_SYMBOL_NOTFOUND. fix issue #61 2016-05-18 01:56:02 +08:00
Nguyen Anh Quynh c5ca679598 add error code KS_ERR_ASM_SYMBOL_REDEFINED to report redefined symbols. also updated all the bindings after this 2016-05-17 22:19:30 +08:00
Sascha Schirra 2d8863a9ee added bindings for ruby 2016-05-15 00:07:39 +02:00