-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stream): Don't break out of UTF8 character part-way
This fixes a soundness issue where we create invalid UTF-8 data and then do a `str::from_unchecked` on release builds. This ensures we ignore up-to the start of UTF-8 sequences and not mid-way through. Fixes #156
- Loading branch information
Showing
1 changed file
with
4 additions
and
18 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