To make parsing DebugImageInfoTable easier and safer, require the LoadedImage protocol instance to be valid for every NormalImage entry.
Cc: Jian J Wang <[email protected]> Cc: Hao A Wu <[email protected]> Cc: Dandan Bi <[email protected]> Cc: Liming Gao <[email protected]> Cc: Vitaly Cheptsov <[email protected]> Signed-off-by: Marvin Häuser <[email protected]> --- MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Core/Dxe/Misc/DebugImageInfo.c b/MdeModulePkg/Core/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; EFI_DEBUG_IMAGE_INFO_NORMAL *NormalImage; + ASSERT (LoadedImage != NULL); + // // Set the flag indicating that we're in the process of updating the table. // -- 2.31.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#78947): https://edk2.groups.io/g/devel/message/78947 Mute This Topic: https://groups.io/mt/84764910/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
