]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: kwboot: Check for v1 header size
authorPali Rohár <pali@kernel.org>
Fri, 23 Jul 2021 09:14:21 +0000 (11:14 +0200)
committerStefan Roese <sr@denx.de>
Sat, 31 Jul 2021 07:49:32 +0000 (09:49 +0200)
commit825a2ca023202f73a09660db7a49ac1109917ce8
treebccace9fd8fb11ffe27079df26f825a266fe618f
parentb943eee915d79cbbaf7b4fc6c4c40dec4839380a
tools: kwboot: Check for v1 header size

Too small invalid headers may cause kwboot to crash.
Check for header size of v1 images.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Chris Packham <judge.packham@gmail.com>
Tested-by: Chris Packham <judge.packham@gmail.com>
tools/kwboot.c