add assertion to pass K8 check.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8679 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -403,6 +403,7 @@ FindVariable (
|
|||||||
// traverse the variable info list to look for varible.
|
// traverse the variable info list to look for varible.
|
||||||
// The IndexTable->Index[Count] records the distance of two neighbouring VAR_ADDED type variables.
|
// The IndexTable->Index[Count] records the distance of two neighbouring VAR_ADDED type variables.
|
||||||
//
|
//
|
||||||
|
ASSERT (Count < VARIABLE_INDEX_TABLE_VOLUME);
|
||||||
Offset += IndexTable->Index[Count];
|
Offset += IndexTable->Index[Count];
|
||||||
MaxIndex = (VARIABLE_HEADER *)((CHAR8 *)(IndexTable->StartPtr) + Offset);
|
MaxIndex = (VARIABLE_HEADER *)((CHAR8 *)(IndexTable->StartPtr) + Offset);
|
||||||
if (CompareWithValidVariable (MaxIndex, VariableName, VendorGuid, PtrTrack) == EFI_SUCCESS) {
|
if (CompareWithValidVariable (MaxIndex, VariableName, VendorGuid, PtrTrack) == EFI_SUCCESS) {
|
||||||
|
Reference in New Issue
Block a user