]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fuzz-systemctl: adjust size limit
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 7 Dec 2022 02:18:07 +0000 (11:18 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 7 Dec 2022 08:56:50 +0000 (09:56 +0100)
Follow-up for 719b7d4dc2bde3a9257e9f6fdcf03239ee2324b6.

The size of the current reproducer is 250KB. Hence, 16KB should be
enough, but still we can test most arguments within the size.

Hopefully fixes oss-fuzz#53552.

src/systemctl/fuzz-systemctl-parse-argv.c

index 52574ba9968f99409d85a904af47c1ed8a257a66..606f602c3acf3720c06e8373a2a736c2238a3028 100644 (file)
@@ -19,7 +19,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
         _cleanup_close_ int orig_stdout_fd = -1;
         int r;
 
-        if (size > 4*1024*1024)
+        if (size > 16*1024)
                 return 0; /* See the comment below about the limit for strv_length(). */
 
         /* We don't want to fill the logs with messages about parse errors.