]> git.ipfire.org Git - thirdparty/systemd.git/commit
manager: tighten incoming notification message checks
authorLennart Poettering <lennart@poettering.net>
Fri, 7 Oct 2016 10:14:33 +0000 (12:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 7 Oct 2016 10:14:33 +0000 (12:14 +0200)
commit875ca88da576b4f7c412f6a5e1fc642ba3bd288a
tree96af1a8b2692bee96f7e48619cfb92826abd77fd
parent045a3d5989f7565dc496013a9e96d95d86a12cc8
manager: tighten incoming notification message checks

Let's not accept datagrams with embedded NUL bytes. Previously we'd simply
ignore everything after the first NUL byte. But given that sending us that is
pretty ugly let's instead complain and refuse.

With this change we'll only accept messages that have exactly zero or one NUL
bytes at the very end of the datagram.
src/core/manager.c