diff options
Diffstat (limited to 'tools/fit_common.c')
-rw-r--r-- | tools/fit_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/fit_common.c b/tools/fit_common.c index cdf987d..52b6329 100644 --- a/tools/fit_common.c +++ b/tools/fit_common.c @@ -26,7 +26,8 @@ int fit_verify_header(unsigned char *ptr, int image_size, struct image_tool_params *params) { - if (fdt_check_header(ptr) != EXIT_SUCCESS || !fit_check_format(ptr)) + if (fdt_check_header(ptr) != EXIT_SUCCESS || + fit_check_format(ptr, IMAGE_SIZE_INVAL)) return EXIT_FAILURE; return EXIT_SUCCESS; |