All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] libavb: fix avb_replace() OOM handling
@ 2026-05-21 16:51 Josh Law
  2026-05-21 16:51 ` [PATCH 1/1] " Josh Law
  0 siblings, 1 reply; 5+ messages in thread
From: Josh Law @ 2026-05-21 16:51 UTC (permalink / raw)
  To: u-boot; +Cc: mkorpershoek, igor.opaniuk, trini, Josh Law

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-26 13:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20260521163248.15866-1-josh2@disroot.org>
     [not found] ` <20260521163248.15866-2-josh2@disroot.org>
2026-05-22 18:35   ` [PATCH 1/1] libavb: fix avb_replace() OOM handling Tom Rini
2026-05-26 13:17     ` Mattijs Korpershoek
2026-05-26 13:18       ` Josh Law
2026-05-21 16:51 [PATCH 0/1] " Josh Law
2026-05-21 16:51 ` [PATCH 1/1] " Josh Law
2026-05-25 15:15   ` Simon Glass

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.