mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 19:08:08 +00:00
aflpp_debug
This commit is contained in:
20
examples/aflpp_driver/aflpp_driver_test.cpp
Normal file
20
examples/aflpp_driver/aflpp_driver_test.cpp
Normal file
@ -0,0 +1,20 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
||||
|
||||
fprintf(stderr, "Received size %lu\n", Size);
|
||||
|
||||
if (Size < 4)
|
||||
return 0;
|
||||
|
||||
if (Data[0] == 'F')
|
||||
if (Data[1] == 'A')
|
||||
if (Data[2] == '$')
|
||||
if (Data[3] == '$')
|
||||
abort();
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
Reference in New Issue
Block a user