basic/journal-importer: reject any field names that journald would reject
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 20 May 2018 20:45:22 +0000 (22:45 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 31 May 2018 12:30:23 +0000 (14:30 +0200)
commit1e448731f51865184ba988b246d02823a9284d6c
tree1fd5a78cf210de23e88eec1ef953425f1b315874
parent9be391d4dbe1e5f83e44486c1a2a91ab0327be6c
basic/journal-importer: reject any field names that journald would reject

$ build-asan/fuzz-journal-remote test/fuzz-regressions/fuzz-journal-remote/crash-96dee870ea66d03e89ac321eee28ea63a9b9aa45
...
Ignoring invalid field: "S\020"
Ignoring invalid field: "S\020"
...

If the field name includes nul bytes, we won't print all of the name.
But that seems enough of a corner case to ignore.
src/basic/journal-importer.c