From 4c8358c77afa2968a585095db3e21281deac2d36 Mon Sep 17 00:00:00 2001 From: xdu2 Date: Fri, 13 Nov 2009 05:40:21 +0000 Subject: 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 --- MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'MdeModulePkg') 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 // -- cgit v1.1