diff options
| author | Mingjie Shen <shen497@purdue.edu> | 2026-07-24 02:28:15 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-08-28 07:43:10 +0300 |
| commit | 81118e5e355b9c6ff779b1d45a88cb10bb5b8d68 (patch) | |
| tree | 341507a13aff4d93ad90babc3eb5af437bb0ec97 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c | |
| parent | ca9df041b18262d25981c3262aeba056a7a7e5ff (diff) | |
| download | edk2-81118e5e355b9c6ff779b1d45a88cb10bb5b8d68.tar.xz | |
MdeModulePkg/ImagePropertiesRecordLib: Fix incorrect use of sizeof
In GetFilename(), the post-loop fallback termination used
sizeof (EfiFileName), which is the size of the CHAR8 * pointer
parameter (8 bytes on X64), not the buffer size. Use EfiFileNameSize -
4 to match the bound of the copy loop above so the string is
terminated at the true end of the buffer.
Tested on OvmfPkgIa32X64, DEBUG, GCC: DumpImageRecords() prints all
runtime image names correctly and NUL-terminated, with no ASSERTs.
Signed-off-by: Mingjie Shen <shen497@purdue.edu>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptExecute.c')
0 files changed, 0 insertions, 0 deletions
