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.g...@gmx.de>
---
  board/siemens/common/board.c | 5 +----
  1 file changed, 1 insertion(+), 4 deletions(-)

Thanks!

Acked-by: Heiko Schocher <h...@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: h...@denx.de
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to