forked from webmproject/libvpx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform bounds checks in vpx_write_bit_buffer
Add the `size` and `error` members to the vpx_write_bit_buffer struct. Add the vpx_wb_init() and vpx_wb_has_error() functions. Instances of the vpx_write_bit_buffer struct are only allocated in the vp9_pack_bitstream() function. So vp9_pack_bitstream() is the only function outside vpx_dsp/bitwriter_buffer.* that needs updating. This CL completes the work of adding output buffer bounds checks to vp9/encoder/vp9_bitstream.c. Bug: webm:1844 Change-Id: I6b362be572852ee51d96023b35bfb334faada7e1 (cherry picked from commit d790001)
- Loading branch information
1 parent
3bfd83a
commit 58955cf
Showing
3 changed files
with
46 additions
and
3 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
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