Skip to content

upipe_ts_scte35_decoder: fix use-after-unmap in command handlers#1168

Closed
kierank wants to merge 1 commit into
Upipe:masterfrom
kierank:scte
Closed

upipe_ts_scte35_decoder: fix use-after-unmap in command handlers#1168
kierank wants to merge 1 commit into
Upipe:masterfrom
kierank:scte

Conversation

@kierank

@kierank kierank commented May 28, 2026

Copy link
Copy Markdown
Contributor

uref_ts_scte35_set_message reads from the scte35 pointer obtained via uref_block_read. Call it before uref_block_unmap in all three command handlers so the pointer is still valid when the data is copied.

uref_ts_scte35_set_message reads from the scte35 pointer obtained via
uref_block_read. Call it before uref_block_unmap in all three command
handlers so the pointer is still valid when the data is copied.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cmassiot

cmassiot commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

uref_ts_scte35_set_message does not write to the buffer but to an udict, so it can be done after the unmap.

@kierank kierank closed this Jun 2, 2026
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