]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwboot: Validate optional kwbimage v1 headers
authorPali Rohár <pali@kernel.org>
Sun, 8 Jan 2023 12:42:07 +0000 (13:42 +0100)
committerStefan Roese <sr@denx.de>
Wed, 1 Mar 2023 05:39:17 +0000 (06:39 +0100)
commit53ee6ec82744666719f2c9954a013c4397b77be9
tree7ab1ec29c00e077447e19c7aed0cc82cbcaa778e
parent7665ed2fa04e0726e142e13bcd77b738e912357f
tools: kwboot: Validate optional kwbimage v1 headers

Before starting parsing of kwbimage, first validate that all optional v1
headers and correct. This prevents kwboot crashes on invalid input.

Signed-off-by: Pali Rohár <pali@kernel.org>
tools/kwboot.c