From: Josh Law <josh2@disroot.org>
To: u-boot@lists.denx.de
Cc: mkorpershoek@kernel.org, igor.opaniuk@gmail.com,
trini@konsulko.com, Josh Law <josh2@disroot.org>
Subject: [PATCH 0/1] libavb: fix avb_replace() OOM handling
Date: Thu, 21 May 2026 16:51:21 +0000 [thread overview]
Message-ID: <20260521165122.17475-1-josh2@disroot.org> (raw)
Hi folks,
Since I am a new contributor, I would like to introduce myself first. I
am 15, I am from the UK, and I write C. I am interested in lib/, ARM
devices, and Android.
Enough of the introduction. Let's talk about the patch.
avb_replace() is documented to return NULL on OOM. It already did that
before any output was built, but if a later allocation failed after the
first replacement, it returned the partial buffer instead. The callers
only treat NULL as failure, so they could keep booting with truncated AVB
bootargs.
This patch frees the partial buffer and returns NULL. The existing
callers can then report OOM instead of accepting a shortened result.
Josh Law (1):
libavb: fix avb_replace() OOM handling
lib/libavb/avb_util.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
--
2.47.3
next reply other threads:[~2026-05-21 16:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-21 16:51 Josh Law [this message]
2026-05-21 16:51 ` [PATCH 1/1] libavb: fix avb_replace() OOM handling Josh Law
2026-05-25 15:15 ` Simon Glass
2026-05-26 12:52 ` [PATCH 0/1] " Javier Viguera
2026-05-26 13:10 ` Mattijs Korpershoek
2026-05-26 13:17 ` Josh Law
2026-05-26 14:23 ` Tom Rini
2026-05-26 16:51 ` Kuan-Wei Chiu
2026-05-26 16:53 ` Tom Rini
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=20260521165122.17475-1-josh2@disroot.org \
--to=josh2@disroot.org \
--cc=igor.opaniuk@gmail.com \
--cc=mkorpershoek@kernel.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.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.