Skip to content
Commit 98b81297 authored by Herongguang (Stephen)'s avatar Herongguang (Stephen) Committed by Michael Roth
Browse files

vnc-enc-tight: fix off-by-one bug



In tight_encode_indexed_rect32, buf(or src)’s size is count. In for loop,
the logic is supposed to be that i is an index into src, i should be
incremented when incrementing src.

This is broken when src is incremented but i is not before while loop,
resulting in off-by-one bug in while loop.

Signed-off-by: default avatarHe Rongguang <herongguang.he@huawei.com>
Message-id: 5784B8EB.7010008@huawei.com
Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 3f7e51bc)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 8ef7abec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment