]> git.ipfire.org Git - thirdparty/systemd.git/commit
fuzz-journal-remote: do not assert on resource conditions
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 8 Feb 2021 09:20:03 +0000 (10:20 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 9 Feb 2021 12:59:01 +0000 (13:59 +0100)
commit4ef8478eb51146025700aef989e6bc8e5302fc5c
tree259819098dfdb3de181b744d6d9b3664ebccb202
parent7bc38f59dc6c54fcabc5f44ecb20ab43dda0838d
fuzz-journal-remote: do not assert on resource conditions

We have a number of issues where oss-fuzz reports input-independent crashes of
fuzz-journal-remote. Instead of asserting that stuff that allocated fds and
memory never fails, let's instead just return an error.

https://oss-fuzz.com/testcase-detail/4791099424112640
https://oss-fuzz.com/testcase-detail/4531912477638656

I don't see any docs as to whether LLVMFuzzerTestOneInput() is allowed to
return non-zero. Propagating the error code is easiest, so let's just do that.
If it turns out that this causes oss-fuzz to still report a failure, we can
suppress that later.
src/journal-remote/fuzz-journal-remote.c