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)
committerMichael Biebl <biebl@debian.org>
Sat, 12 Jan 2019 20:49:44 +0000 (20:49 +0000)
commit9231883397c55e90a657713a0195e959fb3022d6
tree35742f4ebc53ec9e7b6e3d318ccf6f1844b33f52
parent697720b9fc238fa0cb03c0d3b4230df56ce6ddb4
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