On Wed, Sep 04, 2019 at 08:10:12PM +0530, Faiz Abbas wrote:
> 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
Hi Faiz,
> -Original Message-
> From: Faiz Abbas
> Sent: Wednesday, September 4, 2019 5:40 PM
> To: u-boot@lists.denx.de
> Cc: tr...@konsulko.com; Alexey Brodkin ;
> paule...@forallsecure.com;
> faiz_ab...@ti.com
> Subject: [PATCH] disk: part_dos: Allocate at least one block size for
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
---
disk/part_dos.c | 3 ++-
1 file changed, 2 insertions(+),
3 matches
Mail list logo