[U-Boot] [PATCH v1 2/2] kwbimage: fix size computations for v1 images

Stefan Roese sr at denx.de
Fri Nov 27 11:31:18 CET 2015


On 27.11.2015 09:43, Reinhard Pfau wrote:
> 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: Reinhard Pfau <reinhard.pfau at gdsys.cc>
> Cc: Luka Perkov <luka.perkov at sartura.hr>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan



More information about the U-Boot mailing list