]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: Fix entry array iteration corruption checks 22098/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 12 Jan 2022 18:10:54 +0000 (18:10 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 14 Jan 2022 11:33:32 +0000 (11:33 +0000)
commit8d801e35cb155faa08235a5af8b4d6ad60715837
tree4eab1eef0253f22bd0658474be0cdc72827e0b65
parentf2eceb5268f0d26d53db5f9dad318dd45fd900bd
journal: Fix entry array iteration corruption checks

Previously, we'd try to handle corruption by bumping the index even
if it was an entry array object that was corrupted (which we can't
deal with).

Now, we only try to deal with corrupted entry objects by moving the
corruption handling into generic_array_get().

On top, we also add an additional check for -EADDRNOTAVAIL which can
also be caused by corrupted journal data.
src/libsystemd/sd-journal/journal-file.c