[U-Boot] [PATCH] arm: ls1021a: Remove the inappropriate use of the function 'sprintf'

York Sun yorksun at freescale.com
Mon Jul 20 23:12:40 CEST 2015



On 05/11/2015 12:39 AM, Alison Wang wrote:
> As the function 'sprintf' does not check buffer boundaries but outputs
> to the buffer 'enet' of fixed size (16), this patch removes the function
> 'sprintf', and uses 'strcpy' instead. It will assign the character
> arrays 'enet' and 'phy' the corresponding character strings.
> 
> Signed-off-by: Alison Wang <alison.wang at freescale.com>
> ---

Applied to u-boot-fsl-qoriq master branch.

York


More information about the U-Boot mailing list