Repository navigation
libavc: Add missing error check in cavlc_parse4x4coeff - #165
Merged
Merged
Conversation
ih264d_cavlc_parse4x4coeff_n8 ignored the return value of the inner function pf_cavlc_4x4res_block, which could lead to a desync between the parsing and processing coefficient pointers if an error occurred during parsing. This desync can cause a heap Out-Of-Bounds read. This fix adds the missing error check, matching the pattern in the sister function ih264d_cavlc_parse4x4coeff_n0to7. Bug: 512581879 Test: m libavcdec avc_dec_fuzzer Flag: EXEMPT BUGFIX Autogenerated by MendIt (go/androidmendit) Change-Id: Ia3baecc4208f701ce42543281ddfe223516071c9 (cherry picked from commit a363dbbf4faf75c0f29e4f0a95a7927f6854eaef)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ih264d_cavlc_parse4x4coeff_n8 ignored the return value of the inner function pf_cavlc_4x4res_block, which could lead to a desync between the parsing and processing coefficient pointers if an error occurred during parsing. This desync can cause a heap Out-Of-Bounds read.
This fix adds the missing error check, matching the pattern in the sister function ih264d_cavlc_parse4x4coeff_n0to7.
Bug: 512581879
Test: m libavcdec avc_dec_fuzzer
Flag: EXEMPT BUGFIX
Autogenerated by MendIt (go/androidmendit)
Change-Id: Ia3baecc4208f701ce42543281ddfe223516071c9 (cherry picked from commit a363dbbf4faf75c0f29e4f0a95a7927f6854eaef)