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.20682.1628502716056564496 for ; Mon, 09 Aug 2021 02:51:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@posteo.de header.s=2017 header.b=BipFqhhA; 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 EDF69240029 for ; Mon, 9 Aug 2021 11:51:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1628502714; bh=SGeUf9HVaDHfiZzmyjkMKDOnnNHEU+AFUkmxZmyf+Qw=; h=From:To:Cc:Subject:Date:From; b=BipFqhhAhVunjcTYnYwikJFVrcCXYtXn05IaMiiRTRzeSwYL1yBuvWAEuIbS/I3HT ATAaR49d6z2uHDN1b9eCEFxvIavXsqmdFoSZIFEHob5pmSm3M49xY/IYmeGTbk9Im3 hUyPBZCPHDY4RF2YEnHOPqJrvM9HILiDcnUheXejjuS9hvy21l+9UBXuCGEYswFp4c H23CP+egTQ95OM8t4oa4PXFSKWgi0Yy1qj96tTKIxjtuo01m32FQ7DENOR07vIcegw bd5IjnzpjpnEjmvLnLBnHdDoU9PzJrkjAnxJrHxNaH5pIVJ15lwLgN50hSD+bSz2Kj JwZ2K40juYmBA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Gjrvs3HsQz6tmL; Mon, 9 Aug 2021 11:51:53 +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 v2 5/7] MdeModulePkg/CoreDxe: Mandatory LoadedImage for DebugImageInfoTable Date: Mon, 9 Aug 2021 09:51:30 +0000 Message-Id: <081c74eb7083d20371c6885530b578fde05153e5.1628502345.git.mhaeuser@posteo.de> In-Reply-To: References: 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