PhotoRec: some pdf were erroneously saved as Illusatrtor .ai
This commit is contained in:
parent
b7397dc2aa
commit
64140da425
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue