]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Fix a bug to handle case that SendForm() is called with an invalid FormSetGuid.
authorxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 13 Nov 2009 05:40:21 +0000 (05:40 +0000)
committerxdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 13 Nov 2009 05:40:21 +0000 (05:40 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9422 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c

index 141f953d668ffc82f8add319a5922072615686ff..7f6ff67f58cd58797e7a0f7d44c086fe6b86207f 100644 (file)
@@ -655,6 +655,14 @@ DestroyFormSet (
   FORM_EXPRESSION       *Expression;\r
   FORM_BROWSER_FORM     *Form;\r
 \r
+  if (FormSet->IfrBinaryData == NULL) {\r
+    //\r
+    // Uninitialized FormSet\r
+    //\r
+    FreePool (FormSet);\r
+    return;\r
+  }\r
+\r
   //\r
   // Free IFR binary buffer\r
   //\r