[U-Boot] [PATCH 1/1] easylogo: avoid buffer overrun
Heinrich Schuchardt
xypron.glpk at gmx.de
Thu Aug 15 22:11:57 UTC 2019
On 8/15/19 11:54 PM, 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>
Could we change .travis.yml and .gitlab-ci.yml to build all tools?
Best regards
Heinrich
More information about the U-Boot
mailing list