summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-04-03 15:02:37 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-03 15:02:37 +0000
commite96e6fdddaffa2b4b82df4d4d551333939fb78c9 (patch)
tree22a96b227518590107210a47aa34a2095cbb3834 /testing
parent75304f915c5c095e916d4eca0152d4ccbb2a9147 (diff)
downloadpdfium-e96e6fdddaffa2b4b82df4d4d551333939fb78c9.tar.xz
Off-by-one in CPDF_StreamParser::ParseNextElement()
Limit the token to 255 bytes + NUL. Also, shuffle fields in cpdf_streamparser to allow memory tools to better check this inline array. Bug: 828049 Change-Id: I444f2b4c6958167577d9cd76c06805baf7d5c26c Reviewed-on: https://pdfium-review.googlesource.com/29530 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'testing')
-rw-r--r--testing/resources/bug_828049.pdf6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/resources/bug_828049.pdf b/testing/resources/bug_828049.pdf
new file mode 100644
index 0000000000..d8942bb674
--- /dev/null
+++ b/testing/resources/bug_828049.pdf
@@ -0,0 +1,6 @@
+%PDF
+1 0 obj<</Pages<</Contents <<
+>>stream
+0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
+endobj
+trailer<</Root 1 0 R>> \ No newline at end of file