diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-10-16 12:13:04 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2022-04-13 23:39:50 +0200 |
commit | b239ccff7db0d418a74adcebfb1f2304f9a2f1f0 (patch) | |
tree | e5035e85784b4b3298e0867d2f8ccee50ecdd475 | |
parent | 32a384519a57ad850789636c4c686091a53ce217 (diff) | |
download | ffmpeg-b239ccff7db0d418a74adcebfb1f2304f9a2f1f0.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_gblur.c b/libavfilter/vf_gblur.c index fd901e20d4..0b0274782a 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); |