PR #23047 opened by michaelni
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23047
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23047.patch

Fixes: memleaks
Fixes: 
501913473/clusterfuzz-testcase-minimized-ffmpeg_BSF_SMPTE436M_TO_EIA608_fuzzer-5607133705207808

Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <[email protected]>


>From 17dd3633900a480ce3ac03f01c5f020cc11bd051 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <[email protected]>
Date: Fri, 8 May 2026 03:44:54 +0200
Subject: [PATCH] avcodec/bsf/smpte436m_to_eia608: Use goto fail in
 ff_smpte436m_to_eia608_filter()

Fixes: memleaks
Fixes: 
501913473/clusterfuzz-testcase-minimized-ffmpeg_BSF_SMPTE436M_TO_EIA608_fuzzer-5607133705207808

Found-by: continuous fuzzing process 
https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/bsf/smpte436m_to_eia608.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/bsf/smpte436m_to_eia608.c 
b/libavcodec/bsf/smpte436m_to_eia608.c
index 529ae88794..268108c9a8 100644
--- a/libavcodec/bsf/smpte436m_to_eia608.c
+++ b/libavcodec/bsf/smpte436m_to_eia608.c
@@ -73,7 +73,7 @@ static int ff_smpte436m_to_eia608_filter(AVBSFContext *ctx, 
AVPacket *out)
         return 0;
     }
     if (ret != AVERROR_EOF)
-        return ret;
+        goto fail;
     ret = AVERROR(EAGAIN);
 
 fail:
-- 
2.52.0

_______________________________________________
ffmpeg-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to