libreoffice-online/fuzzer/HttpResponse.cpp

18 lines
367 B
C++
Raw Normal View History

#include <iostream>
#include "config.h"
#include <net/HttpRequest.hpp>
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
for (size_t i = 0; i < size; ++i)
{
http::Response response;
response.readData(reinterpret_cast<const char*>(data), i);
}
return 0;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */