summaryrefslogtreecommitdiffstats
path: root/src/file_oci.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-09-12 13:16:15 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-09-12 13:16:15 +0200
commitb75c2fca2a39cea956efff127c345c00e99486f0 (patch)
treede23d458cffe11c9568621c64b4815291fe3f0ba /src/file_oci.c
parent65543b032a3f3978f46add944c050d30e2d1a400 (diff)
PhotoRec: avoid potential endless loops
Diffstat (limited to 'src/file_oci.c')
-rw-r--r--src/file_oci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_oci.c b/src/file_oci.c
index b033108..94145aa 100644
--- a/src/file_oci.c
+++ b/src/file_oci.c
@@ -69,7 +69,7 @@ static data_check_t data_check_oci(const unsigned char *buffer, const unsigned i
(buffer[i+2]>='A' && buffer[i+2]<='Z') &&
(buffer[i+3]>='A' && buffer[i+3]<='Z'))
{
- file_recovery->calculated_file_size+=atom_size+8;
+ file_recovery->calculated_file_size+=(uint64_t)8+atom_size;
}
else
{