-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow reading OBUs with size > 2 Megabytes.
- As per the spec this is not permitted. - Beware of edge-cases because the 2 Megabyte limit includes the size of `obu_size` and the initial header byte. - Implement by unifying `ValidateObuIsUnderTwoMegabytes` as used by the writer. - The writer only knows the size of `obu_size` based on the `LebGenerator`. The reader knows the size based on how it was serialized in the bytestream. Unify internals so they both can use the same function. - Drive-by: Updates some variable names and documentation which are accurate as of v1.1.0. Remove some unused args. PiperOrigin-RevId: 696501349
- Loading branch information
Showing
3 changed files
with
151 additions
and
146 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
Oops, something went wrong.