-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
file: treat unexpected EOF as corrupted.
Fixes potentially infinite loop when compacting, if there's 1 stray byte left at the end of the file. With the fuzz config, the record header is 2 bytes. Reading the record header would return EOF, making compaction think it's finished, but the 1 byte would get left there so the file wouldn't go away, so compaction didn't actually make progress.
- Loading branch information
Showing
1 changed file
with
73 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters