]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-journal: check .next_entry_array_offset earlier
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 2 May 2023 16:29:08 +0000 (01:29 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 2 May 2023 21:41:21 +0000 (06:41 +0900)
commitb5335da7a54d6597a1539b56b5a0cb1f8d36dfdd
tree939717022d810033c96855591b6bb566a28a4052
parent845824acddf2e7e08c94afe7cfee6e50a682c947
sd-journal: check .next_entry_array_offset earlier

Then, if it is invalid, refuse to use the entry array object.

Follow-up for a8fbcc0e3c033a43e511550052cace6b0dcf3df7.
Fixes #27489.
src/libsystemd/sd-journal/journal-file.c