Commit 9321e935 authored by Paul B Mahol's avatar Paul B Mahol

gifdec: fix invalid write in gif_copy_img_rect

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent c004de0b
......@@ -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 + h) * linesize;
const uint32_t *src_pb = src_py + t * linesize;
uint32_t *dst_px;
for (; src_py < src_pb; src_py += linesize, dst_py += linesize) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment