libreoffice-online/fuzzer
Miklos Vajna 62f4a6c317 fuzzer: reject increasing the log level via update-log-levels
Similar to commit 9e3de293af (fuzzer:
reject increasing the log level, 2024-06-12), but that was for
setThreadLocalLogLevel() used by the loggingleveloverride protocol
command, and this is for setLogLevelByName() used by the
update-log-levels protocol command.

Signed-off-by: Miklos Vajna <vmiklos@collabora.com>
Change-Id: I56eb8c311e01a995604d408d1933559890499a0b
2024-06-26 22:16:08 +02:00
..
admin-data fuzzer: reject increasing the log level via update-log-levels 2024-06-26 22:16:08 +02:00
data fuzzer: reject increasing the log level 2024-06-12 09:12:55 +01:00
httpecho-data
httpresponse-data
Admin.cpp
ClientSession.cpp
Common.cpp fuzzer: fix default log level 2024-05-29 09:10:44 +02:00
Common.hpp
httpecho-fuzz.sh
HttpEcho.cpp
HttpResponse.cpp
README

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/
----

- HttpEcho:

----
./httpecho_fuzzer -max_len=16384 fuzzer/httpecho-data/
OR, better:
./fuzzer/httpecho-fuzz.sh
----