[PATCH 2/2] spl: spl_legacy: Fix printing image name
Simon Glass
sjg at chromium.org
Thu Oct 13 00:14:44 CEST 2022
On Wed, 12 Oct 2022 at 13:47, Michal Suchanek <msuchanek at suse.de> wrote:
>
> image_set_name does not terminate the name in the image header.
>
> Then is should not be assument it's nul terminated. image_print_contents
> correctly print only IH_NMLEN characters.
>
> Fix printing the unterminated field in spl_parse_legacy_header. The
> format specifies the minimum printed length, not maximum.
>
> Signed-off-by: Michal Suchanek <msuchanek at suse.de>
> ---
>
> common/spl/spl_legacy.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list