[U-Boot] [PATCH 1/1] siemens: avoid out of bound access
Heiko Schocher
hs at denx.de
Thu Aug 29 05:38:30 UTC 2019
Hello Heinrich,
Am 22.08.2019 um 21:58 schrieb Heinrich Schuchardt:
> char num[1];
> sprintf(num, "%d", i);
>
> leads to a buffer overrun.
>
> Simplify the overly complex coding.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
> board/siemens/common/board.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
Thanks!
Acked-by: Heiko Schocher <hs at denx.de>
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de
More information about the U-Boot
mailing list