libreoffice-online/fuzzer/HttpResponse.cpp
Ashod Nakashian 6fa5be7ecb fuzzers: more aggressive http::Response fuzzing
Change-Id: I5b714bddd6edc90ef0c8efdad42d5f78f3d74886
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2022-08-17 08:55:12 -04:00

15 lines
351 B
C++

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