]> git.ipfire.org Git - thirdparty/systemd.git/commit
journald: when processing a native message, bail more quickly on overbig messages
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Dec 2018 21:50:39 +0000 (22:50 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 Jan 2019 22:41:53 +0000 (23:41 +0100)
commit964ef920ea6735d39f856b05fd8ef451a09a6a1d
tree195bfb8800693862a73ac68d1a66e13554500646
parent052c57f132f04a3cf4148f87561618da1a6908b4
journald: when processing a native message, bail more quickly on overbig messages

We'd first parse all or most of the message, and only then consider if it
is not too large. Also, when encountering a single field over the limit,
we'd still process the preceding part of the message. Let's be stricter,
and check size limits early, and let's refuse the whole message if it fails
any of the size limits.
src/journal/journald-native.c