Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: 7c3952ce51f18cf29c7121a7c3e134303d69a582
https://github.com/tianocore/edk2/commit/7c3952ce51f18cf29c7121a7c3e134303d69a582
Author: Qihang Gao <[email protected]>
Date: 2026-09-25 (Fri, 25 Sep 2026)
Changed paths:
M ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c
Log Message:
-----------
ArmPkg/SmbiosMiscDxe: Avoid overwriting Version in SetBiosVersion
Use a dedicated PcdVersion variable for PcdFirmwareVersionString instead
of assigning it to Version. This prevents the pointer returned by
HiiGetString() from being overwritten and lost.
Also add a NULL check on PcdVersion before calling StrLen()/HiiSetString().
No functional change.
Signed-off-by: Qihang Gao <[email protected]>
Commit: 857e02a51bd899407d812987fdb6a3467b0bca14
https://github.com/tianocore/edk2/commit/857e02a51bd899407d812987fdb6a3467b0bca14
Author: Qihang Gao <[email protected]>
Date: 2026-09-25 (Fri, 25 Sep 2026)
Changed paths:
M ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c
Log Message:
-----------
ArmPkg/SmbiosMiscDxe: Free buffers from HiiGetString()
HiiGetString() returns a pool-allocated string that the caller must
release with FreePool(). Free both DefaultVersionString and Version
before returning to avoid leaking memory.
No functional change intended.
Signed-off-by: Qihang Gao <[email protected]>
Commit: 12478683adf32afcb48925324d4cee84f2e006d4
https://github.com/tianocore/edk2/commit/12478683adf32afcb48925324d4cee84f2e006d4
Author: Qihang Gao <[email protected]>
Date: 2026-09-25 (Fri, 25 Sep 2026)
Changed paths:
M ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type00/MiscBiosVendorFunction.c
Log Message:
-----------
ArmPkg/SmbiosMiscDxe: Handle NULL strings in SetBiosVersion
HiiGetString() may return NULL, which would cause a NULL pointer
dereference in StrCmp() and StrLen(). Add NULL checks for
DefaultVersionString and Version before using them.
Treating a NULL DefaultVersionString or Version the same as an empty
or default version also allows the firmware version to be taken from
PcdFirmwareVersionString in that case, preserving the existing
fallback logic without changing behavior when both strings are valid.
Signed-off-by: Qihang Gao <[email protected]>
Commit: ecee358dea7be4ba4730067e45951938d10ae723
https://github.com/tianocore/edk2/commit/ecee358dea7be4ba4730067e45951938d10ae723
Author: Qihang Gao <[email protected]>
Date: 2026-09-25 (Fri, 25 Sep 2026)
Changed paths:
M ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c
M ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/MainHexEditor.c
Log Message:
-----------
ShellPkg/UefiShellDebug1CommandsLib: Fix memory leaks in help display
HiiGetString() returns a dynamically allocated string that must be
released with FreePool(). In MainCommandDisplayHelp() and
HMainCommandDisplayHelp(), the returned InfoString is printed but
never freed, leaking memory each time the help screen is displayed.
Release InfoString after ShellPrintEx() in both functions.
No functional change intended.
Signed-off-by: Qihang Gao <[email protected]>
Commit: 358e0a5a878b25154c3dd310232ed31edfd2c1db
https://github.com/tianocore/edk2/commit/358e0a5a878b25154c3dd310232ed31edfd2c1db
Author: Qihang Gao <[email protected]>
Date: 2026-09-25 (Fri, 25 Sep 2026)
Changed paths:
M RedfishPkg/Library/HiiUtilityLib/HiiUtilityInternal.c
Log Message:
-----------
RedfishPkg/HiiUtilityLib: Fix memory leak in HiiUtilityInternal
StrValue is obtained from HiiGetString(), which allocates a new string
buffer. The buffer is used to set DefaultValue->Buffer but is never
released, causing a memory leak each time this code path is executed.
Add FreePool (StrValue) after it is no longer needed.
No functional change intended.
Signed-off-by: Qihang Gao <[email protected]>
Commit: 76c4633bb7082abd9e54c3c829c1db4b5f3ee906
https://github.com/tianocore/edk2/commit/76c4633bb7082abd9e54c3c829c1db4b5f3ee906
Author: Qihang Gao <[email protected]>
Date: 2026-09-25 (Fri, 25 Sep 2026)
Changed paths:
M MdeModulePkg/Universal/SetupBrowserDxe/Setup.c
Log Message:
-----------
MdeModulePkg/SetupBrowserDxe: Fix memory leak in GetQuestionDefault()
StrValue is obtained from HiiGetString(), which allocates a new string
buffer. The buffer is used to set DefaultValue->Buffer but is never
released, causing a memory leak each time this code path is executed.
Add FreePool (StrValue) after it is no longer needed.
No functional change intended.
Signed-off-by: Qihang Gao <[email protected]>
Commit: 0bdafe9fb28ffd54dbc1fe74659a491e57ebeadb
https://github.com/tianocore/edk2/commit/0bdafe9fb28ffd54dbc1fe74659a491e57ebeadb
Author: Qihang Gao <[email protected]>
Date: 2026-09-25 (Fri, 25 Sep 2026)
Changed paths:
M MdeModulePkg/Library/UefiHiiLib/HiiLib.c
Log Message:
-----------
MdeModulePkg/UefiHiiLib: Fix memory leaks in ValidateQuestionFromVfr
QuestionName is allocated by HiiGetString() but is not released in
several code path. This causes memory leaks whenever these paths are
taken.
Add FreePool (QuestionName) after it is no longer needed.
No functional change intended.
Signed-off-by: Qihang Gao <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/a7966ee33876...0bdafe9fb28f
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