
4 Sep
2019
4 Sep
'19
6:59 p.m.
Hi Faiz,
-----Original Message----- From: Faiz Abbas faiz_abbas@ti.com Sent: Wednesday, September 4, 2019 5:40 PM To: u-boot@lists.denx.de Cc: trini@konsulko.com; Alexey Brodkin abrodkin@synopsys.com; paulemge@forallsecure.com; faiz_abbas@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@ti.com
Acked-by: Alexey Brodkin abrodkin@synopsys.com