[PATCH v4] mtd: diskonchip: Cast an operand to prevent potential overflow
Miquel Raynal
miquel.raynal at bootlin.com
Thu Dec 5 02:43:31 PST 2024
On Wed, 23 Oct 2024 16:13:10 -0500, Gax-c wrote:
> There may be a potential integer overflow issue in inftl_partscan().
> parts[0].size is defined as "uint64_t" while mtd->erasesize and
> ip->firstUnit are defined as 32-bit unsigned integer. The result of
> the calculation will be limited to 32 bits without correct casting.
>
>
Applied to mtd/fixes, thanks!
[1/1] mtd: diskonchip: Cast an operand to prevent potential overflow
Patche(s) will be available within hours on:
mtd/linux.git
Kind regards,
Miquèl
More information about the linux-mtd
mailing list