Skip to content
Snippets Groups Projects
Commit b239ccff authored by Paul B Mahol's avatar Paul B Mahol Committed by Michael Niedermayer
Browse files

avfilter/vf_gblur: fix heap-buffer overflow


Fixes #8282

(cherry picked from commit 64a80588)
Signed-off-by: default avatarMichael Niedermayer <michael@niedermayer.cc>
parent 32a38451
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment