summaryrefslogtreecommitdiffstats
path: root/src/file_zip.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-09-11 20:56:02 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2017-09-11 20:56:02 +0200
commit29ce5d3adebbcba9fb6cf0aa341f9d1506c81fc9 (patch)
tree521c42499b1f8671703c8de0ed9e5634553ac8c7 /src/file_zip.c
parenta7e39ee6e17e86d60a0151a1c0f2a4560fb83537 (diff)
PhotoRec: distinguish Apple Numbers .iwa from .zip
Diffstat (limited to 'src/file_zip.c')
-rw-r--r--src/file_zip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/file_zip.c b/src/file_zip.c
index d449d11..387a551 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -849,6 +849,9 @@ static int header_check_zip(const unsigned char *buffer, const unsigned int buff
file_recovery_new->extension="xrns";
else if(len==4 && memcmp(&buffer[30], "Home", 4)==0)
file_recovery_new->extension="sh3d";
+ /* Apple Numbers */
+ else if(len==18 && memcmp(&buffer[30], "Index/Document.iwa", 18)==0)
+ file_recovery_new->extension="numbers";
else
{
file_recovery_new->extension=file_hint_zip.extension;