summaryrefslogtreecommitdiffstats
path: root/src/file_gpg.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-02-26 10:08:48 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2018-02-26 10:08:48 +0100
commit8fd273959816b12b60a1093e1037bc2a6a26d3d2 (patch)
tree536efbbf90cc0d66e8bbf081db91bcf605fd440b /src/file_gpg.c
parentd13e22df20f5111548e1438a6e832b42a2283182 (diff)
PhotoRec: fix potential endless loop/crash when parsing abr files,
use uint64_t when parsing exe, gpg, hdf, indd files fix calculate_packet_size() prototype
Diffstat (limited to 'src/file_gpg.c')
-rw-r--r--src/file_gpg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_gpg.c b/src/file_gpg.c
index b1aadf0..387e168 100644
--- a/src/file_gpg.c
+++ b/src/file_gpg.c
@@ -410,9 +410,9 @@ static void file_check_gpg(file_recovery_t *file_recovery)
static int header_check_gpg(const unsigned char *buffer, const unsigned int buffer_size, const unsigned int safe_header_only, const file_recovery_t *file_recovery, file_recovery_t *file_recovery_new)
{
+ uint64_t i=0;
unsigned int packet_tag[16];
unsigned int nbr=0;
- unsigned int i=0;
int partial_body_length=0;
int stop=0;
memset(packet_tag, 0, sizeof(packet_tag));