summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-04-15 04:04:47 +0000
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>2009-04-15 04:04:47 +0000
commit11171f0300de4c237c60c31d27655798bf37896b (patch)
treef1904cb0d7ae2c8f481602c76f9454c94a0ffefe /MdePkg
parent9f3543108564e17c40134a8ec6a0bc2709f06ccf (diff)
downloadedk2-platforms-11171f0300de4c237c60c31d27655798bf37896b.tar.xz
add security check
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8088 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/UefiLib/Console.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/MdePkg/Library/UefiLib/Console.c b/MdePkg/Library/UefiLib/Console.c
index 6157dac450..e58b572b37 100644
--- a/MdePkg/Library/UefiLib/Console.c
+++ b/MdePkg/Library/UefiLib/Console.c
@@ -1,7 +1,7 @@
/** @file
This module provide help function for displaying unicode string.
- Copyright (c) 2006 - 2008, Intel Corporation<BR>
+ Copyright (c) 2006 - 2009, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -392,6 +392,7 @@ CreatePopUp (
// Allocate a buffer for a single line of the popup with borders and a Null-terminator
//
Line = AllocateZeroPool ((MaxLength + 3) * sizeof (CHAR16));
+ ASSERT (Line != NULL);
//
// Draw top of popup box