commit | 811821eb23d5f65fbb47298de291699c9e94e1ac | [log] [tgz] |
---|---|---|
author | Marek BehĂșn <marek.behun@nic.cz> | Fri Sep 24 23:07:04 2021 +0200 |
committer | Stefan Roese <sr@denx.de> | Fri Oct 01 11:07:13 2021 +0200 |
tree | 2c99f6d5eafe7118d0dfe0edb7b091f37ef2355a | |
parent | d9355bf169c2db880a751e97b012614c214562d6 [diff] |
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>