]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: default_image: Verify header size
authorPali Rohár <pali@kernel.org>
Sun, 29 Jan 2023 16:44:10 +0000 (17:44 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 6 Feb 2023 19:35:14 +0000 (14:35 -0500)
commit3f837b06b76d06189055a0fcdaee4d31c7758d9e
tree509205509f593952812ac15c4aaedf5f0572da87
parentafd82187b549e3bebc2ae02dc2914f8a43418ec4
tools: default_image: Verify header size

Before reading image header, verify that image size is at least size of
the image header.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/default_image.c