From acfdb6771cdf5db13f8a829b4e1c9f9b45178151 Mon Sep 17 00:00:00 2001 From: Jiaxin Wu Date: Fri, 5 Jul 2024 11:14:16 +0800 Subject: MdeModulePkg/VarCheckPolicyLib: Fix buffer valid check for MM For MM, the MM Handlers do not need to validate the buffer if it is the CommBuffer passed from MmCore through the MmiHandler() parameter. Return TRUE directly in this case. Fix buffer valid check for MM in this patch. Signed-off-by: Jiaxin Wu Cc: Liming Gao Cc: Ray Ni Cc: Star Zeng Cc: Hongbin1 Zhang Cc: Wei6 Xu Cc: Dun Tan Cc: Yuanhao Xie --- MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'MdeModulePkg/Library') diff --git a/MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.c b/MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.c index f93ad7e7c0..4bfaf1e261 100644 --- a/MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.c +++ b/MdeModulePkg/Library/VarCheckPolicyLib/VarCheckPolicyLibStandaloneMm.c @@ -47,5 +47,5 @@ VarCheckPolicyIsPrimaryBufferValid ( IN UINT64 Length ) { - return MmIsBufferOutsideMmValid (Buffer, Length); + return TRUE; } -- cgit v1.2.3