[U-Boot] fsl/sata: Replace sprintf() with snprintf()
Tom Rini
trini at konsulko.com
Thu May 28 15:25:45 CEST 2015
On Wed, May 06, 2015 at 11:21:33AM +0800, tang yuantian wrote:
> From: Tang Yuantian <Yuantian.Tang at freescale.com>
>
> Function 'sprintf' does not check buffer boundaries but outputs
> to the buffer of fixed size which could potentially cause buffer
> overflow. Use a safer function to replace it.
>
> Signed-off-by: Tang Yuantian <Yuantian.Tang at freescale.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/20150528/ab127b7e/attachment.sig>
More information about the U-Boot
mailing list