]> git.baikalelectronics.ru Git - uboot.git/commit
siemens: avoid out of bound access
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 22 Aug 2019 19:58:26 +0000 (21:58 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 30 Aug 2019 18:17:11 +0000 (14:17 -0400)
commit66e05725106db5b340579b979e242b3609f03e37
tree5bda38829d6f2310bf224eff1f36740e62797210
parent82745b554e5676153a41577d5c43b3b9935e5de1
siemens: avoid out of bound access

char num[1];
sprintf(num, "%d", i);

leads to a buffer overrun.

Simplify the overly complex coding.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Heiko Schocher <hs@denx.de>
board/siemens/common/board.c