diff options
author | npm <npm@chromium.org> | 2017-01-09 07:52:30 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2017-01-09 07:52:30 -0800 |
commit | 661008dde7356ee2ed69787125863539b73b041c (patch) | |
tree | dcf7541b8fa233078919bd81c3e257f91c25351a /core/fpdfapi/parser/cpdf_reference.cpp | |
parent | 5f92eab76505fc6be2e5373390591a55be489b21 (diff) | |
download | pdfium-661008dde7356ee2ed69787125863539b73b041c.tar.xz |
Do not parse references with invalid objnum
We should not have valid objects where the object number is
CPDF_Object::kInvalidObjNum.
BUG=pdfium:609
Review-Url: https://codereview.chromium.org/2610393004
Diffstat (limited to 'core/fpdfapi/parser/cpdf_reference.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_reference.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_reference.cpp b/core/fpdfapi/parser/cpdf_reference.cpp index 8f44aa0200..67b67c24dd 100644 --- a/core/fpdfapi/parser/cpdf_reference.cpp +++ b/core/fpdfapi/parser/cpdf_reference.cpp @@ -10,7 +10,7 @@ #include "third_party/base/ptr_util.h" #include "third_party/base/stl_util.h" -CPDF_Reference::CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, int objnum) +CPDF_Reference::CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum) : m_pObjList(pDoc), m_RefObjNum(objnum) {} CPDF_Reference::~CPDF_Reference() {} |