Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix out of bounds read/write in Snappy decompressor
In the slow literal copy path, it wasn't validating that the literal fit within the input buffer, so the call to copyMemory could read from out of bounds and cause a crash. When copying a match, it wasn't validating that the match fit within the output buffer in both branches (slow & fast path), so the operation could write outside of the output buffer if the match length was corrupted.
- Loading branch information