]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/DynamicCommand/TftpDynamicCommand/Tftp.c
ShellPkg: Use safe string functions to refine 'Tftp.c' code.
authorQiu Shumin <shumin.qiu@intel.com>
Thu, 15 Oct 2015 02:19:14 +0000 (02:19 +0000)
committershenshushi <shenshushi@Edk2>
Thu, 15 Oct 2015 02:19:14 +0000 (02:19 +0000)
commitda6b8feb223e6db3b13bcf1176eccca3ef450b30
tree94204681908aae5d0157209e61c44043bbf11f20
parent7bf301dbc56d2e087ef54cc7b69199b17b3845da
ShellPkg: Use safe string functions to refine 'Tftp.c' code.

Safe string functions can help avoid potential buffer overflow. This patch replaces the StrCpy with StCpyS.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18608 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Library/UefiShellTftpCommandLib/Tftp.c