]> git.proxmox.com Git - mirror_edk2.git/commit - ShellPkg/Application/Shell/ShellProtocol.c
ShellPkg: Refine the logic about allocating memory for variable name and data.
authorQiu Shumin <shumin.qiu@intel.com>
Mon, 27 Apr 2015 03:09:34 +0000 (03:09 +0000)
committershenshushi <shenshushi@Edk2>
Mon, 27 Apr 2015 03:09:34 +0000 (03:09 +0000)
commit654a012ba5e99c7439df392ed44b3b4e02aaca2f
tree5bcafe2ee9b7fcf8b9a115ccbdbee975bfc74c18
parent43bfa5273d380290f55af17398ab0354110de5bb
ShellPkg: Refine the logic about allocating memory for variable name and data.

The run time service 'QueryVariableInfo' is not proper to be used to get the variable name size. This patch refine the logic about allocating memory for variable name and data.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Qiu Shumin <shumin.qiu@intel.com>
Reviewed-by: Ruiyu Ni <Ruiyu.ni@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17201 6f19259b-4bc3-4df7-8a09-765794883524
ShellPkg/Application/Shell/ShellEnvVar.c
ShellPkg/Application/Shell/ShellProtocol.c