mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
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:
parent
bcd8509640
commit
c3479204cc
3 changed files with 4 additions and 4 deletions
|
|
@ -586,7 +586,7 @@ CoreLoadPeImage (
|
|||
UINTN Size;
|
||||
UINTN Index;
|
||||
UINTN StartIndex;
|
||||
CHAR8 EfiFileName[256];
|
||||
CHAR8 EfiFileName[512];
|
||||
|
||||
ZeroMem (&Image->ImageContext, sizeof (Image->ImageContext));
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue