Skip to content

Fix incorrect error handling - #1264

Merged
cmassiot merged 29 commits into
Upipe:masterfrom
nto:error-handling
Oct 9, 2026
Merged

cmassiot merged 29 commits into
Upipe:masterfrom
nto:error-handling

Conversation

@nto

@nto nto commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@nto
nto requested a review from quarium October 6, 2026 17:30
Comment thread lib/upipe-modules/upipe_audiocont.c Outdated
Comment thread lib/upipe-modules/upipe_videocont.c Outdated
nto added 23 commits October 7, 2026 15:09
The previous input name was freed before duplicating the new one, but
the pointer was left dangling if strdup failed, so it was used and
freed again later.
The flow definition was freed once passed to setflowdef, then freed
again on the error path if the rtpd inner pipe could not be allocated.
If strdup fails, input_name still points to a freed string, which is
then returned by get_input and freed again on the next set_input or when
the pipe is freed.
When the gallery picture buffer could not be allocated, the duplicated
gallery uref was freed but the pipe kept a pointer to it, which was
then used by the next picture and freed again in upipe_sws_thumbs_free.
@nto
nto requested a review from quarium October 7, 2026 14:51
@cmassiot
cmassiot merged commit b156914 into Upipe:master Oct 9, 2026
7 checks passed
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.

3 participants