Skip to content

libavc: Add missing error check in cavlc_parse4x4coeff - #165

Merged
harishdm merged 1 commit into
ittiam-systems:mainfrom
harishdm:async
Nov 28, 2026
Merged

harishdm merged 1 commit into
ittiam-systems:mainfrom
harishdm:async

Conversation

@harishdm

Copy link
Copy Markdown
Member

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)

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)
@harishdm
harishdm merged commit ee74357 into ittiam-systems:main Nov 28, 2026
10 checks passed
@harishdm
harishdm deleted the async branch November 28, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants