aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-01-24 23:11:10 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-05 16:47:53 +0100
commit9547034f9120187e23ad76424dd4d70247e62212 (patch)
tree08641fb0270c3df98c7a6bd3c9984ff40bab1bfd
parent62c9beda0c189db5cb61fa772057e3af9521f293 (diff)
downloadffmpeg-9547034f9120187e23ad76424dd4d70247e62212.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> (cherry picked from commit c10350358da58600884292c08a8690289b81de29) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/gifdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/gifdec.c b/libavcodec/gifdec.c
index e5e84aea12..a916dfe8e7 100644
--- a/libavcodec/gifdec.c
+++ b/libavcodec/gifdec.c
@@ -118,7 +118,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) {