[PATCH v3 3/6] bloblist: fix a potential negative size for memmove

Tom Rini trini at konsulko.com
Tue Apr 21 17:03:40 CEST 2026


On Fri, Jul 18, 2025 at 07:16:16AM -0700, Raymond Mao wrote:

> It causes a panic when blob is shrunk and 'new_alloced' is less than
> 'next_ofs'. The data area that needs to be moved should end up at
> 'hdr->used_size'.
> 
> Fixes: 1fe59375498f ("bloblist: Support resizing a blob")
> Signed-off-by: Raymond Mao <raymond.mao at linaro.org>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20260421/a9f7d953/attachment.sig>


More information about the U-Boot mailing list