Re: [PATCH] qemu-edid: Restrict input parameter -d to avoid division by zero

2022-10-12 Thread Gerd Hoffmann
On Tue, Oct 11, 2022 at 05:12:16PM +0200, Sebastian Mitterle wrote: > A zero value for dpi will lead to a division by zero in qemu_edid_dpi_to_mm(). > Tested by runnig qemu-edid -dX, X = 0, 100. > > Resolves: qemu-project/qemu#1249 > > Suggested-by: Thomas Huth > Signed-off-by: Sebastian Mitterl

[PATCH] qemu-edid: Restrict input parameter -d to avoid division by zero

2022-10-11 Thread Sebastian Mitterle
A zero value for dpi will lead to a division by zero in qemu_edid_dpi_to_mm(). Tested by runnig qemu-edid -dX, X = 0, 100. Resolves: qemu-project/qemu#1249 Suggested-by: Thomas Huth Signed-off-by: Sebastian Mitterle --- qemu-edid.c | 4 1 file changed, 4 insertions(+) diff --git a/qemu-e