diff options
author | xdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-11-13 05:40:21 +0000 |
---|---|---|
committer | xdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-11-13 05:40:21 +0000 |
commit | 4c8358c77afa2968a585095db3e21281deac2d36 (patch) | |
tree | f5e0bdd22a831e967ce10ba0e6a6082a268869f5 /MdeModulePkg | |
parent | 8f97f911542444e910338cdd54e56c3da0602b54 (diff) | |
download | edk2-4c8358c77afa2968a585095db3e21281deac2d36.tar.gz edk2-4c8358c77afa2968a585095db3e21281deac2d36.tar.bz2 edk2-4c8358c77afa2968a585095db3e21281deac2d36.zip |
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.c | 8 |
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
//
|