From: Tom Rini Date: Mon, 2 Sep 2019 10:13:03 -0400 Subject: [U-Boot] [PATCH 1/1] siemens: avoid out of bound access In-Reply-To: <20190822195826.10142-1-xypron.glpk@gmx.de> References: <20190822195826.10142-1-xypron.glpk@gmx.de> Message-ID: <20190902141303.GQ26850@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: