This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 8f1106b65d5e7e9c48d1ff39a6f8907eb9ad6986 Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Oct 13 06:06:59 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Tue Oct 20 20:41:50 2026 +0000 swscale: allocate every plane the frame pool provides Fixes: NwCWHv3RIJff Fixes: NULL pointer dereference NULL pointer dereference Replicated through API with ASAN Found during triage of the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24851 --- libswscale/swscale.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 8d92c57c64..3b2c63cff0 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1282,8 +1282,7 @@ static int frame_alloc_buffers(SwsContext *sws, AVFrame *frame) buf_start++; int nb_bufs = 0; - const int nb_planes = av_pix_fmt_count_planes(frame->format); - for (int i = 0; i < nb_planes; i++) { + for (int i = 0; i < 4 && pool->pools[i]; i++) { if (frame->data[i]) continue; /* already ref'd by frame_ref */ -- 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]
