From: Tom Rini Date: Thu, 5 Jun 2014 18:50:03 -0400 Subject: [U-Boot] [U-Boot, v3] Prevent a buffer overflow in mkimage when signing with SHA256 In-Reply-To: <1401476340-17132-1-git-send-email-michael@smart-africa.com> References: <1401476340-17132-1-git-send-email-michael@smart-africa.com> Message-ID: <20140605225003.GI7841@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 Fri, May 30, 2014 at 08:59:00PM +0200, Michael van der Westhuizen wrote: > From: Michael van der Westhuizen > > Due to the FIT_MAX_HASH_LEN constant not having been updated > to support SHA256 signatures one will always see a buffer > overflow in fit_image_process_hash when signing images that > use this larger hash. This is exposed by vboot_test.sh. > > Signed-off-by: Michael van der Westhuizen > Acked-by: Simon Glass Applied to u-boot/master (with a rework to hash.h to avoid breaking various platforms when host tools start adding command.h) , thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: