aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-10-16 12:13:04 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2022-04-09 22:19:40 +0200
commitd5cb859665d62658d7859f345650fcb38528c4ab (patch)
tree841a7ce827b10378aedc2913d32e87df83d4e1fb
parent439645004bb672a29145621549cb87acdb2f84db (diff)
downloadffmpeg-d5cb859665d62658d7859f345650fcb38528c4ab.tar.gz
avfilter/vf_gblur: fix heap-buffer overflow
Fixes #8282 (cherry picked from commit 64a805883d7223c868a683f0030837d859edd2ab) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavfilter/vf_gblur.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_gblur.c b/libavfilter/vf_gblur.c
index f77a3fffc3..6c0ae78d01 100644
--- a/libavfilter/vf_gblur.c
+++ b/libavfilter/vf_gblur.c
@@ -222,7 +222,7 @@ static int config_input(AVFilterLink *inlink)
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);