Fix parsing of some PDFs.

/Filter[ was parsed incorrectly. The [ is not part of the name.
0.96
Török Edvin 15 years ago
parent 87374bc051
commit 5e2b776b11
  1. 2
      libclamav/pdf.c

@ -879,7 +879,7 @@ static void pdf_parseobj(struct pdf_struct *pdf, struct pdf_obj *obj)
continue;
}
if (*q == ' ' || *q == '\t' || *q == '\r' || *q == '\n' ||
*q == '/' || *q == '>' || *q == ']')
*q == '/' || *q == '>' || *q == ']' || *q == '[' || *q == '<')
break;
pdfname[i] = *q;
}

Loading…
Cancel
Save