[Libreoffice-commits] online.git: fuzzer/ClientSession.cpp
Miklos Vajna (via logerrit)
logerrit at kemper.freedesktop.org
Tue Mar 17 09:34:58 UTC 2020
fuzzer/ClientSession.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 338a9c5f1dd4232ebb380892a3fe09b4b5ec47f3
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Tue Mar 17 10:00:08 2020 +0100
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Tue Mar 17 10:34:40 2020 +0100
libfuzzer: fix build
After commit e924625cc1af8736505f363fc525d20a6373bb95 (re-factor: Socket
/ WebSocketHandler., 2020-03-06).
Change-Id: I2c109c26791efa03f54773a3623bcce57b0fb5e6
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90603
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
diff --git a/fuzzer/ClientSession.cpp b/fuzzer/ClientSession.cpp
index 2498d1288..5b7d8085a 100644
--- a/fuzzer/ClientSession.cpp
+++ b/fuzzer/ClientSession.cpp
@@ -18,11 +18,12 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
std::string docKey = "/fuzz/fuzz.odt";
auto docBroker = std::make_shared<DocumentBroker>(uri, uriPublic, docKey);
+ std::shared_ptr<ProtocolHandlerInterface> ws;
std::string id;
bool isReadOnly = false;
const std::string hostNoTrust;
auto session
- = std::make_shared<ClientSession>(id, docBroker, uriPublic, isReadOnly, hostNoTrust);
+ = std::make_shared<ClientSession>(ws, id, docBroker, uriPublic, isReadOnly, hostNoTrust);
std::string input(reinterpret_cast<const char*>(data), size);
std::stringstream ss(input);
More information about the Libreoffice-commits
mailing list