[U-Boot] [PATCH 1/1] easylogo: avoid buffer overrun

Tom Rini trini at konsulko.com
Wed Aug 21 12:45:01 UTC 2019


On Thu, Aug 15, 2019 at 11:54:15PM +0200, Heinrich Schuchardt wrote:

> Building easylogo with `HOST_TOOLS_ALL=y make tools` results in a build
> warning due to a possible buffer overrun:
> 
> tools/easylogo/easylogo.c:453:4: note: ‘sprintf’ output between 7 and
> 262 bytes into a destination of size 256
>     sprintf (str, "%s, 0x%02x", app, *dataptr++);
>     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Truncate the output to fit into the destination buffer.
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

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/20190821/9ee92368/attachment.sig>


More information about the U-Boot mailing list