Skip to content
Commit 80f2e139 authored by Alan Tull's avatar Alan Tull Committed by Liwei Song
Browse files

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

commit 3a3cbaa8a73de6cf40ac26e8028f6789c745bb2e from
https://github.com/altera-opensource/linux-socfpga.git

 socfpga-6.6.22-lts.

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 avatarLiwei Song <liwei.song@windriver.com>
parent 0ada0ce3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment