From: Tom Rini Date: Mon, 4 Jan 2016 17:23:34 -0500 Subject: [U-Boot] [U-Boot, V2] common: nvedit: use snprintf instead of sprintf In-Reply-To: <1450843689-25328-1-git-send-email-van.freenix@gmail.com> References: <1450843689-25328-1-git-send-email-van.freenix@gmail.com> Message-ID: <20160104222334.GX4093@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 Wed, Dec 23, 2015 at 12:08:09PM +0800, Peng Fan wrote: > From: Peng Fan > > Use snprintf to replace sprintf. > > Coverity log: > " > Unbounded source buffer (STRING_SIZE) > string_size: Passing string init_val of unknown size to sprintf. > " > > Reported-by: Coverity > Signed-off-by: Peng Fan > Cc: Tom Rini > Cc: Simon Glass > Reviewed-by: Joe Hershberger Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: