audk/ShellPkg/Library/UefiHandleParsingLib
Zhichao Gao 94d4efb54e ShellPkg/UefiHandleParsingLib: Fix error allocate pool
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1965

For function InsertNewGuidNameMapping, it rellocate the
mGuidList with new size
"mGuidListCount+1 * sizeof(GUID_INFO_BLOCK)". That isn't
its purpose and would cause a overflow operation in
"mGuidList[mGuidListCount - 1].xxx = xxx". Its purpose
is to increase 1 block size of mGuidList. Change it to
"(mGuidListCount + 1) * sizeof (GUID_INFO_BLOCK)".

Adjust the coding style of this function.

Cc: Jaben Carsey <jaben.carsey@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Andrew Fish <afish@apple.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Zhichao Gao <zhichao.gao@intel.com>
2019-12-05 06:12:36 +00:00
..
UefiHandleParsingLib.c ShellPkg/UefiHandleParsingLib: Fix error allocate pool 2019-12-05 06:12:36 +00:00
UefiHandleParsingLib.h ShellPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:25 -07:00
UefiHandleParsingLib.inf ShellPkg/UefiHandleParsingLib: Remove some unused Guids 2019-04-28 09:50:14 +08:00
UefiHandleParsingLib.uni ShellPkg/UefiHandleParsingLib: Remove some unused Guids 2019-04-28 09:50:14 +08:00