File ffmpeg-CVE-2020-20891.patch of Package ffmpeg.30521

diff --unified --recursive --text --new-file --color ffmpeg-3.4.2.old/libavfilter/vf_gblur.c ffmpeg-3.4.2.new/libavfilter/vf_gblur.c
--- ffmpeg-3.4.2.old/libavfilter/vf_gblur.c	2021-10-13 13:48:52.898938526 +0800
+++ ffmpeg-3.4.2.new/libavfilter/vf_gblur.c	2021-10-13 16:38:02.221723080 +0800
@@ -222,7 +222,7 @@
 
     s->nb_planes = av_pix_fmt_count_planes(inlink->format);
 
-    s->buffer = av_malloc_array(inlink->w, inlink->h * sizeof(*s->buffer));
+    s->buffer = av_malloc_array(FFALIGN(inlink->w, 16), FFALIGN(inlink->h, 16) * sizeof(*s->buffer));
     if (!s->buffer)
         return AVERROR(ENOMEM);
 
openSUSE Build Service is sponsored by