This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segmentation fault in vlog.Read (header.Decode) (#1150)
This commit fixes the segmentation fault in header.Decode that would happen if we tried to read from a file that was mmapped but didn't actually have any data in it. This commit fixes the issue by checking the read is within the actual file size. See hypermodeinc/badger#1150 for all the details. Fixes hypermodeinc/badger#1136 and hypermodeinc/badger#1131
- Loading branch information
Ibrahim Jarif
authored
Dec 10, 2019
1 parent
7728439
commit b9e5423
Showing
1 changed file
with
13 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