diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-12-20 17:45:04 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-12-20 17:46:05 +0000 |
commit | c004de0b1c5b44849f9619910c173d1a2204c16e (patch) | |
tree | ee0a5d01544265b8c7b97f30ed0f3c540c5d1759 /libavcodec/gifdec.c | |
parent | 103410d67ec9035b9fc04a0685d6d921bdb7524e (diff) | |
download | ffmpeg-c004de0b1c5b44849f9619910c173d1a2204c16e.tar.gz |
gifdec: fix invalid write in giff_fill_rect
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec/gifdec.c')
-rw-r--r-- | libavcodec/gifdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c index 53b1bb86ae..59574e934b 100644 --- a/libavcodec/gifdec.c +++ b/libavcodec/gifdec.c @@ -99,7 +99,7 @@ static void gif_fill_rect(AVFrame *picture, uint32_t color, int l, int t, int w, { const int linesize = picture->linesize[0] / sizeof(uint32_t); const uint32_t *py = (uint32_t *)picture->data[0] + t * linesize; - const uint32_t *pr, *pb = py + (t + h) * linesize; + const uint32_t *pr, *pb = py + h * linesize; uint32_t *px; for (; py < pb; py += linesize) { |