-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enforce UTF-8 encoding for input bytes (#115)
* Detect UTF-8 for vtt/srt, error if encoded otherwise * Switch to isValidUTF8Reader * Remove isValidUTF8Reader function * Enforce valid UTF8 on each SRT and WebVTT line * Add benchmark tests for webvtt and srt * Update benchmark test * Add non-utf-8 tests and files * Remove benchmarks
- Loading branch information
1 parent
a3932fd
commit 80e6dcf
Showing
6 changed files
with
24 additions
and
0 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
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.
Binary file not shown.
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
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