]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Library/UefiShellLevel2CommandsLib/Map.c
ShellPkg: Fix buffer overflow issue in 'map' command.
authorQiu Shumin <shumin.qiu@intel.com>
Mon, 11 May 2015 01:44:35 +0000 (01:44 +0000)
committershenshushi <shenshushi@Edk2>
Mon, 11 May 2015 01:44:35 +0000 (01:44 +0000)
commitdb906063a71d8ddd90c2883d57bdea2c305fad6f
tree1552012177f583a83f3c4e7a7ea81ad6090dc746
parent1e834a6f30e755ff470c2b7bd4db97d9ee841ed0
ShellPkg: Fix buffer overflow issue in 'map' command.

This patch replace 'StrnCat' with 'StrnCatS' to avoid the buffer overflow in 'map.c'.

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