diff options
author | Eric Dong <eric.dong@intel.com> | 2015-05-19 09:26:25 +0000 |
---|---|---|
committer | ydong10 <ydong10@Edk2> | 2015-05-19 09:26:25 +0000 |
commit | aee257db53c87e5657b9e2c8aa558b58c4ec0fb4 (patch) | |
tree | 2b57bb967c981a7dc8537900a42799ff421a6860 /MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | |
parent | 5f25ead991ad34f5d11b6b7f5f6a50479142934f (diff) | |
download | edk2-aee257db53c87e5657b9e2c8aa558b58c4ec0fb4.zip edk2-aee257db53c87e5657b9e2c8aa558b58c4ec0fb4.tar.gz edk2-aee257db53c87e5657b9e2c8aa558b58c4ec0fb4.tar.bz2 |
MdeModulePkg: Fix potential buffer overflow issues.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17472 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c index 8ddc449..3785c32 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c @@ -2144,6 +2144,7 @@ ParseOpCodes ( // Option
//
case EFI_IFR_ONE_OF_OPTION_OP:
+ ASSERT (ParentStatement != NULL);
if (ParentStatement->Operand == EFI_IFR_ORDERED_LIST_OP && ((((EFI_IFR_ONE_OF_OPTION *) OpCodeData)->Flags & (EFI_IFR_OPTION_DEFAULT | EFI_IFR_OPTION_DEFAULT_MFG)) != 0)) {
//
// It's keep the default value for ordered list opcode.
@@ -2198,7 +2199,6 @@ ParseOpCodes ( CopyMem (CurrentOption->SuppressExpression->Expression, GetConditionalExpressionList(ExpressOption), (UINTN) (sizeof (FORM_EXPRESSION *) * ConditionalExprCount));
}
- ASSERT (ParentStatement != NULL);
//
// Insert to Option list of current Question
//
|