On 2026-05-21T16:51:21, Josh Law <[email protected]> wrote: > libavb: fix avb_replace() OOM handling > > avb_replace() promises NULL on OOM. Once it had built the first > replacement, a later allocation failure returned that partial buffer. > Callers treat any result as success, so AVB could keep booting with > truncated bootargs. > > Free the partial result and return NULL. The existing callers can then > take their OOM path. > > Signed-off-by: Josh Law <[email protected]> > > lib/libavb/avb_util.c | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <[email protected]>

