]> git.proxmox.com Git - mirror_qemu.git/commit - ui/vnc-enc-tight.c
vnc: fix unalignment access in tight_pack24
authorLi Qiang <liq3ea@163.com>
Mon, 18 Mar 2019 01:04:42 +0000 (09:04 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 18 Mar 2019 09:49:18 +0000 (10:49 +0100)
commit18e845f7dfe089bc0c6a89c10c496054d30a681e
treeb606bc942a6587cb7afdcc870f8f0c06b215122e
parentd4e65539e570d5872003710b5a1064489911d33d
vnc: fix unalignment access in tight_pack24

When adding '-fsanitize=undefined' in compiling configuration
and connect VM with vnc, it reports following error:

ui/vnc-enc-tight.c:910:13: runtime error: load of
misaligned address 0x621000466513 for type 'uint32_t',
which requires 4 byte alignment

This patch fix this issue.

Signed-off-by: Li Qiang <liq3ea@163.com>
Message-id: 20190318010442.14897-1-liq3ea@163.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc-enc-tight.c