[PATCH 1/1] fs: fat: avoid multiplication overflow
Tom Rini
trini at konsulko.com
Tue Aug 15 16:43:32 CEST 2023
On Sun, Jul 30, 2023 at 04:44:04PM +0200, Heinrich Schuchardt wrote:
> The product of two 32 bit integers is a 32 bit integer. Hence
> clustcount * bytesperclust may overflow on > 4 GiB devices.
>
> Change the type of clustcount.
>
> Fixes: cb8af8af5ba0 ("fs: fat: support write with non-zero offset")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
Applied to u-boot/next, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20230815/6fa4c3af/attachment.sig>
More information about the U-Boot
mailing list