Re: [edk2-devel] [PATCH V2] ShellPkg/UefiHandleParsingLib: Fix incorrect reallocate pool

2019-09-04 Thread Ni, Ray
July 22, 2019 2:58 PM > > To: devel@edk2.groups.io > > Cc: Carsey, Jaben ; Ni, Ray ; > > Andrew Fish > > Subject: [edk2-devel] [PATCH V2] ShellPkg/UefiHandleParsingLib: Fix > > incorrect reallocate pool > > > > REF: https://bugzilla.tianocore.or

Re: [edk2-devel] [PATCH V2] ShellPkg/UefiHandleParsingLib: Fix incorrect reallocate pool

2019-09-02 Thread Gao, Zhichao
ndrew Fish > Subject: [edk2-devel] [PATCH V2] ShellPkg/UefiHandleParsingLib: Fix > incorrect reallocate pool > > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1965 > > For function InsertNewGuidNameMapping, it rellocate the mGuidList with > new size > "mGuidList

FW: [edk2-devel] [PATCH V2] ShellPkg/UefiHandleParsingLib: Fix incorrect reallocate pool

2019-07-26 Thread Gao, Zhichao
] ShellPkg/UefiHandleParsingLib: Fix incorrect reallocate 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

[edk2-devel] [PATCH V2] ShellPkg/UefiHandleParsingLib: Fix incorrect reallocate pool

2019-07-22 Thread Gao, Zhichao
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