Skip to content

Ensure enc_frm_finish() is called on error paths in oapve_encode() - #295

Open
fkyslov wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
fkyslov:fix-enc-frm-finish-on-error
Open

fkyslov wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
fkyslov:fix-enc-frm-finish-on-error

Conversation

@fkyslov

@fkyslov fkyslov commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Ensures enc_frm_finish() is called on error paths in oapve_encode() (src/oapv.c):

  • Release input and reconstruction imgb reference counts via enc_frm_finish(ctx, stat) when enc_frame() or MD5 payload insertion returns an error after enc_frm_prepare().

Testing

  • Verified all 24 ctest unit/conformance tests pass with AddressSanitizer and UndefinedBehaviorSanitizer.

Release input and reconstruction frame buffer references via enc_frm_finish() when enc_frame() or MD5 metadata insertion fails after enc_frm_prepare().

Signed-off-by: Fyodor Kyslov <kyslov@google.com>
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.

1 participant