mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-31 01:24:12 +02:00
MdeModulePkg: Terminate two unterminated VA_COPYs in CheckRemainingSpaceForConsistencyInternal()
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zenith432 <zenith432@users.sourceforge.net> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
7266e2f69b
commit
415700ec3e
@ -1771,6 +1771,7 @@ CheckRemainingSpaceForConsistencyInternal (
|
|||||||
TotalNeededSize += VariableEntry->VariableSize;
|
TotalNeededSize += VariableEntry->VariableSize;
|
||||||
VariableEntry = VA_ARG (Args, VARIABLE_ENTRY_CONSISTENCY *);
|
VariableEntry = VA_ARG (Args, VARIABLE_ENTRY_CONSISTENCY *);
|
||||||
}
|
}
|
||||||
|
VA_END (Args);
|
||||||
|
|
||||||
if (RemainingVariableStorageSize >= TotalNeededSize) {
|
if (RemainingVariableStorageSize >= TotalNeededSize) {
|
||||||
//
|
//
|
||||||
@ -1823,6 +1824,7 @@ CheckRemainingSpaceForConsistencyInternal (
|
|||||||
RemainingVariableStorageSize -= VariableEntry->VariableSize;
|
RemainingVariableStorageSize -= VariableEntry->VariableSize;
|
||||||
VariableEntry = VA_ARG (Args, VARIABLE_ENTRY_CONSISTENCY *);
|
VariableEntry = VA_ARG (Args, VARIABLE_ENTRY_CONSISTENCY *);
|
||||||
}
|
}
|
||||||
|
VA_END (Args);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user