]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fuzz-unit-file: add one more test case 11105/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 Dec 2018 15:49:20 +0000 (16:49 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Dec 2018 10:57:26 +0000 (11:57 +0100)
There seems to be no error per se. RequiresMountsFor=%s%s%s..%s%s%s is expanded to
RequiresMountsFor=/bin/zsh/bin/zsh/bin/zsh/bin/zsh/..., which takes a bit of time,
and then we iterate over this a few times, creating a hashmap with a hashmap
for each prefix of the path, each with one item pointing back to the original unit.
Takes about 0.8 s on my machine.

test/fuzz/fuzz-unit-file/oss-fuzz-11569 [new file with mode: 0644]

diff --git a/test/fuzz/fuzz-unit-file/oss-fuzz-11569 b/test/fuzz/fuzz-unit-file/oss-fuzz-11569
new file mode 100644 (file)
index 0000000..c49b8c6
Binary files /dev/null and b/test/fuzz/fuzz-unit-file/oss-fuzz-11569 differ