[PATCH] upl: Fix buf array size

Simon Glass sjg at chromium.org
Thu Nov 13 20:32:51 CET 2025


On Tue, 11 Nov 2025 at 03:37, Francois Berder <fberder at outlook.fr> wrote:
>
> Size of array buf was incorrect due to sizeof returning the
> size of an integer (typically 32 bits) instead of a u64 type
> (64 bits). Hence, buf array was shorter than expected.
>
> Signed-off-by: Francois Berder <fberder at outlook.fr>
> ---
>  boot/upl_write.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>

That is a bit nasty! Thanks for finding it.

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list