]> git.dujemihanovic.xyz Git - u-boot.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)
commit3c7166dbb464a65d9822cfee7c233a7d8c1a9672
tree5bda38829d6f2310bf224eff1f36740e62797210
parent40a13173b5d461bd43184dc1478d3a0f5becf55f
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