This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new bb4b95c68f avfilter/vf_vidstabtransform: close the transforms file on
parse failure
bb4b95c68f is described below
commit bb4b95c68fd4d6e0051d4436f64cea06640e6c00
Author: zhang xingxing <[email protected]>
AuthorDate: Mon Sep 21 06:02:22 2026 +0200
Commit: michaelni <[email protected]>
CommitDate: Sun Oct 11 00:44:16 2026 +0000
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);
}
}
--
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]