summaryrefslogtreecommitdiffstats
path: root/src/file_txt.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2015-12-22 15:25:03 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2015-12-22 15:25:03 +0100
commitf73ae37ab82c8968f00ccbd360baa776c7873d4b (patch)
tree4fede0defe07019b954effcf4778d06cb3c37070 /src/file_txt.c
parentc19ec047b8d6e7ca6dedd787098ef692ce3e75fd (diff)
PhotoRec: fix when carving jpg with blocksize forced to 1 byte
Diffstat (limited to 'src/file_txt.c')
-rw-r--r--src/file_txt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file_txt.c b/src/file_txt.c
index a8b799a..b86a0d1 100644
--- a/src/file_txt.c
+++ b/src/file_txt.c
@@ -862,7 +862,8 @@ static int header_check_xmp(const unsigned char *buffer, const unsigned int buff
if(buffer[35]=='\0')
return 0;
if(file_recovery->file_stat!=NULL &&
- (file_recovery->file_stat->file_hint==&file_hint_pdf ||
+ (file_recovery->file_stat->file_hint==&file_hint_jpg ||
+ file_recovery->file_stat->file_hint==&file_hint_pdf ||
file_recovery->file_stat->file_hint==&file_hint_tiff))
return 0;
/* Adobe's Extensible Metadata Platform */