[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] qemu-edid: Restrict input parameter -d to avoid division by
From: |
Gerd Hoffmann |
Subject: |
Re: [PATCH] qemu-edid: Restrict input parameter -d to avoid division by zero |
Date: |
Wed, 12 Oct 2022 14:33:44 +0200 |
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 <thuth@redhat.com>
> Signed-off-by: Sebastian Mitterle <smitterl@redhat.com>
Added to queue.
thanks,
Gerd