summaryrefslogtreecommitdiffstats
path: root/src/file_zip.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2014-06-14 12:08:18 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2014-06-14 12:08:18 +0200
commitf204d04ebe9eb2e98304c4dad15522b7ae2e27d8 (patch)
tree4dfddf9f06093dc173540e433fa1ad51d586890f /src/file_zip.c
parent24c08099101d600ffd06ddcad43db0285585d6e4 (diff)
PhotoRec: recover SMART Notebook .notebook (zip familly)
Diffstat (limited to 'src/file_zip.c')
-rw-r--r--src/file_zip.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/file_zip.c b/src/file_zip.c
index ed20786..bb542c2 100644
--- a/src/file_zip.c
+++ b/src/file_zip.c
@@ -282,10 +282,13 @@ static int zip_parse_file_entry(file_recovery_t *fr, const char **ext, const uns
/* iWork */
if(len==23 && memcmp(filename, "QuickLook/Thumbnail.jpg", 23)==0)
*ext="pages";
- else if(len==20 && strcasecmp(filename, "META-INF/MANIFEST.MF")==0)
+ else if(len==20 && strncasecmp(filename, "META-INF/MANIFEST.MF", 20)==0)
*ext="jar";
- else if(len==15 && strcasecmp(filename, "chrome.manifest")==0)
+ else if(len==15 && strncasecmp(filename, "chrome.manifest", 15)==0)
*ext="xpi";
+ /* SMART Notebook */
+ else if(len==15 && memcmp(filename, "imsmanifest.xml", 15)==0)
+ *ext="notebook";
else if(len==30 && memcmp(filename, "xsd/MindManagerApplication.xsd", 30)==0)
*ext="mmap";
}