AFLplusplus / unicornafl_legacy

Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, X86) adapted to afl++
http://github.com/AFLplusplus/AFLplusplus
GNU General Public License v2.0
44 stars 8 forks source link

Add Testcases for recent regressions #3

Closed domenukk closed 4 years ago

domenukk commented 4 years ago

PR #2 fixes a regression introduced in commit ec637ff7ecb8328295fd77fe89d75443c9971c3a. A testcase to catch this issue in the future needs to be added.

domenukk commented 4 years ago

The first testcase should check if validate_crash_callback works as intended, another should check error state of uc_afl_mmap_file, see PR #4

domenukk commented 4 years ago

I've added a testcase for persistent mode here: https://github.com/vanhauser-thc/AFLplusplus/blob/master/unicorn_mode/samples/persistent/harness.c However it is not yet part of the Travis CI pipeline.

domenukk commented 4 years ago

The testcases are in the main aflplusplus repo