]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
fsl/sata: Replace sprintf() with snprintf()
authorTang Yuantian <Yuantian.Tang@freescale.com>
Wed, 6 May 2015 03:21:33 +0000 (11:21 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:47:09 +0000 (22:47 +0200)
commit02602c3fb4eb57ff51aab636801ab3edbb5370b3
treea3e37cea3a78c7e8baf4f39b2183fa0d5719450b
parent6847e0625267a8613a51915f220ec34b022b543b
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