commit | 51a1e8e4cfd09970cf5fb05d1d483846c7d439b2 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Thu Aug 15 23:54:15 2019 +0200 |
committer | Lukasz Majewski <lukma@denx.de> | Thu Aug 22 00:09:58 2019 +0200 |
tree | ea1a1199f3fea010c5ebdf512faf39a23df21684 | |
parent | e1abf48f77687d8196b3a7807a9c9ba2c15ed142 [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>