libreoffice-online/fuzzer
Miklos Vajna 262befc90e clientsession_fuzzer: fix missing UnitWSD
An alternative would be to tweak online-fuzz/wsd/DocumentBroker.cpp:534
to check for Util::isFuzzing(), but this is probably a better & more
generic way.

'./clientsession_fuzzer fuzzer/data/load' now works again.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I4d9fa387597695ff0802b268bc4d86be51dbabb2
2022-01-21 14:52:31 +01:00
..
admin-data
data rename: remaining lool->cool changes 2021-11-18 14:14:11 +01:00
httpresponse-data
Admin.cpp
ClientSession.cpp clientsession_fuzzer: fix missing UnitWSD 2022-01-21 14:52:31 +01:00
HttpResponse.cpp
README rename: remaining lool->cool changes 2021-11-18 14:14:11 +01:00

These fuzzers are meant to be built and executed inside lode.git's sanitizers
environment (currently enables both asan and ubsan).

online.git can be built the usual way, just the additional `--enable-fuzzers`
flag is needed to build the fuzzers. It is useful to do this in a separate
build tree, since the fuzzers config doesn't produce a `coolwsd` binary.

Run the fuzzers like this:

- Admin:

----
./admin_fuzzer -max_len=16384 fuzzer/admin-data/
----

- ClientSession:

----
./clientsession_fuzzer -max_len=16384 fuzzer/data/
----

- HttpResponse:

----
./httpresponse_fuzzer -max_len=16384 fuzzer/httpresponse-data/
----