[U-Boot] [U-Boot, V2] common: nvedit: use snprintf instead of sprintf

Tom Rini trini at konsulko.com
Mon Jan 4 23:23:34 CET 2016


On Wed, Dec 23, 2015 at 12:08:09PM +0800, Peng Fan wrote:

> From: Peng Fan <peng.fan at nxp.com>
> 
> 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 <peng.fan at nxp.com>
> Cc: Tom Rini <trini at konsulko.com>
> Cc: Simon Glass <sjg at chromium.org>
> Reviewed-by: Joe Hershberger <joe.hershberger at ni.com>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20160104/cbbeaf2a/attachment.sig>


More information about the U-Boot mailing list