diff mbox series

[FFmpeg-devel,3/6] avfilter/vf_tpad: Dont clone NULL

Message ID 20240710225012.691594-3-michael@niedermayer.cc
State New
Headers show
Series [FFmpeg-devel,1/6] avfilter/vf_tiltandshift: Free dst on error | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Michael Niedermayer July 10, 2024, 10:50 p.m. UTC
untested

Fixes: CID1440836 Dereference after null check

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
---
 libavfilter/vf_tpad.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Michael Niedermayer Aug. 11, 2024, 10:42 a.m. UTC | #1
On Thu, Jul 11, 2024 at 12:50:09AM +0200, Michael Niedermayer wrote:
> untested
> 
> Fixes: CID1440836 Dereference after null check

will apply patchset except this


[...]
diff mbox series

Patch

diff --git a/libavfilter/vf_tpad.c b/libavfilter/vf_tpad.c
index 72d0bf338fe..a230a50022c 100644
--- a/libavfilter/vf_tpad.c
+++ b/libavfilter/vf_tpad.c
@@ -132,6 +132,7 @@  static int activate(AVFilterContext *ctx)
             s->cache_start = ff_inlink_peek_frame(inlink, 0);
         } else if (!s->cache_start) {
             FF_FILTER_FORWARD_WANTED(outlink, inlink);
+            return FFERROR_NOT_READY;
         }
         frame = av_frame_clone(s->cache_start);
         if (!frame)