summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2012-05-18 21:12:37 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2012-05-18 21:12:37 +0200
commit7ad54ea24079a700b6372884fa6d3fee9fd14fdd (patch)
tree2a076d7f6b223247b1682ebacd43ea8d189c26c5 /src
parent6a8de0632e9e93a82fcbea8c54a636211bb6fd38 (diff)
PhotoRec: avoid to stop the recovery of jpg containing text file with "xmp:CreatorTool>"
Diffstat (limited to 'src')
-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 3812054..72ef5b9 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, "<rdf:", 5)==NULL &&
td_memmem(buffer, buffer_size_test, "<?xpacket", 9)==NULL &&
- td_memmem(buffer, buffer_size_test, "<dict>", 6)==NULL) ||
+ td_memmem(buffer, buffer_size_test, "<dict>", 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 &&