]> git.ipfire.org Git - thirdparty/systemd.git/commit
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)
commita5dfc36ce60bf57ea319756a07a4a8a9f2a58b69
tree295952435958daddcb1a26e13ba6a3cb8ed2ba0e
parent4cb06c5949eba752f87dd6ad74620cc0e5cabf4a
fuzz-unit-file: add one more test case

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]