]> git.sur5r.net Git - u-boot/commit
fsl/sata: Replace sprintf() with snprintf()
authorTang Yuantian <Yuantian.Tang@freescale.com>
Wed, 6 May 2015 03:21:33 +0000 (11:21 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 28 May 2015 12:18:24 +0000 (08:18 -0400)
commit14f66d65a33f622b8138ab0fcd1e18060a2355c2
tree34988737d61abd7d8349141eee440e8323e24cd0
parent0144caf22ce6acd5c252309bf9abe6d898e8cab3
fsl/sata: Replace sprintf() with snprintf()

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@freescale.com>
drivers/block/fsl_sata.c