diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-10 09:40:27 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-10 09:40:27 +0000 |
commit | a935a0d8b72cca68f5ccfe0e0779c9f5ea2492e7 (patch) | |
tree | 0f5fa95c868e43c013fa22f3bdc1e33fac02f5d6 /MdeModulePkg | |
parent | dcbb35eb6ca9133f6858a5945901154dd8bec732 (diff) | |
download | edk2-platforms-a935a0d8b72cca68f5ccfe0e0779c9f5ea2492e7.tar.xz |
Add in ASSERT to avoid NULL point dereference.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7491 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c index 0070502f9b..1f8ebf968d 100644 --- a/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c +++ b/MdeModulePkg/Universal/SetupBrowserDxe/IfrParse.c @@ -1740,6 +1740,8 @@ ParseOpCodes ( if (EFI_ERROR (Status)) {
return Status;
}
+
+ ASSERT (CurrentExpression != NULL);
if (CurrentExpression->Result.Type != EFI_IFR_TYPE_BOOLEAN) {
return EFI_INVALID_PARAMETER;
}
|