Re: [PATCH 2/2] spl: spl_legacy: Fix printing image name

2022-10-12 Thread Simon Glass
On Wed, 12 Oct 2022 at 13:47, Michal Suchanek 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_leg

[PATCH 2/2] spl: spl_legacy: Fix printing image name

2022-10-12 Thread Michal Suchanek
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 m