0ef5e740a4
Probably went wrong in commit de985834e2
(wsd: simplify DocumentBroker construction, 2024-04-03).
Also init logging to avoid:
common/Log.cpp:664:16: runtime error: downcast of address 0x6070000005d0 which does not point to an object of type 'GenericLogger'
0x6070000005d0: note: object is of type 'Poco::Logger'
similar to how COOLWSD::innerInitialize() does it.
Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: Ic16bb2f070e1f0e12204bcc2fc70303d8c1250c8
21 lines
478 B
C++
21 lines
478 B
C++
#include <iostream>
|
|
|
|
#include "config.h"
|
|
|
|
#include <net/HttpRequest.hpp>
|
|
#include <fuzzer/Common.hpp>
|
|
|
|
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
|
|
{
|
|
static bool initialized = fuzzer::DoInitialization();
|
|
(void)initialized;
|
|
|
|
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: */
|