[PATCH 5/8] image: Adjust the workings of fit_check_format()

Tom Rini trini at konsulko.com
Tue Feb 16 04:36:14 CET 2021


On Mon, Feb 15, 2021 at 05:08:09PM -0700, Simon Glass wrote:

> At present this function does not accept a size for the FIT. This means
> that it must be read from the FIT itself, introducing potential security
> risk. Update the function to include a size parameter, which can be
> invalid, in which case fit_check_format() calculates it.
> 
> For now no callers pass the size, but this can be updated later.
> 
> Also adjust the return value to an error code so that all the different
> types of problems can be distinguished by the user.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reported-by: Bruce Monroe <bruce.monroe at intel.com>
> Reported-by: Arie Haenel <arie.haenel at intel.com>
> Reported-by: Julien Lenoir <julien.lenoir at intel.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210215/9ff98505/attachment.sig>


More information about the U-Boot mailing list