Skip to content

Commit d85b41a

Browse files
committed
manifest: fix file size check in resign_image
This will allow to use size variable in < 0 checks Signed-off-by: Adrian Bonislawski <[email protected]>
1 parent 9d45332 commit d85b41a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/manifest.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,8 @@ int resign_image(struct image *image)
14401440
{
14411441
int key_size, key_file_size;
14421442
void *buffer = NULL;
1443-
size_t size, read;
1443+
size_t read;
1444+
int32_t size;
14441445
FILE *in_file;
14451446
int ret, i;
14461447

0 commit comments

Comments
 (0)