summaryrefslogtreecommitdiffstats
path: root/src/file_abr.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-09-21 18:10:27 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-09-21 18:10:27 +0200
commit2cc3a1fd2bab0e805f110931ed012ea7ec18fb32 (patch)
tree29a74ce41d47a9f9d2a2198769de8a69cbf5ab9d /src/file_abr.c
parentb75c2fca2a39cea956efff127c345c00e99486f0 (diff)
PhotoRec: force to uint64_t some calculated_file_size
Diffstat (limited to 'src/file_abr.c')
-rw-r--r--src/file_abr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_abr.c b/src/file_abr.c
index a21d4bf..29aef9a 100644
--- a/src/file_abr.c
+++ b/src/file_abr.c
@@ -75,8 +75,8 @@ static int header_check_abr(const unsigned char *buffer, const unsigned int buff
}
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_abr.extension;
- file_recovery_new->min_filesize=4+12+be32(hdr->size);
- file_recovery_new->calculated_file_size=4+12+be32(hdr->size);
+ file_recovery_new->min_filesize=(uint64_t)4+12+be32(hdr->size);
+ file_recovery_new->calculated_file_size=(uint64_t)4+12+be32(hdr->size);
if(file_recovery_new->blocksize < 12)
return 1;
file_recovery_new->data_check=&data_check_abr;