summaryrefslogtreecommitdiff
path: root/src/journal-remote
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-05-12 12:51:11 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-05-12 14:57:07 +0200
commitc4f883b78e5ffd326a82eaf18e01a9e4e243db58 (patch)
tree712faa735096321206f0afd6097a4dd09bfcd6c1 /src/journal-remote
parent7593691aadc7e1e9c5f17fd26424abe337d56302 (diff)
downloadsystemd-c4f883b78e5ffd326a82eaf18e01a9e4e243db58.tar.gz
fuzzers: ignore size limits when compiled standalone
This way we can still call fuzzers on old samples, but oss-fuzz will not waste its and our time finding overly large inputs.
Diffstat (limited to 'src/journal-remote')
-rw-r--r--src/journal-remote/fuzz-journal-remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/fuzz-journal-remote.c b/src/journal-remote/fuzz-journal-remote.c
index dd7884ee9a..db10c2b012 100644
--- a/src/journal-remote/fuzz-journal-remote.c
+++ b/src/journal-remote/fuzz-journal-remote.c
@@ -24,7 +24,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
_cleanup_(journal_remote_server_destroy) RemoteServer s = {};
int r;
- if (size <= 2 || size > 65536)
+ if (outside_size_range(size, 3, 65536))
return 0;
if (!getenv("SYSTEMD_LOG_LEVEL"))