summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-13 05:40:21 +0000
committerxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-13 05:40:21 +0000
commit4c8358c77afa2968a585095db3e21281deac2d36 (patch)
treef5e0bdd22a831e967ce10ba0e6a6082a268869f5 /MdeModulePkg
parent8f97f911542444e910338cdd54e56c3da0602b54 (diff)
downloadedk2-4c8358c77afa2968a585095db3e21281deac2d36.zip
edk2-4c8358c77afa2968a585095db3e21281deac2d36.tar.gz
edk2-4c8358c77afa2968a585095db3e21281deac2d36.tar.bz2
Fix a bug to handle case that SendForm() is called with an invalid FormSetGuid.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9422 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
index 141f953..7f6ff67 100644
--- a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
+++ b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
@@ -655,6 +655,14 @@ DestroyFormSet (
FORM_EXPRESSION *Expression;
FORM_BROWSER_FORM *Form;
+ if (FormSet->IfrBinaryData == NULL) {
+ //
+ // Uninitialized FormSet
+ //
+ FreePool (FormSet);
+ return;
+ }
+
//
// Free IFR binary buffer
//