diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-13 18:27:27 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-13 18:28:07 +0200 |
commit | a3508cc3fe643a8adad6a82a60bece3ea3c5dc63 (patch) | |
tree | 2c24b0bad1e3a903569974c6012dfc18a7cc2ef3 | |
parent | 26227d91865ddfbfe35c9ff84853cc469e1c7daf (diff) | |
download | ffmpeg-a3508cc3fe643a8adad6a82a60bece3ea3c5dc63.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>
-rw-r--r-- | libavcodec/webp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/webp.c b/libavcodec/webp.c index e0cd72d03a..8281cc45b4 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); |