Fuzz builds ok (#1007)

* Fuzzing M68K without abort

* UC_MODE_32 is not ok with sparc

use UC_MODE_SPARC32|UC_MODE_BIG_ENDIAN instead

* Temporary removing leaking on start targets

* Do not abort for m68K undef instructions
This commit is contained in:
Catena cyber
2018-09-11 06:49:32 +02:00
committed by Nguyen Anh Quynh
parent 2ab9e83703
commit 12bcf3bea0
6 changed files with 3 additions and 175 deletions

View File

@@ -55,7 +55,7 @@ static void test_sparc(void)
printf("Emulate SPARC code\n");
// Initialize emulator in Sparc mode
err = uc_open(UC_ARCH_SPARC, UC_MODE_32, &uc);
err = uc_open(UC_ARCH_SPARC, UC_MODE_SPARC32|UC_MODE_BIG_ENDIAN, &uc);
if (err) {
printf("Failed on uc_open() with error returned: %u (%s)\n",
err, uc_strerror(err));