summaryrefslogtreecommitdiffstats
path: root/src/file_raf.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-07-15 07:21:13 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2011-07-15 07:21:13 +0200
commit4f068f39cba664fa23b5e84f5661a54301fbb5dc (patch)
tree3068becad4ddca03e5d67a0e7b79ae5c4b489a72 /src/file_raf.c
parent2d1daf3aabf58a2afda09476619de25b9668950d (diff)
PhotoRec: stricter signature for Fujifilm Raw file (.raf)
Diffstat (limited to 'src/file_raf.c')
-rw-r--r--src/file_raf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/file_raf.c b/src/file_raf.c
index 3aec1a1..769d37f 100644
--- a/src/file_raf.c
+++ b/src/file_raf.c
@@ -2,7 +2,7 @@
File: file_raf.c
- Copyright (C) 1998-2005,2007 Christophe GRENIER <grenier@cgsecurity.org>
+ Copyright (C) 1998-2005,2007-2011 Christophe GRENIER <grenier@cgsecurity.org>
This software is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -44,7 +44,10 @@ const file_hint_t file_hint_raf= {
.register_header_check=&register_header_check_raf
};
-static const unsigned char raf_header[8]= {'F','U','J','I','F','I','L','M'};
+static const unsigned char raf_header[16]= {
+ 'F','U','J','I','F','I','L','M',
+ 'C','C','D','-','R','A','W',' '
+};
static void register_header_check_raf(file_stat_t *file_stat)
{
@@ -62,5 +65,3 @@ static int header_check_raf(const unsigned char *buffer, const unsigned int buff
}
return 0;
}
-
-