Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear the right number of bytes in StreamBuffer
The wrong number of bytes was being cleared in StreamBuffer::grow. That could lead to memory access out of bounds.
- Loading branch information
34cf047
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old content from offs until offs+len is moved to the beginning (by offs). Thus off bytes need to be cleared: