]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fuzz-systemctl-parse-argv: add two corpus files to test compat parsers 42088/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 13 May 2026 22:34:03 +0000 (00:34 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Thu, 14 May 2026 07:38:10 +0000 (09:38 +0200)
Looking at the corpus examples, I'm not sure the fuzzer even went into
the compat parsers. None of the files have argv[0] that'd cause
invoked_as() to go into the compat paths. So add the files to provide
a quick test and possibly bias the fuzzer search into the right
direction.

test/fuzz/fuzz-systemctl-parse-argv/halt.input [new file with mode: 0644]
test/fuzz/fuzz-systemctl-parse-argv/shutdown.input [new file with mode: 0644]

diff --git a/test/fuzz/fuzz-systemctl-parse-argv/halt.input b/test/fuzz/fuzz-systemctl-parse-argv/halt.input
new file mode 100644 (file)
index 0000000..26b15bd
Binary files /dev/null and b/test/fuzz/fuzz-systemctl-parse-argv/halt.input differ
diff --git a/test/fuzz/fuzz-systemctl-parse-argv/shutdown.input b/test/fuzz/fuzz-systemctl-parse-argv/shutdown.input
new file mode 100644 (file)
index 0000000..cc62a98
Binary files /dev/null and b/test/fuzz/fuzz-systemctl-parse-argv/shutdown.input differ