From 81464cf1067b6b1d26679b20104c665e902647c5 Mon Sep 17 00:00:00 2001 From: xli24 Date: Tue, 13 Jan 2009 08:29:55 +0000 Subject: Update for code security. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7255 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'MdeModulePkg/Library') diff --git a/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c b/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c index 81570a2111..f2aad41e7a 100644 --- a/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c +++ b/MdeModulePkg/Library/DxePlatDriOverLib/PlatDriOverLib.c @@ -1800,6 +1800,8 @@ ConnectDevicePath ( // After this call DevicePath points to the next Instance // Instance = GetNextDevicePathInstance (&DevicePath, &Size); + ASSERT (Instance != NULL); + Next = Instance; while (!IsDevicePathEndType (Next)) { Next = NextDevicePathNode (Next); -- cgit v1.2.3