[FFmpeg-cvslog] avcodec/webp: Add missing input padding

Michael Niedermayer git at videolan.org
Sat May 13 22:38:07 EEST 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat May 13 18:27:27 2017 +0200| [a3508cc3fe643a8adad6a82a60bece3ea3c5dc63] | committer: Michael Niedermayer

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 at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a3508cc3fe643a8adad6a82a60bece3ea3c5dc63
---

 libavcodec/webp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 



More information about the ffmpeg-cvslog mailing list