summaryrefslogtreecommitdiffstats
path: root/src/file_gz.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2017-03-03 06:54:30 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2017-03-03 06:54:30 +0100
commite52ec4627508332a833d06d2815cba3d0f34e2b9 (patch)
treefae72028e1041ff833c0912e5ad800dbede62fde /src/file_gz.c
parent1823a008fc22a9357ab3e1c9e1478419409bcd83 (diff)
PhotoRec: recover Ableton Liveset .als files
Diffstat (limited to 'src/file_gz.c')
-rw-r--r--src/file_gz.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/file_gz.c b/src/file_gz.c
index ccdd21a..d50b633 100644
--- a/src/file_gz.c
+++ b/src/file_gz.c
@@ -187,6 +187,13 @@ static int header_check_gz(const unsigned char *buffer, const unsigned int buffe
file_recovery_new->extension="xoj";
return 1;
}
+ if( memcmp(buffer_uncompr, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<Ableton", 0x30)==0 ||
+ memcmp(buffer_uncompr, "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Ableton", 0x2f)==0)
+ {
+ /* Ableton Liveset */
+ file_recovery_new->extension="als";
+ return 1;
+ }
if(strstr((const char*)&buffer_uncompr, "<!DOCTYPE KMYMONEY-FILE>")!=NULL)
{
file_recovery_new->extension="kmy";