mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-30 00:54:06 +02:00
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:
parent
1fa282ec23
commit
f2a064736d
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user