From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by mx.groups.io with SMTP id smtpd.web08.13634.1628451644674179632 for ; Sun, 08 Aug 2021 12:40:45 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@posteo.de header.s=2017 header.b=IbUQiv6m; spf=pass (domain: posteo.de, ip: 185.67.36.65, mailfrom: mhaeuser@posteo.de) Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 2887D240029 for ; Sun, 8 Aug 2021 21:40:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1628451643; bh=SGeUf9HVaDHfiZzmyjkMKDOnnNHEU+AFUkmxZmyf+Qw=; h=From:To:Cc:Subject:Date:From; b=IbUQiv6mFm6QqW9xEYh8M5DvlZ+/JaBvOvNqmZj80E7H/FSM8oUUhDRN3HUPVXIBx EHrY0/xMJYalBzcMU1fvN5WezO5A3Mlwonr46otcYiwgPjN93tED7qGsFUnMatdiOX rRLuCeLcMBYQvZInIb+r7cdw0yRpTC/IONIgQl+1VOAaBCfx778VFpd4wYCsIE9i3l lALDkaVonEUqUJMd3ggkgCLgC40VKzN655TZtmDIL8tD6glJ/2LJsLGzfBMe6eIJGv +AEZiCI6kpJCaI6pJGICUdFWksf2SBCngEgXEr/LHQL2/W9MMjk4m/uP8dKDf9C4Gj SpJGryAWqWwRQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GjV1k3JxGz6tm6; Sun, 8 Aug 2021 21:40:42 +0200 (CEST) From: =?UTF-8?B?TWFydmluIEjDpHVzZXI=?= To: devel@edk2.groups.io Cc: Jian J Wang , Hao A Wu , Dandan Bi , Liming Gao , Vitaly Cheptsov Subject: [PATCH] MdeModulePkg/CoreDxe: Mandatory LoadedImage for DebugImageInfoTable Date: Sun, 8 Aug 2021 19:40:00 +0000 Message-Id: <081c74eb7083d20371c6885530b578fde05153e5.1628443860.git.mhaeuser@posteo.de> In-Reply-To: <88816e99692b15cf61f3057ffab4d54455159c7c.1628443860.git.mhaeuser@posteo.de> References: <88816e99692b15cf61f3057ffab4d54455159c7c.1628443860.git.mhaeuser@posteo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable To make parsing DebugImageInfoTable easier and safer, require the LoadedImage protocol instance to be valid for every NormalImage entry. Cc: Jian J Wang Cc: Hao A Wu Cc: Dandan Bi Cc: Liming Gao Cc: Vitaly Cheptsov Signed-off-by: Marvin H=C3=A4user --- MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c b/MdeModulePkg/Cor= e/Dxe/Misc/DebugImageInfo.c index cc22e23eb0b3..afc54965bc33 100644 --- a/MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c +++ b/MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c @@ -173,6 +173,8 @@ CoreNewDebugImageInfoEntry ( UINTN TableSize;=0D EFI_DEBUG_IMAGE_INFO_NORMAL *NormalImage;=0D =0D + ASSERT (LoadedImage !=3D NULL);=0D +=0D //=0D // Set the flag indicating that we're in the process of updating the tab= le.=0D //=0D --=20 2.31.1