Skip to content
Commit b4a122a8 authored by Alan Tull's avatar Alan Tull Committed by Meng Li
Browse files

FogBugz #536771: fpga: bridge: fix klocwork sprintf complaint

commit  7ef3c7634d5ad38bb98ea36f7a5417dac4ccd451 from
https://github.com/altera-opensource/linux-socfpga.git



Klocwork give the following complaints:

/home/yves/linux/intel/linux-socfpga/drivers/fpga/fpga-bridge.c:243 --
-- SV.BANNED.REQUIRED.SPRINTF (4:Review) Analyze Function 'sprintf' is
deprecated.  Replace with more secure equivalent like 'sprintf_s', add
missing logic, or re-architect.

/home/yves/linux/intel/linux-socfpga/drivers/fpga/fpga-bridge.c:255 --
-- SV.BANNED.REQUIRED.SPRINTF (4:Review) Analyze Function 'sprintf' is
deprecated.  Replace with more secure equivalent like 'sprintf_s', add
missing logic, or re-architect.

Remedy these by using scnprintf rather than sprintf.

Signed-off-by: default avatarAlan Tull <atull@kernel.org>
Signed-off-by: default avatarMeng Li <Meng.Li@windriver.com>
parent 18e47730
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment