This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory bug in SnappyNifSink::Append
Previously `SnappyNifSink` assumed that `GetAppendBuffer` was always called before `Append`. This turned out to be an invalid assumption. This was definitely in the land of "How did that even work?". The simple fix is simple. This also pre-allocates the write buffer to 8192 bytes which just saves us from the initial re-allocation on first `Append` since we allocated a zero length buffer initially.
- Loading branch information
Showing 1 changed file with 19 additions and 10 deletions.