commit | b974fa2b63972d8d994455ef361059ece0c81773 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Thu Aug 15 23:54:15 2019 +0200 |
committer | Tom Rini <trini@konsulko.com> | Tue Aug 20 12:20:33 2019 -0400 |
tree | a1a965e115ca08c5fe83fea1813e531592e352a9 | |
parent | 93250799511501e645d731f70153ed1480808058 [diff] |
easylogo: avoid buffer overrun 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@gmx.de>