diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-19 02:52:11 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-12-19 02:52:11 +0000 |
commit | a72074803468da9503582876668d9a3abef42878 (patch) | |
tree | a2e5473c1e88acc004377cb0872154fb8746445d /EdkModulePkg/Library/EdkFvbServiceLib | |
parent | 95ed6470d1e3acdb355316138935e43052f72274 (diff) | |
download | edk2-platforms-a72074803468da9503582876668d9a3abef42878.tar.xz |
Add more check for index whether exceed maximum value of fv count.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2115 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Library/EdkFvbServiceLib')
-rw-r--r-- | EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c b/EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c index e9d7500261..4dcb81d216 100644 --- a/EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c +++ b/EdkModulePkg/Library/EdkFvbServiceLib/x64/Fvb.c @@ -102,7 +102,8 @@ Returns: //
// Use the next free slot for a new entry
//
- UpdateIndex = mFvbCount++;;
+ UpdateIndex = mFvbCount++;
+ ASSERT (UpdateIndex < MAX_FVB_COUNT);
mFvbEntry[UpdateIndex].Handle = Handle;
}
//
|