efi: fix and test hii string table reallocations
Get series with b4
b4 am [email protected] change-id 20260916-ptr-670be74dcbd3Versions newest first
- v2 Latest2 patches 1 replyIn review
- 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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | efi_loader: fix string table reallocationslib/ | +36 | 1 reply | |
| 2/2 | efi_selftest: test set_string() HII string table realloclib/ lib/ | +97 | 0 replies |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by.
| Patch | Heinrich Schuchardt |
|---|---|
| 1/2 | R-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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.