]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/Shell.c
ShellPkg: Refine code to use Strn**S safe functions instead of Str**S ones in some...
authorQiu Shumin <shumin.qiu@intel.com>
Thu, 9 Jul 2015 03:19:06 +0000 (03:19 +0000)
committershenshushi <shenshushi@Edk2>
Thu, 9 Jul 2015 03:19:06 +0000 (03:19 +0000)
commit4dc0d578b8b923672657956d3b1831c3cbf126ef
treeb54d4cce8cea477c35194d2266134da75e4aa898
parent3b87e3881e6ea25885bf445c3d4278f7ef2668c3
ShellPkg: Refine code to use Strn**S safe functions instead of Str**S ones in some cases.

Safe string functions may ASSERT when the source length is larger than the MaxDest. This patch use Strn**S to indicate the copy length.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Tapan Shah <<tapandshah@hp.com>>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17894 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Application/Shell/FileHandleWrappers.c
ShellPkg/Application/Shell/Shell.c
ShellPkg/Library/UefiDpLib/DpUtilities.c
ShellPkg/Library/UefiShellDebug1CommandsLib/DmpStore.c
ShellPkg/Library/UefiShellDebug1CommandsLib/SmbiosView/QueryTable.c