Commit Graph

4281 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
4de2e288c8 fix MC 2019-02-26 15:41:04 +08:00
Nguyen Anh Quynh
3dcdcfa713 sync with LLVM 7.0.1. X86 is first 2019-02-26 15:19:51 +08:00
Nguyen Anh Quynh
17f252ea96 x86: ENDBR64 & ENDBR32 are unavailable in REDUCE mode 2019-02-23 00:02:09 +08:00
Nguyen Anh Quynh
b227825267 x86: fix X86_BEXTRI64ri in X86MappingInsnOp_reduce.inc 2019-02-22 23:58:33 +08:00
Nguyen Anh Quynh
260bc7e44f trimming MCInstrDesc (ARM) 2019-02-21 23:30:38 +08:00
Nguyen Anh Quynh
de420ec49a trimming MCRegisterClass 2019-02-21 22:33:15 +08:00
Nguyen Anh Quynh
7131b7a8ad Revert "x86: trimming MCRegisterClass usage"
This reverts commit 1d71b36348.
2019-02-21 21:11:56 +08:00
Nguyen Anh Quynh
8b1a140db2 x86: trimming MCRegisterClass usage 2019-02-21 21:08:00 +08:00
Nguyen Anh Quynh
e0b9ca7329 Revert "trimming MCRegisterClass usage"
This reverts commit 86743f83cd.
2019-02-21 21:06:01 +08:00
Nguyen Anh Quynh
9426405822 trimming MCRegisterClass usage 2019-02-21 20:55:25 +08:00
Nguyen Anh Quynh
38e9716275 wasm: remove unused variable 2019-02-21 20:52:59 +08:00
Nguyen Anh Quynh
f59dac2237 Merge branch 'next' of github.com:aquynh/capstone into next 2019-02-21 15:33:54 +08:00
Nguyen Anh Quynh
85cac968ef X86: X86_insn_reg_att uses a wrong mapping array of Intel syntax 2019-02-21 15:33:14 +08:00
Catena cyber
5f20fba9de Adds corpus generation for bpf architecture (#1396)
* Adds corpus generation for bpf architecture

* Updes HACK.txt with MC files to be added with a new architecture
2019-02-21 10:42:31 +08:00
Catena cyber
e5fa5f8735 Avoids leak in wasm details (#1372)
* Avoids leak in wasm details

Extending cs_detail in capstone.h

* Safety checks before allocating memory for brtable in WASM

* Revert "Avoids leak in wasm details"

This reverts commit 03f822b34a03f23554aaffb2951b62c62645e5e5.

* Refactoring brtable for WASM

* Fix undefined shift in WASM get_varuint64
2019-02-20 23:38:11 +08:00
Anton Bolshakov
466cb1b2fd respect libsuffix in pkgconfig (#1393)
* respect libsuffix in pkgconfig

discovered in https://bugs.gentoo.org/677946

* Update CMakeLists.txt

* Update CMakeLists.txt

* Update CMakeLists.txt
2019-02-20 10:12:42 +08:00
Nguyen Anh Quynh
3570936dc0 Merge branch 'next' of github.com:aquynh/capstone into next 2019-02-19 10:49:27 +08:00
Nguyen Anh Quynh
0561a4fc10 cstest: add issue #1129 2019-02-19 10:49:07 +08:00
david942j
a28027bbe1 wasm: fix misordering (#1391) 2019-02-19 00:10:36 +08:00
Nguyen Anh Quynh
0e0fb6de52 cstest: issues with description, rather than 2019-02-18 21:44:26 +08:00
Nguyen Anh Quynh
7ecf7c6410 cstest: add some branch instructions with absolute addresses for x86 2019-02-18 21:25:25 +08:00
Nguyen Anh Quynh
462e7e089b cstest: add issue 1389 testcase to issues.cs 2019-02-18 20:18:06 +08:00
Nguyen Anh Quynh
972617ffff suite/capstone_get_setup.c: add BPF arch 2019-02-18 20:11:19 +08:00
Nguyen Anh Quynh
a442e9d1f7 bpf: print setup config in cstool -v 2019-02-18 20:06:11 +08:00
david942j
9b3ead3ab8 fix conflicts 2019-02-18 20:04:30 +08:00
david942j
b227acc29c New architecture: BPF (#1388)
* Basic changes of new arch - BPF

* Define some constants

* defined some API methods

* Able to print MISC instruction

* Follow Linux coding style

* Ability to show ALU insn names

* decode return

* Add suite/MC/BPF

* decode jump

* decode store

* decode load

* print instruction done

* try to implement BPF_reg_access

* Implements explicit accessed registers and fix some tiny bugs

* Fix unhandled ja case

* Added BPF_REG_OFF do fix wrong display in jump class

* Great I'm able to decode cBPF with eyes

* Fix: misunderstood the 16-byte instruction's imm

* Add ldxdw

* Add extended-all.cs

* Implements cstest/bpf_getdetail.c

* Fix memory leak

* Add BPF to fuzz

* Implemented regs_read and regs_write

* Fix missing write-access on ALU's dst

* Updated cstool/, test_basic.c, test_detail.c, and test_iter.c

* Updated docs

* Fix type of cs_bpf#operands

* Implements python bindings

* Fix some bugs found by self code review

* Remove dummy tests

* remove typeof

* Address comments

* Fix MSVC's warnings and add test_bpf.py to bindings/python/Makefile

* Fix: call is not offset
2019-02-18 17:39:51 +08:00
Nguyen Anh Quynh
fd433d897a x86: 8bit Imm operand has size = 1. this fixes issue #1389 2019-02-18 17:31:03 +08:00
Nguyen Anh Quynh
0eb9f20dfe python: add test_evm.py to Makefile check target 2019-02-18 10:46:57 +08:00
Nguyen Anh Quynh
a7f12d96b0 cstool: print extra options in alphabet order 2019-02-18 10:45:52 +08:00
Nguyen Anh Quynh
19351b5b76 cstool: indent Wasm usage 2019-02-18 10:44:12 +08:00
Nguyen Anh Quynh
7b47192b1a python: make test_evm.py to output like test_evm.c 2019-02-17 23:19:56 +08:00
Семён Марьясин
059ac6d7cc Fix skipdata struct being destroyed (#1385) 2019-02-17 01:32:12 +08:00
Invincible
74c67daf35 For the benefit of mankind. (#1386)
For the peace and tranquility of the earth.
2019-02-17 01:32:08 +08:00
Catena cyber
254c58b47a Fixes more undefined left shift of negative values (#1384) 2019-02-16 10:33:21 +08:00
Catena cyber
b43db80f9a Avoids overflow in getRegisterName for TMS320C64x (#1375)
* Avoids overflow in getRegisterName for TMS320C64x

* Revert "Avoids overflow in getRegisterName for TMS320C64x"

This reverts commit 18acee60cd.

* Checks register in DecodeMemOperandSc
2019-02-16 10:32:15 +08:00
Catena cyber
53bb84df61 Updates test_corpus to support new examples (#1383) 2019-02-15 22:45:45 +08:00
Catena cyber
2426038f31 Multiply signed integer instead of left shift (#1382) 2019-02-15 22:35:04 +08:00
Nguyen Anh Quynh
b57ddf8bc5 merge master to next branch 2019-02-15 10:51:04 +08:00
Nguyen Anh Quynh
ee09a82235 README: pypi downloads 2019-02-15 08:58:46 +08:00
Catena cyber
31f8e8e0be Avoid overflow in SStream.c (#1381) 2019-02-15 08:18:31 +08:00
Catena cyber
06f042c515 Fix undefined shift in WASM disassembler (#1380) 2019-02-15 08:18:03 +08:00
Đỗ Minh Tuấn
c7fbb5d4cd Another way to solve when compare with issue (#1379)
* cstest: partial details are supported in issues.cs
2019-02-15 00:12:18 +08:00
Đỗ Minh Tuấn
74e15a0263 Integrate into travis cli (#1378)
* Comment out all failed tests
* Integrate with Travis
2019-02-14 22:15:12 +08:00
Nguyen Anh Quynh
695709f180 Merge branch 'HarDToBelieve-master' 2019-02-14 16:24:37 +08:00
Nguyen Anh Quynh
44be32dd50 cstest: code style 2019-02-14 16:24:22 +08:00
Đỗ Minh Tuấn
9e26ddb9c0 Fix bugs (#1377)
* fixing

* Done fixing
2019-02-14 16:23:18 +08:00
HarDToBelieve
8f4bf69f62 Done fixing 2019-02-14 14:13:45 +07:00
hardtobelieve
cd2e9567a2 fixing 2019-02-13 20:01:26 -08:00
Nguyen Anh Quynh
23c73c0aa1 cstest: allow space between !# and arch (issues.cs) 2019-02-14 10:19:21 +08:00
Nguyen Anh Quynh
9216f2f5c4 cstest: fix conflicts 2019-02-14 01:30:39 +08:00