From: Tom Rini Date: Mon, 14 Sep 2020 15:40:52 -0400 Subject: [PATCH] env: Crash in 'env import' when using checksum and a specific size In-Reply-To: <20200831090141.3025832-1-pedro.aguilar@vimar.com> References: <20200831090141.3025832-1-pedro.aguilar@vimar.com> Message-ID: <20200914194052.GW5110@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 Mon, Aug 31, 2020 at 11:01:41AM +0200, Pedro Aguilar wrote: > This patch adds a sanity check that avoids 'size' to overflow and crash when > importing an environment that contains a checksum. Example with the wrong size > that causes the crash: > > => env import -c 0x4100000 3 v1 > > This assumes that v1 has already been successfully exported with > 'env export -c -s 0x100 0x4100000 v1' > > Signed-off-by: Pedro Aguilar Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: