mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-08 16:21:32 +00:00
25 lines
418 B
C
25 lines
418 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <stdint.h>
|
|
|
|
void __attribute__((noinline)) crashme(const uint8_t *Data, size_t Size) {
|
|
|
|
if (Size < 5) return;
|
|
|
|
if (Data[0] == 'F')
|
|
if (Data[1] == 'A')
|
|
if (Data[2] == '$')
|
|
if (Data[3] == '$')
|
|
if (Data[4] == '$') abort();
|
|
|
|
}
|
|
|
|
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
|
|
|
|
if (Size) crashme(Data, Size);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|