summaryrefslogtreecommitdiffstats
path: root/src/file_aif.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-06-23 19:45:49 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2015-06-23 19:45:49 +0200
commit1f8d8c463254715273411c2a14afa5acbc9bbd2a (patch)
tree89c35edda535d9a11b9967cca58a7a08f89f26c6 /src/file_aif.c
parentff35213e531f45d249a306084ab4646cbae0fc06 (diff)
PhotoRec: recover more Interchange File Format .iff files
Diffstat (limited to 'src/file_aif.c')
-rw-r--r--src/file_aif.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/file_aif.c b/src/file_aif.c
index 462f410..67e0423 100644
--- a/src/file_aif.c
+++ b/src/file_aif.c
@@ -63,6 +63,15 @@ static int header_check_aif(const unsigned char *buffer, const unsigned int buff
file_recovery_new->file_check=&file_check_size;
return 1;
}
+ if(memcmp(&buffer[8], "ILBMBMHD", 8)==0)
+ {
+ reset_file_recovery(file_recovery_new);
+ file_recovery_new->extension="iff";
+ file_recovery_new->calculated_file_size=be32(hdr->ckSize)+8;
+ file_recovery_new->data_check=&data_check_size;
+ file_recovery_new->file_check=&file_check_size;
+ return 1;
+ }
return 0;
}