diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-08-15 23:54:15 +0200 |
---|---|---|
committer | Lukasz Majewski <lukma@denx.de> | 2019-08-22 00:09:58 +0200 |
commit | 2bdb42f7c076638eb3dfbdfefc142f37f5e6209d (patch) | |
tree | ea1a1199f3fea010c5ebdf512faf39a23df21684 /drivers/rtc/stm32_rtc.c | |
parent | 071f369dd2f83ac6d290b53ea7e530afd0a9e67d (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>
Diffstat (limited to 'drivers/rtc/stm32_rtc.c')
0 files changed, 0 insertions, 0 deletions