[U-Boot] [PATCH 1/1] lib/display_options: avoid illegal memory access

Tom Rini trini at konsulko.com
Mon May 6 11:15:04 UTC 2019


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 <xypron.glpk at gmx.de>
> Reviewed-by: Simon Glass <sjg at chromium.org>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20190506/c0267ff3/attachment.sig>


More information about the U-Boot mailing list