[U-Boot] [PATCH 1/1] siemens: avoid out of bound access

Bin Meng bmeng.cn at gmail.com
Fri Aug 23 03:30:40 UTC 2019


On Fri, Aug 23, 2019 at 3:59 AM Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
>         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(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list