diff options
author | Nicolas Pena <npm@chromium.org> | 2017-05-03 12:35:59 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-05-03 16:49:52 +0000 |
commit | 746babded81e9de3fc132fd670386382c031fa74 (patch) | |
tree | a1a7b6d68fc7aa8ff11c145955371371000b4fda /testing | |
parent | 1e5a98afd195930de69f7b468a852717722377b6 (diff) | |
download | pdfium-746babded81e9de3fc132fd670386382c031fa74.tar.xz |
SetPos to at most the file length to avoid overflows
This CL prevents arbitrary position setting which may cause integer overflows.
In the bug in question, the PDF says the xrefs are located in a huge position.
This then causes problems when calling CPDF_SyntaxParser methods.
Bug: chromium:603545
Change-Id: I5f94c38f46a0217e9f12f1bf8b2f3bee3b03cb35
Reviewed-on: https://pdfium-review.googlesource.com/4813
Commit-Queue: Nicolás Peña <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'testing')
0 files changed, 0 insertions, 0 deletions