-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zstd: Fix back-referenced offset (#793)
Since we expand backwards early, we may be in a situation where best.s+2 has already been indexed. This will result in picking up a 0 or negative offset, which leads to corrupted data. Skip this check if best.s is less than or equal to s-2. Regression from #784 (not released)
- Loading branch information
Showing
2 changed files
with
29 additions
and
22 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
Binary file not shown.