207 Commits
Author SHA1 Message Date
null-cell 2a611d9a8c adds documentation for porting, resolves PR comments 2023-05-15 11:05:31 +02:00
jan2642 c0e77dea8d test+fix thumb backwards branching with sym_resolver (#355) (#377) 2020-06-13 13:16:55 +08:00
Edward Larson 4d060561fa Remove bounds check on ppc branch instructions target address (fix issue 423) (#428)
(cherry picked from commit 06afb493e0)
2020-02-15 08:18:12 +08:00
brendabrandy c4de98f71f Updated AsmParser deconstructor to restore saved diagnostic handlers back to srcmgr (#419) 2019-08-02 21:45:03 +08:00
Catena cyber e649026ff3 Remove Sparc64 as it is unsupported (#376) 2018-09-17 20:52:59 +08:00
Catena cyber 0f19fa9acd Only frees instruction if allocated (#375)
* Only frees instruction if allocated

* Avoids memory leak in ks_close for EVM
2018-09-13 12:22:39 +08:00
Catena cyber 1ee0248c04 Fuzzing : integration with oss-fuzz (#371) 2018-09-11 21:51:03 +08:00
Brian Kearns 5a874f6fd4 Test+fix ARM Thumb2 ADR calculations (#329) 2017-11-30 00:42:13 +08:00
Brian Kearns e7212da5a6 Test/fix ARM Thumb B.W addresses (#326)
* add ARM Thumb branch address testcases

* fix ARM Thumb B.W addresses (issue #298)
2017-11-30 00:20:52 +08:00
fidgetingbits c474c6c4b2 Fix issue #293 (#300) 2017-06-01 21:42:52 +08:00
jatin 1c3a6387d5 enabling regression test 2017-01-16 18:57:41 -05:00
jatin eef53eb33f added regress test for effect of .word directive on relative jumps. 2017-01-16 16:51:59 -05:00
wsxarcher af9a7f7857 regression test x86 call [symbol], issue 271 2017-01-06 12:55:25 +01:00
Nguyen Anh Quynh 2b1dc8ba68 regress: chmod +x x86_call0.py 2017-01-05 16:00:33 +08:00
Nguyen Anh Quynh 6fbe0e8525 Merge pull request #268 from krystalgamer/master
Create x86_call0.py
2017-01-05 15:59:48 +08:00
Nguyen Anh Quynh 105bdf2955 regress: chmod +x mips_jal.py 2017-01-05 15:57:52 +08:00
LdyEax 8107e1087b mips jal test 2017-01-05 02:40:47 -05:00
krystalgamer 6e1f317334 Create x86_call0.py 2017-01-02 12:17:07 +00:00
Jon Erickson b4b6087948 Update x86_issue10.py
Added test case for issue #207.

https://github.com/keystone-engine/keystone/issues/207
2016-12-06 14:58:51 -05:00
shakamd 0435b8b750 Adding unit test for arm_bl relative branch (#258)
* Adding unit test for arm_bl relative branch

* reducing number of instructions required to create failure

* typo

* Adding more test cases
2016-11-17 12:43:09 +08:00
Nguyen Anh Quynh 3fed1d852e regress: chmod +x x64_RSP_index_reg.py 2016-11-01 09:19:16 +08:00
szt d39916060b Create x64_RSP_index_reg.py (#255)
* Create x64_RSP_index_reg.py

test for https://github.com/keystone-engine/keystone/issues/254

* Update x64_RSP_index_reg.py

add regress.main()
2016-11-01 09:18:04 +08:00
dmxcsnsbh d398f8d23d add arm_blx_label(_thumb) testcase 2016-10-15 13:43:01 +08:00
dmxcsnsbh 521d43f1cb add arm_blx_label(_thumb) testcase 2016-10-15 13:41:21 +08:00
dmxcsnsbh 018d0ff031 bl_label_test_case 2016-10-12 01:13:24 +08:00
Nguyen Anh Quynh a592f21d7e regress: chmod +x x64_sym_resolver.py 2016-10-02 20:29:11 +08:00
mrexodia 719be57a04 added regression test for sym_resolver 2016-10-02 12:39:42 +02:00
Nguyen Anh Quynh 848045a775 regress: use hex number for x86_lea_three.py 2016-07-24 14:47:29 +08:00
Ryan Hileman 734937c0ab add regress for #226 2016-07-22 02:15:45 -07:00
practicalswift b37c844fda Add five round-trip failures. 2016-07-15 16:24:25 -04:00
Nguyen Anh Quynh 97a2239591 Merge pull request #221 from practicalswift/crash-40-systemz-segfault-in-doit
Add crash-40-systemz-segfault-in-doit.c
2016-07-08 09:50:43 +08:00
practicalswift 293437bbec Add crash-40-systemz-segfault-in-doit.c 2016-07-07 05:38:34 -04:00
practicalswift 7cc1b7cbc3 Add crash case: crash-39-arm-idx-lt-size.c
```
$ ./crash-39-arm-idx-lt-size
crash-39-arm-idx-lt-size: /path/to/keystone/llvm/include/llvm/ADT/SmallVector.h:145: T& llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::operator[](llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type) [with T = std::unique_ptr<llvm::MCParsedAsmOperand>; <template-parameter-1-2> = void; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::reference = std::unique_ptr<llvm::MCParsedAsmOperand>&; llvm::SmallVectorTemplateCommon<T, <template-parameter-1-2> >::size_type = long unsigned int]: Assertion `idx < size()' failed.
Aborted
```
2016-07-06 18:39:19 -04:00
practicalswift 23d4a12f46 Add a couple of round-trip failures. 2016-07-06 07:40:16 -04:00
Nguyen Anh Quynh bcd3c14fb2 x86: FARJMP/FARCALL support Nasm syntax 2016-07-03 01:37:39 +08:00
Nguyen Anh Quynh 2b0fc2eeaa x86: fix issue #214 2016-07-02 03:06:09 +08:00
Nguyen Anh Quynh ce922a6414 regress: chmod +x x86_jmp_0x33_08.py 2016-07-01 23:21:19 +08:00
mrexodia 4f6861e250 added regression test for "jmp 0x33, 08" 2016-07-01 09:43:05 +02:00
practicalswift 18ae145d21 Add 13 roundtrip failures. 2016-06-28 14:42:07 -04:00
Nguyen Anh Quynh e388968f3f regress: chmod +x x86_shifts.py 2016-06-20 00:04:53 -04:00
fvrmatteo 02ca6a6a01 Regress test for SHR/SHL/SAR/SAL
This test needs to be checked for correctness.
2016-06-20 01:16:17 +02:00
Nguyen Anh Quynh 594279550b Merge pull request #197 from practicalswift/add-crash-case
Add crash case: crash-38-x64-cast-ty-argument-of-incompatible-type.c
2016-06-17 22:42:23 -04:00
practicalswift d2793b7efb Add six round-trip failures. 2016-06-17 15:46:20 -04:00
practicalswift 9b6deb0b41 Add crash case: crash-38-x64-cast-ty-argument-of-incompatible-type.c
```
$ ./crash-38-x64-cast-ty-argument-of-incompatible-type
/path/to/llvm/include/llvm/Support/Casting.h:230: typename llvm::cast_retty<To, From>::ret_type llvm::cast(Y&) [with X = llvm::MCSectionELF; Y = llvm::MCSection; typename llvm::cast_retty<To, From>::ret_type = llvm::MCSectionELF&]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
Aborted
```
2016-06-17 11:44:05 -04:00
Nguyen Anh Quynh 170bf4f882 x86: simple sanity check on immediate value to see if it is out of range. this fixes issue #185 2016-06-14 23:38:02 +07:00
practicalswift 09d6732c41 Add six round-trip failures. 2016-06-12 12:53:12 -04:00
practicalswift 661dfd55b1 Add a few round-trip failures. 2016-06-10 15:56:19 -04:00
practicalswift ba4ea656a9 Add eleven round-trip failures. 2016-06-07 02:05:37 -04:00
practicalswift 02c0dac603 Add two crash cases
* Add crash-36-x64-execution-aborted.c
* Add crash-37-x64-segfault-in-doit.c
2016-06-06 07:10:56 -04:00
practicalswift ae2a422655 Add six round-trip failures. 2016-06-04 15:54:55 -04:00