[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/2] hw/display: check frame buffer can hold blob
From: |
Dmitry Osipenko |
Subject: |
Re: [PATCH v2 2/2] hw/display: check frame buffer can hold blob |
Date: |
Thu, 14 Nov 2024 13:01:27 +0300 |
User-agent: |
Mozilla Thunderbird |
On 11/12/24 02:00, Alex Bennée wrote:
> Coverity reports (CID 1564769, 1564770) that we potentially overflow
> by doing some 32x32 multiplies for something that ends up in a 64 bit
> value. Fix this by first using stride for all lines and casting input
> to uint64_t to ensure a 64 bit multiply is used.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> Cc: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
--
Best regards,
Dmitry