
13 Oct
2022
13 Oct
'22
12:14 a.m.
On Wed, 12 Oct 2022 at 13:47, Michal Suchanek msuchanek@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@suse.de
common/spl/spl_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Simon Glass sjg@chromium.org