diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2018-07-25 02:47:25 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-25 02:47:25 +0000 |
commit | 84d3394d88c42b798eedc938e6295ad1bf28ac66 (patch) | |
tree | aa8eba2a6b9bc892fe5d676d55a29f90f596583b /core/fpdfapi/parser/cpdf_hint_tables.h | |
parent | 70ddc1ca22ad44a77006491b604a75f6514a4aa8 (diff) | |
download | pdfium-84d3394d88c42b798eedc938e6295ad1bf28ac66.tar.xz |
Fix hint tables parsing.
Sample PDF:
https://yadi.sk/d/oWLtAEfy3YbEb3
For offsets, equal to the hint stream offset, added hint stream
length to determine the actual offset, because linearization
inserted the hint stream at the original location of the object.
Also the number of bits needed to represent the numerator of
the fractional position for each shared object reference may be
zero, if each shared group contains only one object with obj num,
incremented on 1.
Change-Id: I4754d603f388354821e8d0cac97ad99a7578fe4b
Reviewed-on: https://pdfium-review.googlesource.com/36610
Commit-Queue: Art Snake <art-snake@yandex-team.ru>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/parser/cpdf_hint_tables.h')
-rw-r--r-- | core/fpdfapi/parser/cpdf_hint_tables.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fpdfapi/parser/cpdf_hint_tables.h b/core/fpdfapi/parser/cpdf_hint_tables.h index a161dc68f0..5b978f99b2 100644 --- a/core/fpdfapi/parser/cpdf_hint_tables.h +++ b/core/fpdfapi/parser/cpdf_hint_tables.h @@ -83,6 +83,8 @@ class CPDF_HintTables { return m_SharedObjGroupInfos; } + FX_FILESIZE GetFirstPageObjOffset() const { return m_szFirstPageObjOffset; } + protected: bool ReadPageHintTable(CFX_BitStream* hStream); bool ReadSharedObjHintTable(CFX_BitStream* hStream, uint32_t offset); |