summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c
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/Universal/SetupBrowserDxe/IfrParse.c
parent8f97f911542444e910338cdd54e56c3da0602b54 (diff)
downloadedk2-platforms-4c8358c77afa2968a585095db3e21281deac2d36.tar.xz
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/Universal/SetupBrowserDxe/IfrParse.c')
-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 141f953d66..7f6ff67f58 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
//