summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2018-09-22 09:18:53 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2018-09-22 09:18:53 +0200
commit2711273592def5f0f3d843112e90e8d30a4f5818 (patch)
tree82ca917785899dbc64ec96434c92e9ef09e31178
parent9d8b1382c951b82a54c2de94348450447f59ee09 (diff)
PhotoRec: recover cr3 files (mov file family)
-rw-r--r--src/file_mov.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/file_mov.c b/src/file_mov.c
index 254c5a6..dc9c138 100644
--- a/src/file_mov.c
+++ b/src/file_mov.c
@@ -273,6 +273,18 @@ static int header_check_mov_aux(const unsigned char *buffer, const unsigned int
file_recovery_new->calculated_file_size=i+atom_size;
return 1;
}
+ else if(memcmp(&buffer[i+8], "crx ", 4)==0)
+ {
+ reset_file_recovery(file_recovery_new);
+ file_recovery_new->extension="cr3";
+ file_recovery_new->file_rename=&file_rename_mov;
+ if(file_recovery->blocksize < 16)
+ return 1;
+ file_recovery_new->data_check=&data_check_mov;
+ file_recovery_new->file_check=&file_check_size;
+ file_recovery_new->calculated_file_size=i+atom_size;
+ return 1;
+ }
}
if(buffer[i+4]=='m' && buffer[i+5]=='d' && buffer[i+6]=='a' && buffer[i+7]=='t')
{