summaryrefslogtreecommitdiffstats
path: root/src/file_aif.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_aif.c
parentb75c2fca2a39cea956efff127c345c00e99486f0 (diff)
PhotoRec: force to uint64_t some calculated_file_size
Diffstat (limited to 'src/file_aif.c')
-rw-r--r--src/file_aif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file_aif.c b/src/file_aif.c
index 67e0423..5504f22 100644
--- a/src/file_aif.c
+++ b/src/file_aif.c
@@ -58,7 +58,7 @@ static int header_check_aif(const unsigned char *buffer, const unsigned int buff
{
reset_file_recovery(file_recovery_new);
file_recovery_new->extension=file_hint_aif.extension;
- file_recovery_new->calculated_file_size=be32(hdr->ckSize)+8;
+ file_recovery_new->calculated_file_size=(uint64_t)be32(hdr->ckSize)+8;
file_recovery_new->data_check=&data_check_size;
file_recovery_new->file_check=&file_check_size;
return 1;
@@ -67,7 +67,7 @@ static int header_check_aif(const unsigned char *buffer, const unsigned int buff
{
reset_file_recovery(file_recovery_new);
file_recovery_new->extension="iff";
- file_recovery_new->calculated_file_size=be32(hdr->ckSize)+8;
+ file_recovery_new->calculated_file_size=(uint64_t)be32(hdr->ckSize)+8;
file_recovery_new->data_check=&data_check_size;
file_recovery_new->file_check=&file_check_size;
return 1;