From: Lennart Poettering Date: Wed, 20 Apr 2022 14:08:36 +0000 (+0200) Subject: journal-verify: tighten check for compression of non-objects X-Git-Tag: v251-rc2~59^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F23131%2Fhead;p=thirdparty%2Fsystemd.git journal-verify: tighten check for compression of non-objects --- diff --git a/src/libsystemd/sd-journal/journal-verify.c b/src/libsystemd/sd-journal/journal-verify.c index 3b2b72f0c75..21a5b1ca9e1 100644 --- a/src/libsystemd/sd-journal/journal-verify.c +++ b/src/libsystemd/sd-journal/journal-verify.c @@ -148,7 +148,7 @@ static int journal_file_object_verify(JournalFile *f, uint64_t offset, Object *o * possible field values. It does not follow any references to * other objects. */ - if ((o->object.flags & OBJECT_COMPRESSED_XZ) && + if ((o->object.flags & _OBJECT_COMPRESSED_MASK) != 0 && o->object.type != OBJECT_DATA) { error(offset, "Found compressed object of type %s that isn't of type data, which is not allowed.",