Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 32d1497239aa8f377d690093021dd8d8f1d867f4
      
https://github.com/tianocore/edk2/commit/32d1497239aa8f377d690093021dd8d8f1d867f4
  Author: VarshitPandya <[email protected]>
  Date:   2026-06-02 (Tue, 02 Jun 2026)

  Changed paths:
    M DynamicTablesPkg/Library/Smbios/SmbiosType4Lib/SmbiosType4Generator.c

  Log Message:
  -----------
  DynamicTablesPkg: Fix SMBIOS Type 4 error cleanup

Check the return status from StringTableInitialize() before using the
string table while building SMBIOS Type 4 records.

Free the string table on all error paths after successful initialization,
including string insertion failures, SMBIOS record allocation failure, and
invalid PPTT hierarchy traversal. Also free the partially allocated SMBIOS
record when hierarchy traversal fails after record allocation.

On the common error path, free any SMBIOS records already added to the
TableList before freeing the TableList itself. This avoids leaking records
when generation fails after one or more Type 4 records have already been
built.

Signed-off-by: Varshit Pandya <[email protected]>


  Commit: 0923de81ab3ee7e6fc9e3e14d37d2f946fe19554
      
https://github.com/tianocore/edk2/commit/0923de81ab3ee7e6fc9e3e14d37d2f946fe19554
  Author: VarshitPandya <[email protected]>
  Date:   2026-06-02 (Tue, 02 Jun 2026)

  Changed paths:
    M DynamicTablesPkg/Library/Smbios/SmbiosType7Lib/SmbiosType7Generator.c

  Log Message:
  -----------
  DynamicTablesPkg: Fix SMBIOS Type 7 string table cleanup

Check the return status from StringTableInitialize() before using the
SMBIOS Type 7 string table.

Free the string table when adding the socket designation string fails and
after publishing the final string set into the SMBIOS record.

Also free any Type 7 records already added to TableList on the common
error path before freeing TableList itself.

Signed-off-by: Varshit Pandya <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/2cafe974d709...0923de81ab3e

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