Re: [systemd-devel] [PATCH 1/2] journal: assume that next entry is after previous entry

2014-03-04 Thread Lennart Poettering
On Thu, 27.02.14 00:57, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: /* And jump to it */ -return generic_array_get(f, - le64toh(f-header-entry_array_offset), - i, -

[systemd-devel] [PATCH 1/2] journal: assume that next entry is after previous entry

2014-02-26 Thread Zbigniew Jędrzejewski-Szmek
With a corrupted file, we can get in a situation where two entries in the entry array point to the same object. Then journal_file_next_entry will find the first one using generic_arrray_bisect, and try to move to the second one, but since the address is the same, generic_array_get will return the