]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/FileHandleWrappers.c
ShellPkg: Refine code to make catenae length more precise.
authorQiu Shumin <shumin.qiu@intel.com>
Tue, 30 Jun 2015 20:15:15 +0000 (20:15 +0000)
committershenshushi <shenshushi@Edk2>
Tue, 30 Jun 2015 20:15:15 +0000 (20:15 +0000)
commit6956ecfe1e70f241f2a861520568bd1c6639ba54
treed9f96fe52c76aac3404e6b509998e51761a9d830
parent269e0aebcf978640f16361882f423c7b9593215c
ShellPkg: Refine code to make catenae length more precise.

This commit refine the catenae length. A too long catenae length in StrnCat may cause potential buffer overflow while in StrnCatS it may ASSERT.

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@17747 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Application/Shell/FileHandleWrappers.c