diff options
author | JUN FANG <jun_fang@foxitsoftware.com> | 2015-08-05 17:07:07 -0700 |
---|---|---|
committer | JUN FANG <jun_fang@foxitsoftware.com> | 2015-08-05 17:07:07 -0700 |
commit | 2526930205ca2ef0a06ec32644d41d4548d45d80 (patch) | |
tree | f1ef039fa1242b200e0e9028753f92615b4a7367 /core/include/fpdfapi/fpdf_parser.h | |
parent | 8d8a99027d38e3b8d452e7ab8049c310b90e780d (diff) | |
download | pdfium-2526930205ca2ef0a06ec32644d41d4548d45d80.tar.xz |
Early object closing in PDF via premature 'endobj' keyword
Adobe acrobat defines keywords "\nendstream\n" and "\nendobj\n" in object's stream.
However, Pdfium searches "endstream" and "endobj" as the keywords in the streams of objects.
Some words like "(endstream)" are wrongly treated as keywords in pdfium.
This fix follows Adobe's solution.
BUG=493126
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1219133005 .
Diffstat (limited to 'core/include/fpdfapi/fpdf_parser.h')
-rw-r--r-- | core/include/fpdfapi/fpdf_parser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/include/fpdfapi/fpdf_parser.h b/core/include/fpdfapi/fpdf_parser.h index 7640c857fa..cb4e15e25d 100644 --- a/core/include/fpdfapi/fpdf_parser.h +++ b/core/include/fpdfapi/fpdf_parser.h @@ -297,6 +297,8 @@ class CPDF_SyntaxParser { CFX_ByteString ReadHexString(); + unsigned int ReadEOLMarkers(FX_FILESIZE pos); + CPDF_Stream* ReadStream(CPDF_Dictionary* pDict, PARSE_CONTEXT* pContext, FX_DWORD objnum, |