From 4f068f39cba664fa23b5e84f5661a54301fbb5dc Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Fri, 15 Jul 2011 07:21:13 +0200 Subject: [PATCH] PhotoRec: stricter signature for Fujifilm Raw file (.raf) --- src/file_raf.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/file_raf.c b/src/file_raf.c index 3aec1a18..769d37f5 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 + Copyright (C) 1998-2005,2007-2011 Christophe GRENIER 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=®ister_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; } - -