Skip to content

efi: fix and test hii string table reallocations

Vincent Stehlé u-boot 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20260916-ptr-670be74dcbd3

Versions newest first

  1. v2 Latest2 patches 1 replyIn review
  2. v11 patch 5 repliesSuperseded

Changes in v2 from the cover letter

- Enhance the HII unit test to cause reallocation with set_string() (suggested by Heinrich).
- Link to v1: https://patch.msgid.link/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2efi_loader: fix string table reallocationslib/efi_loader/efi_hii.c+36 -281 reply
2/2efi_selftest: test set_string() HII string table realloclib/efi_selftest/efi_selftest_hii.c lib/efi_selftest/efi_selftest_hii_data.c+97 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchHeinrich Schuchardt
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] efi: fix and test hii string table reallocations

Here is a couple of patches to:

- Fix the string table reallocations paths in the HII string protocol new_string() and set_string() functions.
- Enhance the HII database protocols selftest to cause reallocation with set_string().

Further testing can be done by forcing stbl->strings = NULL, just after calling realloc(stbl->strings, ...).

---
Changes in v2:
- Enhance the HII unit test to cause reallocation with set_string() (suggested by Heinrich).
- Link to v1: https://patch.msgid.link/[email protected]

---
Vincent Stehlé (2):
efi_loader: fix string table reallocations
efi_selftest: test set_string() HII string table realloc

 lib/efi_loader/efi_hii.c                 | 64 ++++++++++++++++++--------------
 lib/efi_selftest/efi_selftest_hii.c      | 44 ++++++++++++++++++++++
 lib/efi_selftest/efi_selftest_hii_data.c | 53 ++++++++++++++++++++++++++
 3 files changed, 133 insertions(+), 28 deletions(-)

---
base-commit: a06e89ab05eaa2b8344d521319399333cd760ae5
change-id: 20260916-ptr-670be74dcbd3

Best regards,

Signature · 1 line
Vincent.