From 8cbad981eecfafd38278f358c2ceede61d9422de Mon Sep 17 00:00:00 2001 From: vanjeff Date: Mon, 22 Apr 2013 08:58:27 +0000 Subject: Add security check. Signed-off-by: Jeff Fan Reviewed-by: Ruiyu Ni git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14306 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'SourceLevelDebugPkg') diff --git a/SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.c b/SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.c index 13745c5..c253fa5 100644 --- a/SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.c +++ b/SourceLevelDebugPkg/Library/DebugAgent/SecPeiDebugAgent/SecPeiDebugAgentLib.c @@ -281,6 +281,7 @@ DebugAgentCallbackMemoryDiscoveredPpi ( // Update Mailbox Location pointer in GUIDed HOB and IDT entry with new one // MailboxLocationInHob = GetMailboxLocationFromHob (); + ASSERT (MailboxLocationInHob != NULL); *MailboxLocationInHob = (UINT64)(UINTN)NewMailbox; SetLocationSavedMailboxPointerInIdtEntry (MailboxLocationInHob); // -- cgit v1.1