add cmplog testing to the harness

This commit is contained in:
Omree 2021-06-09 12:06:31 +03:00
parent 584b034a52
commit 1fc9796bdb

View File

@ -109,19 +109,8 @@ void func1() {
// http://www.libpng.org/pub/png/book/chapter13.html
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
if(data[10] == 0xAB &&
data[11] == 0xCD &&
data[12] == 0xEF &&
data[13] == 0xAA &&
data[14] == 0x8F &&
data[15] == 0x13 &&
data[16] == 0x24 &&
data[17] == 0xAA &&
data[18] == 0xBB ) {
printf("passed the test!");
} else {
printf("x");
return 0;
if (size >= 8 && *(uint64_t*)data == 0xABCDEFAA8F1324AA){
abort();
}