summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Core/Dxe/FwVol
diff options
context:
space:
mode:
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-26 08:53:27 +0000
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2010-02-26 08:53:27 +0000
commitd2fbaaab17945b59ca66bcd2f72e26ba3361e1d0 (patch)
tree29fa29d32bdbd1a34dd97ed53da9496478063a7f /MdeModulePkg/Core/Dxe/FwVol
parent4ccd9566c12b90ed60c38ca7cf4156ee83861db1 (diff)
downloadedk2-d2fbaaab17945b59ca66bcd2f72e26ba3361e1d0.zip
edk2-d2fbaaab17945b59ca66bcd2f72e26ba3361e1d0.tar.gz
edk2-d2fbaaab17945b59ca66bcd2f72e26ba3361e1d0.tar.bz2
Add more code robustness check for modules under MdeModulePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10108 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Core/Dxe/FwVol')
-rw-r--r--MdeModulePkg/Core/Dxe/FwVol/FwVol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdeModulePkg/Core/Dxe/FwVol/FwVol.c b/MdeModulePkg/Core/Dxe/FwVol/FwVol.c
index f2451b0..fc8d57c 100644
--- a/MdeModulePkg/Core/Dxe/FwVol/FwVol.c
+++ b/MdeModulePkg/Core/Dxe/FwVol/FwVol.c
@@ -3,7 +3,7 @@
Layers on top of Firmware Block protocol to produce a file abstraction
of FV based files.
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>
+Copyright (c) 2006 - 2010, Intel Corporation. <BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -565,6 +565,7 @@ NotifyFwVolBlock (
if (EFI_ERROR (Status)) {
return;
}
+ ASSERT (FwVolHeader != NULL);
if (!VerifyFvHeaderChecksum (FwVolHeader)) {
CoreFreePool (FwVolHeader);