MdeModulePkg: Unify EfiFileName Parsing

The various cores all attempt to print the EfiFileName when
loading/dispatching drivers, but they are not unified on
approach. This commit ensures they are using the same buffer
size and the loop parsing variables are unsigned, as we should
not have a negative index.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
This commit is contained in:
Oliver Smith-Denny 2025-07-22 10:07:45 -07:00 committed by mergify[bot]
parent bcd8509640
commit c3479204cc
3 changed files with 4 additions and 4 deletions

View file

@ -586,7 +586,7 @@ CoreLoadPeImage (
UINTN Size;
UINTN Index;
UINTN StartIndex;
CHAR8 EfiFileName[256];
CHAR8 EfiFileName[512];
ZeroMem (&Image->ImageContext, sizeof (Image->ImageContext));

View file

@ -625,8 +625,8 @@ PeiLoadImageLoadImage (
EFI_SECTION_TYPE SearchType2;
CHAR8 *AsciiString;
CHAR8 EfiFileName[512];
INT32 Index;
INT32 StartIndex;
UINTN Index;
UINTN StartIndex;
*EntryPoint = 0;
ImageSize = 0;

View file

@ -327,7 +327,7 @@ SmmLoadImage (
PE_COFF_LOADER_IMAGE_CONTEXT ImageContext;
UINTN Index;
UINTN StartIndex;
CHAR8 EfiFileName[256];
CHAR8 EfiFileName[512];
PERF_LOAD_IMAGE_BEGIN (DriverEntry->ImageHandle);