Re: [PATCH] virtio-gpu: fix potential divide-by-zero regression

2023-07-04 Thread Marc-André Lureau
On Tue, Jul 4, 2023 at 11:24 AM Thomas Huth wrote: > On 04/07/2023 11.19, marcandre.lur...@redhat.com wrote: > > From: Marc-André Lureau > > > > Commit 9462ff4695aa0 ("virtio-gpu/win32: allocate shareable 2d > > resources/images") introduces a division, which can lead to crashes when > > "height

Re: [PATCH] virtio-gpu: fix potential divide-by-zero regression

2023-07-04 Thread Alexander Bulekov
On 230704 1119, marcandre.lur...@redhat.com wrote: > From: Marc-André Lureau > > Commit 9462ff4695aa0 ("virtio-gpu/win32: allocate shareable 2d > resources/images") introduces a division, which can lead to crashes when > "height" is 0. > > Fixes: https://gitlab.com/qemu-project/qemu/-/issues/174

Re: [PATCH] virtio-gpu: fix potential divide-by-zero regression

2023-07-04 Thread Thomas Huth
On 04/07/2023 11.19, marcandre.lur...@redhat.com wrote: From: Marc-André Lureau Commit 9462ff4695aa0 ("virtio-gpu/win32: allocate shareable 2d resources/images") introduces a division, which can lead to crashes when "height" is 0. Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1744 Signe

[PATCH] virtio-gpu: fix potential divide-by-zero regression

2023-07-04 Thread marcandre . lureau
From: Marc-André Lureau Commit 9462ff4695aa0 ("virtio-gpu/win32: allocate shareable 2d resources/images") introduces a division, which can lead to crashes when "height" is 0. Fixes: https://gitlab.com/qemu-project/qemu/-/issues/1744 Signed-off-by: Marc-André Lureau --- hw/display/virtio-gpu.c