From 84fa6c177ea92ac85453017d2941d3140b808ef7 Mon Sep 17 00:00:00 2001 From: klu2 Date: Tue, 23 Jun 2009 08:57:31 +0000 Subject: Fix potential buffer overflow issue. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8627 6f19259b-4bc3-4df7-8a09-765794883524 --- IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/ConsoleOption.c | 1 + 1 file changed, 1 insertion(+) (limited to 'IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/ConsoleOption.c') diff --git a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/ConsoleOption.c b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/ConsoleOption.c index 06fd0e0af7..c6c9915f55 100644 --- a/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/ConsoleOption.c +++ b/IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/ConsoleOption.c @@ -755,6 +755,7 @@ GetConsoleMenu ( NewMenuEntry->OptionNumber = Index2; NewConsoleContext->DevicePath = DuplicateDevicePath (DevicePathInst); + ASSERT (NewConsoleContext->DevicePath != NULL); NewMenuEntry->DisplayString = EfiLibStrFromDatahub (NewConsoleContext->DevicePath); if (NULL == NewMenuEntry->DisplayString) { NewMenuEntry->DisplayString = DevicePathToStr (NewConsoleContext->DevicePath); -- cgit v1.2.3