diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-24 23:11:10 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-24 23:11:44 +0100 |
commit | c10350358da58600884292c08a8690289b81de29 (patch) | |
tree | 54fc3c5fc70add0f1837d4d97e2cb54fb7ade9c2 /libavcodec/gifdec.c | |
parent | fc8e8e5bef323ffa20d391a9a19ba5eb31f673c5 (diff) | |
download | ffmpeg-c10350358da58600884292c08a8690289b81de29.tar.gz |
gifdec: gif_copy_img_rect: Fix end pointer
Fixes out of array accesses
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 51e8422951..2d9f8b4f3d 100644 --- a/libavcodec/gifdec.c +++ b/libavcodec/gifdec.c @@ -119,7 +119,7 @@ static void gif_copy_img_rect(const uint32_t *src, uint32_t *dst, const uint32_t *src_px, *src_pr, *src_py = src + y_start, *dst_py = dst + y_start; - const uint32_t *src_pb = src_py + t * linesize; + const uint32_t *src_pb = src_py + h * linesize; uint32_t *dst_px; for (; src_py < src_pb; src_py += linesize, dst_py += linesize) { |