]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwboot: Explicitly check against size of struct main_hdr_v1
authorMarek Behún <marek.behun@nic.cz>
Fri, 24 Sep 2021 21:07:04 +0000 (23:07 +0200)
committerStefan Roese <sr@denx.de>
Fri, 1 Oct 2021 09:07:13 +0000 (11:07 +0200)
commitb9dcf73d97429151261e54bec8c0b934d67abd49
tree2c99f6d5eafe7118d0dfe0edb7b091f37ef2355a
parenta8bbde1a2291044974a704304559d211b93e10e9
tools: kwboot: Explicitly check against size of struct main_hdr_v1

Explicitly check the image size against size of struct main_hdr_v1.
This way the check is more readable, since the `hdrsz` variable
may semantically contain another value.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c