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, ...).

Signed-off-by: Vincent Stehlé <[email protected]>
---
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,
--  
Vincent.

Reply via email to