Re: [Qemu-devel] [PATCH v2] vnc: fix unalignment access in tight_pack24

2019-03-18 Thread Gerd Hoffmann
On Mon, Mar 18, 2019 at 09:04:42AM +0800, Li Qiang wrote: > 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 re

[Qemu-devel] [PATCH v2] vnc: fix unalignment access in tight_pack24

2019-03-17 Thread Li Qiang
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