diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-08-26 23:54:31 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-08-27 21:05:28 -0400 |
commit | 0f99f74a14ef193c1ebde687c5cc76e1d67b85ef (patch) | |
tree | 41d8d75a5ef374a15a7bf3d26dd4da12476f09af /src/journal/journal-file.c | |
parent | 57cd09acf2c63a414aa2131c00a2b3f600eb0133 (diff) |
sd-journal: verify that object start with the field name
If the journal is corrupted, we might return an object that does
not start with the expected field name and/or is shorter than it
should.
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r-- | src/journal/journal-file.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 986e94de39..7286e14ddb 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -425,7 +425,6 @@ int journal_file_move_to_object(JournalFile *f, int type, uint64_t offset, Objec if (!VALID64(offset)) return -EFAULT; - r = journal_file_move_to(f, type_to_context(type), false, offset, sizeof(ObjectHeader), &t); if (r < 0) return r; |