PR #24608 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24608 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24608.patch
Found-by: zhang xingxing Fixes: FILE leak Fixes: iXnhUsbrxJo8 Fixes: swarm-File-descriptor-leak-on-transform-file-parse-failure-4e8d03 >From 037bb6b2eca60ec43aceb9a2edd5007339d7290d Mon Sep 17 00:00:00 2001 From: zhang xingxing <[email protected]> Date: Mon, 21 Sep 2026 06:02:22 +0200 Subject: [PATCH] avfilter/vf_vidstabtransform: close the transforms file on parse failure Found-by: zhang xingxing Fixes: FILE leak Fixes: iXnhUsbrxJo8 Fixes: swarm-File-descriptor-leak-on-transform-file-parse-failure-4e8d03 --- libavfilter/vf_vidstabtransform.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/vf_vidstabtransform.c b/libavfilter/vf_vidstabtransform.c index 012521b9c0..96ff0cdc3d 100644 --- a/libavfilter/vf_vidstabtransform.c +++ b/libavfilter/vf_vidstabtransform.c @@ -204,11 +204,13 @@ static int config_input(AVFilterLink *inlink) // calculate the actual transforms from the local motions if (vsLocalmotions2Transforms(td, &mlms, &tc->trans) != VS_OK) { av_log(ctx, AV_LOG_ERROR, "calculating transformations failed\n"); + fclose(f); return AVERROR(EINVAL); } } else { // try to read old format if (!vsReadOldTransforms(td, f, &tc->trans)) { /* read input file */ av_log(ctx, AV_LOG_ERROR, "error parsing input file %s\n", tc->input); + fclose(f); return AVERROR(EINVAL); } } -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
