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

2019-09-02 Thread Tom Rini
On Thu, Aug 22, 2019 at 09:58:26PM +0200, Heinrich Schuchardt wrote: > char num[1]; > sprintf(num, "%d", i); > > leads to a buffer overrun. > > Simplify the overly complex coding. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Bin Meng > Acked-by: Heiko Schocher Applied to

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

2019-08-28 Thread Heiko Schocher
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 --- board/siemens/common/board.c | 5 + 1 file changed, 1

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

2019-08-22 Thread Bin Meng
On Fri, Aug 23, 2019 at 3:59 AM Heinrich Schuchardt wrote: > > char num[1]; > sprintf(num, "%d", i); > > leads to a buffer overrun. > > Simplify the overly complex coding. > > Signed-off-by: Heinrich Schuchardt > --- > board/siemens/common/board.c | 5 + > 1 file changed, 1

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

2019-08-22 Thread Heinrich Schuchardt
char num[1]; sprintf(num, "%d", i); leads to a buffer overrun. Simplify the overly complex coding. Signed-off-by: Heinrich Schuchardt --- board/siemens/common/board.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/board/siemens/common/board.c