diff options
author | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-02 07:18:59 +0000 |
---|---|---|
committer | qwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-02 07:18:59 +0000 |
commit | bc166db3114c8bebb73807d58fbd042c1b79e928 (patch) | |
tree | 485bfaa5d3e0afbbebd660c73ef2953e406c2fa8 /MdeModulePkg/Universal/HiiDatabaseDxe | |
parent | af58e377315ae4acb5cd2c960daa26ab2746d9e9 (diff) | |
download | edk2-platforms-bc166db3114c8bebb73807d58fbd042c1b79e928.tar.xz |
Add in ASSERT to check out-of-bound and possible dereference of NULL pointers.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7391 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/HiiDatabaseDxe')
-rw-r--r-- | MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c index 36cf919b42..08e564343d 100644 --- a/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c +++ b/MdeModulePkg/Universal/HiiDatabaseDxe/ConfigRouting.c @@ -1643,7 +1643,7 @@ HiiGetAltCfg ( Exit:
- if (!EFI_ERROR (Status)) {
+ if (!EFI_ERROR (Status) && (Result != NULL)) {
//
// Copy the <ConfigHdr> and <ConfigBody>
//
|