Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 8f38acae6bd350622dd13dfbcd33777a2a4a0d9f
      
https://github.com/tianocore/edk2/commit/8f38acae6bd350622dd13dfbcd33777a2a4a0d9f
  Author: Aaron Pop <[email protected]>
  Date:   2026-07-30 (Thu, 30 Jul 2026)

  Changed paths:
    M MdeModulePkg/Library/CustomizedDisplayLib/CustomizedDisplayLibInternal.c

  Log Message:
  -----------
  MdeModulePkg: Fix comparison with wider widths

https://codeql.github.com/codeql-query-help/cpp/cpp-comparison-with-wider-type

If the narrow type (smaller range) is compared against a wide type
(larger range), the narrow value may overflow before reaching the wide
value. This can cause unexpected behavior, such as:

Infinite loops (loop condition never becomes false).
Incorrect logic (comparison results are misleading).

Signed-off-by: Aaron Pop <[email protected]>


  Commit: a1aab535ce2a009e91b7b93490a856cc7bf25e27
      
https://github.com/tianocore/edk2/commit/a1aab535ce2a009e91b7b93490a856cc7bf25e27
  Author: Aaron Pop <[email protected]>
  Date:   2026-07-30 (Thu, 30 Jul 2026)

  Changed paths:
    M MdeModulePkg/Library/BootManagerUiLib/BootManager.c
    M MdeModulePkg/Library/DeviceManagerUiLib/DeviceManager.c
    M MdeModulePkg/Library/DxeCapsuleLibFmp/CapsuleOnDisk.c
    M MdeModulePkg/Library/DxeSecurityManagementLib/DxeSecurityManagementLib.c
    M MdeModulePkg/Library/FileExplorerLib/FileExplorer.c
    M MdeModulePkg/Library/SmmLockBoxLib/SmmLockBoxMmLib.c
    M MdeModulePkg/Library/UefiSortLib/UefiSortLib.c

  Log Message:
  -----------
  MdeModulePkg: Fix missing NULL tests

https://github.com/github/codeql/blob/codeql-cli-2.7.3/cpp/ql/src/Critical/MissingNullTest.qhelp

For items which allocate memory, or get a pointer from another
structure, it is important to validate that the pointers
are not null before they are dereferenced.

Signed-off-by: Aaron Pop <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/73f796bcf96d...a1aab535ce2a

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