[U-Boot] [PATCH] disk: part_dos: Allocate at least one block size for mbr

Alexey Brodkin Alexey.Brodkin at synopsys.com
Wed Sep 4 16:59:19 UTC 2019


Hi Faiz,

> -----Original Message-----
> From: Faiz Abbas <faiz_abbas at ti.com>
> Sent: Wednesday, September 4, 2019 5:40 PM
> To: u-boot at lists.denx.de
> Cc: trini at konsulko.com; Alexey Brodkin <abrodkin at synopsys.com>; paulemge at forallsecure.com;
> faiz_abbas at ti.com
> Subject: [PATCH] disk: part_dos: Allocate at least one block size for mbr
> 
> The blk_dread() following the mbr allocation reads one block from the
> device. This will lead to overflow if block size is greater than the
> size of legacy_mbr. Fix this by allocating at least one block size.
> 
> Signed-off-by: Faiz Abbas <faiz_abbas at ti.com>

Acked-by: Alexey Brodkin <abrodkin at synopsys.com>


More information about the U-Boot mailing list