libreoffice-online/fuzzer
Miklos Vajna a3fc39e325 libfuzzer: fix build
Also decrease the poll timeout to 0, otherwise testing each input would
now take 5 sec, rather than ~3 ms.

Change-Id: I1a4f347e5ec08a62d40131bfec3c504a19727323
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/95437
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-06-03 16:39:45 +02:00
..
admin-data admin_fuzzer: fix too large param to mem stats size setter 2020-04-20 15:44:21 +02:00
data wsd: fix crash with read-only documents + uno command without param 2020-02-27 17:59:59 +01:00
Admin.cpp Add an initial libfuzzer based fuzzer for the admin console 2020-04-02 12:11:24 +02:00
ClientSession.cpp libfuzzer: fix build 2020-06-03 16:39:45 +02:00
README libfuzzer: add initial documentation 2020-05-15 10:06:58 +02: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 `loolwsd` binary.

Run the fuzzers like this:

- Admin:

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

- ClientSession:

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