Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 81118e5e355b9c6ff779b1d45a88cb10bb5b8d68
      
https://github.com/tianocore/edk2/commit/81118e5e355b9c6ff779b1d45a88cb10bb5b8d68
  Author: Mingjie Shen <[email protected]>
  Date:   2026-08-28 (Fri, 28 Aug 2026)

  Changed paths:
    M MdeModulePkg/Library/ImagePropertiesRecordLib/ImagePropertiesRecordLib.c

  Log Message:
  -----------
  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 <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to