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