summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2011-03-19 13:59:15 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2011-03-19 13:59:15 +0100
commit64140da425c5e53666ec20d547c3413d4cd94aa6 (patch)
tree4d669135a9acdf2e9fcac5817d05f945c2f7c178 /src
parentb7397dc2aa1a93c4baaa624929211a917181db9f (diff)
PhotoRec: some pdf were erroneously saved as Illusatrtor .ai
Diffstat (limited to 'src')
-rw-r--r--src/file_pdf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/file_pdf.c b/src/file_pdf.c
index 1d860e9..6c50688 100644
--- a/src/file_pdf.c
+++ b/src/file_pdf.c
@@ -65,11 +65,10 @@ static int header_check_pdf(const unsigned char *buffer, const unsigned int buff
{
if(memcmp(buffer,pdf_header,sizeof(pdf_header))==0)
{
- const unsigned char sig_illustrator[11]={'I','l','l','u','s','t','r','a','t','o','r'};
const unsigned char sig_linearized[10]={'L','i','n','e','a','r','i','z','e','d'};
const unsigned char *src;
reset_file_recovery(file_recovery_new);
- if(td_memmem(buffer, 512, sig_illustrator,sizeof(sig_illustrator)) != NULL)
+ if(td_memmem(buffer, 512, "<</Illustrator ", 15) != NULL)
file_recovery_new->extension="ai";
else
file_recovery_new->extension=file_hint_pdf.extension;