From: Tom Rini Date: Mon, 6 May 2019 07:15:04 -0400 Subject: [U-Boot] [PATCH 1/1] lib/display_options: avoid illegal memory access In-Reply-To: <20190426163900.26605-1-xypron.glpk@gmx.de> References: <20190426163900.26605-1-xypron.glpk@gmx.de> Message-ID: <20190506111504.GC31207@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, Apr 26, 2019 at 06:39:00PM +0200, Heinrich Schuchardt wrote: > display_options_get_banner_priv() overwrites bytes before the start of the > buffer if the buffer size is less then 3. This case occurs in the Sandbox > when executing the `ut_print` command. > > Correctly handle small buffer sizes. Adjust the print unit test to catch > when bytes before the buffer are overwritten. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass 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: