Skip to content

Commit

Permalink
manifest: fix file size check in resign_image
Browse files Browse the repository at this point in the history
This will allow to use size variable in < 0 checks

Signed-off-by: Adrian Bonislawski <[email protected]>
  • Loading branch information
abonislawski committed Jul 10, 2024
1 parent 9d45332 commit d85b41a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/manifest.c
Original file line number Diff line number Diff line change
Expand Up @@ -1440,7 +1440,8 @@ int resign_image(struct image *image)
{
int key_size, key_file_size;
void *buffer = NULL;
size_t size, read;
size_t read;
int32_t size;
FILE *in_file;
int ret, i;

Expand Down

0 comments on commit d85b41a

Please sign in to comment.