]> git.ipfire.org Git - thirdparty/systemd.git/commit
fuzz-systemctl-parse-argv: avoid "leak" of bus object
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Feb 2021 07:48:37 +0000 (08:48 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 16 Feb 2021 07:57:12 +0000 (08:57 +0100)
commita16d732a51f93853f2595ead7c14632646610d75
tree5bb3448f725ccf258867964dc21ed2a9e1935dfc
parente557c82dd5867a790d37f0a165feb0570712516b
fuzz-systemctl-parse-argv: avoid "leak" of bus object

Memory sanitizer would report leaked memory from --boot-load-entry=help.

Maybe we should disable all bus connections from the fuzzer? It seems not
appropriate to communicate with logind. OTOH, in a real fuzzing environment
this call should just fail, so maybe that's OK.
src/systemctl/fuzz-systemctl-parse-argv.c