2021-04-22 09:43:03 +02:00
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <net/HttpRequest.hpp>
|
2024-05-10 14:56:37 +02:00
|
|
|
#include <fuzzer/Common.hpp>
|
2021-04-22 09:43:03 +02:00
|
|
|
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
|
|
|
{
|
2024-05-10 14:56:37 +02:00
|
|
|
static bool initialized = fuzzer::DoInitialization();
|
|
|
|
(void)initialized;
|
|
|
|
|
2021-06-06 01:03:39 +02:00
|
|
|
for (size_t i = 0; i < size; ++i)
|
2023-02-27 09:12:39 +01:00
|
|
|
{
|
|
|
|
http::Response response;
|
2021-06-06 01:03:39 +02:00
|
|
|
response.readData(reinterpret_cast<const char*>(data), i);
|
2023-02-27 09:12:39 +01:00
|
|
|
}
|
2021-04-22 09:43:03 +02:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|