From: "Vincent Stehlé" <vincent.stehle@arm.com>
To: u-boot@lists.u-boot-project.org
Cc: "Heinrich Schuchardt" <xypron.glpk@gmx.de>,
"Ilias Apalodimas" <ilias.apalodimas@linaro.org>,
"Tom Rini" <trini@konsulko.com>,
"Leif Lindholm" <leif.lindholm@oss.qualcomm.com>,
"Rob Clark" <robin.clark@oss.qualcomm.com>,
"AKASHI Takahiro" <akashi.tkhro@gmail.com>,
"Alexander Graf" <agraf@csgraf.de>,
"Vincent Stehlé" <vincent.stehle@arm.com>
Subject: [PATCH v2 0/2] efi: fix and test hii string table reallocations
Date: Tue, 22 Sep 2026 11:15:15 +0200 [thread overview]
Message-ID: <20260922-ptr-v2-0-58817a31c67f@arm.com> (raw)
In-Reply-To: <20260917-ptr-v1-1-7d60d07b849e@arm.com>
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é <vincent.stehle@arm.com>
---
Changes in v2:
- Enhance the HII unit test to cause reallocation with set_string()
(suggested by Heinrich).
- Link to v1: https://patch.msgid.link/20260917-ptr-v1-1-7d60d07b849e@arm.com
---
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.
next prev parent reply other threads:[~2026-09-22 9:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-17 9:45 [PATCH] efi_loader: fix string table reallocations Vincent Stehlé
2026-09-17 16:23 ` Heinrich Schuchardt
2026-09-18 8:51 ` Vincent Stehlé
2026-09-18 16:22 ` Heinrich Schuchardt
2026-09-21 9:25 ` Vincent Stehlé
2026-09-22 9:10 ` Vincent Stehlé
2026-09-22 9:15 ` Vincent Stehlé [this message]
2026-09-22 9:15 ` [PATCH v2 1/2] " Vincent Stehlé
2026-10-11 6:32 ` Heinrich Schuchardt
2026-09-22 9:15 ` [PATCH v2 2/2] efi_selftest: test set_string() HII string table realloc Vincent Stehlé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260922-ptr-v2-0-58817a31c67f@arm.com \
--to=vincent.stehle@arm.com \
--cc=agraf@csgraf.de \
--cc=akashi.tkhro@gmail.com \
--cc=ilias.apalodimas@linaro.org \
--cc=leif.lindholm@oss.qualcomm.com \
--cc=robin.clark@oss.qualcomm.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.u-boot-project.org \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.