Re: [Qemu-devel] [PATCH v3] vga: check the validation of memory addr when draw text

2018-01-12 Thread Gerd Hoffmann
On Thu, Jan 11, 2018 at 09:27:24PM +0800, linzhecheng wrote: > Start a vm with qemu-kvm -enable-kvm -vnc :66 -smp 1 -m 1024 -hda > redhat_5.11.qcow2 -device pcnet -vga cirrus, > then use VNC client to connect to VM, and excute the code below in guest > OS will lead to qemu crash: > > int main() >

[Qemu-devel] [PATCH v3] vga: check the validation of memory addr when draw text

2018-01-11 Thread linzhecheng
Start a vm with qemu-kvm -enable-kvm -vnc :66 -smp 1 -m 1024 -hda redhat_5.11.qcow2 -device pcnet -vga cirrus, then use VNC client to connect to VM, and excute the code below in guest OS will lead to qemu crash: int main() { iopl(3); srand(time(NULL)); int a,b; while(1){