diff options
author | Christophe Grenier <grenier@cgsecurity.org> | 2018-03-22 10:04:15 +0100 |
---|---|---|
committer | Christophe Grenier <grenier@cgsecurity.org> | 2018-03-22 10:04:15 +0100 |
commit | 4763e1e5b1f154e18b135cbd0d105c6529fba7fd (patch) | |
tree | f31362268167d02c297474c8468f25130b3d107f | |
parent | c095665d1c5caea598afb3f6d4bbc08f3a55ac61 (diff) |
PhotoRec: recover Celtx, Screenwriting & Media Pre-production, and Adobe xd files
-rw-r--r-- | src/file_zip.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/file_zip.c b/src/file_zip.c index a9dfe92..d865b49 100644 --- a/src/file_zip.c +++ b/src/file_zip.c @@ -273,6 +273,9 @@ static int zip_parse_file_entry(file_recovery_t *fr, const char **ext, const uns *ext="kmz"; else if(len==4 && memcmp(filename, "Home", 4)==0) sh3d=1; + /* Celtx, Screenwriting & Media Pre-production file */ + else if(len==9 && memcmp(filename, "local.rdf", 9)==0) + *ext="celtx"; } else if(file_nbr==1 && sh3d==1) { @@ -828,6 +831,8 @@ static int header_check_zip(const unsigned char *buffer, const unsigned int buff file_recovery_new->extension="odt"; else if(compressed_size==43 && memcmp(&buffer[38],"application/vnd.oasis.opendocument.graphics",43)==0) file_recovery_new->extension="odg"; + else if(compressed_size==45 && memcmp(&buffer[38],"application/vnd.adobe.sparkler.project+dcxucf",45)==0) + file_recovery_new->extension="xd"; else if(compressed_size==46 && memcmp(&buffer[38],"application/vnd.oasis.opendocument.spreadsheet",46)==0) file_recovery_new->extension="ods"; else if(compressed_size==47 && memcmp(&buffer[38],"application/vnd.oasis.opendocument.presentation",47)==0) |