Skip to content
Snippets Groups Projects
Commit c5819701 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

image: Adjust the workings of fit_check_format()


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's avatarSimon Glass <sjg@chromium.org>
Reported-by: default avatarBruce Monroe <bruce.monroe@intel.com>
Reported-by: default avatarArie Haenel <arie.haenel@intel.com>
Reported-by: default avatarJulien Lenoir <julien.lenoir@intel.com>
parent d5f3aada
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