summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser/cpdf_reference.cpp
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2017-01-09 07:52:30 -0800
committerCommit bot <commit-bot@chromium.org>2017-01-09 07:52:30 -0800
commit661008dde7356ee2ed69787125863539b73b041c (patch)
treedcf7541b8fa233078919bd81c3e257f91c25351a /core/fpdfapi/parser/cpdf_reference.cpp
parent5f92eab76505fc6be2e5373390591a55be489b21 (diff)
downloadpdfium-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.cpp2
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() {}