Re: [PATCH v4] mtd: diskonchip: Cast an operand to prevent potential overflow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux