diff options
author | Herongguang (Stephen) | 2016-07-12 11:31:23 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2016-07-15 12:11:55 +0200 |
commit | 3f7e51bca3ef2d64c53b35ab9916c99e4a9e3c69 (patch) | |
tree | 4dba985541676ba4f1bbe65fc195acbbd26209af /bsd-user/syscall.c | |
parent | vnc: make sure we finish disconnect (diff) | |
download | qemu-3f7e51bca3ef2d64c53b35ab9916c99e4a9e3c69.tar.gz qemu-3f7e51bca3ef2d64c53b35ab9916c99e4a9e3c69.tar.xz qemu-3f7e51bca3ef2d64c53b35ab9916c99e4a9e3c69.zip |
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: He Rongguang <herongguang.he@huawei.com>
Message-id: 5784B8EB.7010008@huawei.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'bsd-user/syscall.c')
0 files changed, 0 insertions, 0 deletions