chiark / gitweb /
journal: assume that next entry is after previous entry
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 27 Feb 2014 05:07:29 +0000 (00:07 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Mar 2014 05:17:27 +0000 (00:17 -0500)
commitfb099c8d2af6620db2709e826a258089d10cdfe8
tree1af39090260dd92db522636b7f3d86d69b95ef6f
parent32f244309902243a20cff5d5d1abb1c888b5fb21
journal: assume that next entry is after previous entry

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 first one. journal_file_next_entry ends up in an infinite loop.

https://bugzilla.redhat.com/show_bug.cgi?id=1047039
src/journal/journal-file.c