]> git.proxmox.com Git - mirror_edk2.git/commitdiff
add security check
authorvanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 15 Apr 2009 04:04:47 +0000 (04:04 +0000)
committervanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 15 Apr 2009 04:04:47 +0000 (04:04 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8088 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/UefiLib/Console.c

index 6157dac450332d93018ed6dc4488a39872554689..e58b572b375b784b528b5170cca902568a8a5f75 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   This module provide help function for displaying unicode string.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
   All rights reserved. This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
@@ -392,6 +392,7 @@ CreatePopUp (
   // Allocate a buffer for a single line of the popup with borders and a Null-terminator\r
   //\r
   Line = AllocateZeroPool ((MaxLength + 3) * sizeof (CHAR16));\r
+  ASSERT (Line != NULL);\r
 \r
   //\r
   // Draw top of popup box   \r