From 7ad54ea24079a700b6372884fa6d3fee9fd14fdd Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Fri, 18 May 2012 21:12:37 +0200 Subject: [PATCH] PhotoRec: avoid to stop the recovery of jpg containing text file with "xmp:CreatorTool>" --- src/file_txt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/file_txt.c b/src/file_txt.c index 38120541..72ef5b96 100644 --- a/src/file_txt.c +++ b/src/file_txt.c @@ -1004,7 +1004,8 @@ Doc: \r (0xD) td_memmem(buffer, buffer_size_test, "exif:", 5)==NULL && td_memmem(buffer, buffer_size_test, "", 6)==NULL) || + td_memmem(buffer, buffer_size_test, "", 6)==NULL && + td_memmem(buffer, buffer_size_test, "xmp:CreatorTool>", 16)==NULL) || /* Text should not be found in zip because of compression except .sh3d */ (file_recovery->file_stat->file_hint==&file_hint_zip && td_memmem(buffer, buffer_size_test, zip_header, 4)==NULL &&