ClickHouse/utils/libfuzzer-test/test_basic_fuzzer/main.cpp

12 lines
285 B
C++
Raw Normal View History

2024-10-10 18:59:48 +00:00
#include <stdint.h>
#include <stddef.h>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size)
{
if (size > 0 && data[0] == 'H')
if (size > 1 && data[1] == 'I')
if (size > 2 && data[2] == '!')
__builtin_trap();
return 0;
}