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