Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 5be1bccd9cd009e54c75ee31fb8f760dfb7954b1
      
https://github.com/tianocore/edk2/commit/5be1bccd9cd009e54c75ee31fb8f760dfb7954b1
  Author: Kun Qin <[email protected]>
  Date:   2025-11-22 (Sat, 22 Nov 2025)

  Changed paths:
    M MdeModulePkg/Core/Dxe/Gcd/Gcd.c

  Log Message:
  -----------
  MdeModulePkg: DxeCore: Check overflow before using resource hob memory top

Current GCD logic uses plain addition calulation when iterating through
the resource descriptor hobs. However, if the resource descriptor is
incorrectly prepared, this could cause incorrect memory initialization
and other failures down the boot process.

This change adds an overflow check before using the value.

Signed-off-by: Kun Qin <[email protected]>


  Commit: feeb137d43b7c00623b602a2a3fa7352c712ef81
      
https://github.com/tianocore/edk2/commit/feeb137d43b7c00623b602a2a3fa7352c712ef81
  Author: Kun Qin <[email protected]>
  Date:   2025-11-22 (Sat, 22 Nov 2025)

  Changed paths:
    M MdeModulePkg/Core/Dxe/Gcd/Gcd.c

  Log Message:
  -----------
  MdeModulePkg: DxeCore: Adding check for underflow before subtraction

During DXE core memory service initialization, the system would check
available resource descriptor hobs against the memory top from PHIT hob.
However, it is possible that a given resource descriptor hob will not be
larger than the cover the memory top, causing the Length calculation to
underflow.

This change adds a check for potential underflow before performing the
subtraction.

Signed-off-by: Kun Qin <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/e93ee87643a3...feeb137d43b7

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