Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 77cf8c8c10160c886bb932309c3498db435ff7c6
      
https://github.com/tianocore/edk2/commit/77cf8c8c10160c886bb932309c3498db435ff7c6
  Author: Aaron Pop <[email protected]>
  Date:   2026-08-05 (Wed, 05 Aug 2026)

  Changed paths:
    M MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
    M MdeModulePkg/Library/UefiBootManagerLib/BmBootDescription.c
    M MdeModulePkg/Library/UefiBootManagerLib/BmConsole.c
    M MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c
    M MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c
    M MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c
    M MdeModulePkg/Library/UefiBootManagerLib/BmMisc.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]>


  Commit: 72d0846c4c0ceab2dd228d82be94b88237e8dde3
      
https://github.com/tianocore/edk2/commit/72d0846c4c0ceab2dd228d82be94b88237e8dde3
  Author: Aaron Pop <[email protected]>
  Date:   2026-08-05 (Wed, 05 Aug 2026)

  Changed paths:
    M MdeModulePkg/Library/UefiBootManagerLib/BmBoot.c
    M MdeModulePkg/Library/UefiBootManagerLib/BmConsole.c
    M MdeModulePkg/Library/UefiBootManagerLib/BmDriverHealth.c
    M MdeModulePkg/Library/UefiBootManagerLib/BmHotkey.c

  Log Message:
  -----------
  MdeModulePkg: Fix conditionally uninitialized variables

https://github.com/github/codeql/blob/codeql-cli-2.7.3/cpp/ql/src/Security/CWE/CWE-457/ConditionallyUninitializedVariable.qhelp

Some local variables, when going through a code path, can
end up uninitialized (using the value they had at the start
of the function). This is generally due to an error path
that can occur based on the library instances, or the
unchecked error (i.e. a allocation failing).

These variables should be initialized with a known value
that will result in the function being able to exit
gracefully.

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


Compare: https://github.com/tianocore/edk2/compare/476b78bbad7e...72d0846c4c0c

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