summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorZenith432 <zenith432@users.sourceforge.net>2017-12-10 01:04:38 +0800
committerStar Zeng <star.zeng@intel.com>2017-12-11 09:07:40 +0800
commita0460be7e88539649cd10139491dd6955c54fb14 (patch)
tree5cd1e1693468a2d39dafdbabdf965e790c56ed40 /MdeModulePkg
parent1c62af9ec1086b9e3066b25bfd6bee6d03186c0f (diff)
downloadedk2-a0460be7e88539649cd10139491dd6955c54fb14.zip
edk2-a0460be7e88539649cd10139491dd6955c54fb14.tar.gz
edk2-a0460be7e88539649cd10139491dd6955c54fb14.tar.bz2
MdeModulePkg: loose VA_COPY with no matching VA_END on a return path
In CheckRemainingSpaceForConsistencyInternal, one of the return paths leaves a loose VA_COPY with no matching VA_END. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zenith432 <zenith432@users.sourceforge.net> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
index f39be6b..969df95 100644
--- a/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
+++ b/MdeModulePkg/Universal/Variable/RuntimeDxe/Variable.c
@@ -1765,6 +1765,7 @@ CheckRemainingSpaceForConsistencyInternal (
//
// No enough space for Variable[Index].
//
+ VA_END (Args);
return FALSE;
}
//