bus-message: let's always use -EBADMSG when the message is bad
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 9 Jul 2018 09:12:33 +0000 (11:12 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 2 Oct 2018 09:53:20 +0000 (11:53 +0200)
commit69bd42ca072dfb2f7603b1f82053063293ab54b5
treefee131cfc4626e97bb553708ae45024b3ca5bca4
parentec6bda56cbca9509b1abde1122645630caca877c
bus-message: let's always use -EBADMSG when the message is bad

-EINVAL means the arguments were somehow wrong, so translate the code we get
internally into -EBADMSG when returning.
src/libsystemd/sd-bus/bus-message.c
test/fuzz/fuzz-bus-message/crash-c1b37b4729b42c0c05b23cba4eed5d8102498a1e [new file with mode: 0644]