aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-13 18:27:27 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-14 00:21:50 +0200
commit479bb1cacd25bd2b1fcaebbf716d3ffb3960453e (patch)
treece471ab2c458a9677d8abb3526a7aa1ec884bd44
parentb0f3f56bbcec5ce0de2ac90d62692e6996ce010e (diff)
downloadffmpeg-479bb1cacd25bd2b1fcaebbf716d3ffb3960453e.tar.gz
avcodec/webp: Add missing input padding
Fixes: 1536/clusterfuzz-testcase-minimized-5973925404082176 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit a3508cc3fe643a8adad6a82a60bece3ea3c5dc63) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/webp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/webp.c b/libavcodec/webp.c
index b2ae5bcbba..e2769c0bf9 100644
--- a/libavcodec/webp.c
+++ b/libavcodec/webp.c
@@ -1043,7 +1043,7 @@ static int apply_color_indexing_transform(WebPContext *s)
uint8_t *line;
int pixel_bits = 8 >> pal->size_reduction;
- line = av_malloc(img->frame->linesize[0]);
+ line = av_malloc(img->frame->linesize[0] + AV_INPUT_BUFFER_PADDING_SIZE);
if (!line)
return AVERROR(ENOMEM);