journal-remote: set a limit on the number of fields in a message
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 Dec 2018 09:48:10 +0000 (10:48 +0100)
committerMartin Pitt <mpitt@debian.org>
Sun, 27 Jan 2019 21:33:07 +0000 (21:33 +0000)
commit1b7f037c463e5074b554411a493309184b5e23a2
tree496501ad11b32f4550df2b0dd798cc4187ffcb51
parentf7a50b9b7a587e4263b24edca1d86b95dabb4554
journal-remote: set a limit on the number of fields in a message

Existing use of E2BIG is replaced with ENOBUFS (entry too long), and E2BIG is
reused for the new error condition (too many fields).

This matches the change done for systemd-journald, hence forming the second
part of the fix for CVE-2018-16865
(https://bugzilla.redhat.com/show_bug.cgi?id=1653861).

(cherry picked from commit ef4d6abe7c7fab6cbff975b32e76b09feee56074)
(cherry picked from commit 1c9232336460d0f004156964df1478e4d3ddac97)

Gbp-Pq: Name journal-remote-set-a-limit-on-the-number-of-fields-in-a-m.patch
src/journal-remote/journal-remote-main.c
src/journal-remote/journal-remote.c
src/shared/journal-importer.c