From: Tom Rini Date: Fri, 20 Sep 2019 10:49:57 -0400 Subject: [U-Boot] [PATCH] disk: part_dos: Allocate at least one block size for mbr In-Reply-To: <20190904144012.26829-1-faiz_abbas@ti.com> References: <20190904144012.26829-1-faiz_abbas@ti.com> Message-ID: <20190920144957.GI1011@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Abbas > Acked-by: Alexey Brodkin Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: