Skip to content
Snippets Groups Projects
Commit 76b391cd authored by Reinhard Pfau's avatar Reinhard Pfau Committed by Luka Perkov
Browse files

tools/kwbimage: fix size computations for v1 images


Fix computation of haeder size and binary header size.
Size of opt header and some 32bit values were not taken into account. This could
result in invalid boot images (due to the wrong binary header size, the image could
claim to have another extension header after the binary extension although there
is none).

Use "uint32_t" instead of "unsigned int" for header size computation.

Signed-off-by: default avatarReinhard Pfau <reinhard.pfau@gdsys.cc>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
parent a8840dce
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment