1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
diff --git a/core/fpdfapi/parser/cpdf_hint_tables.cpp b/core/fpdfapi/parser/cpdf_hint_tables.cpp
index e000188..39fd200 100644
--- a/core/fpdfapi/parser/cpdf_hint_tables.cpp
+++ b/core/fpdfapi/parser/cpdf_hint_tables.cpp
@@ -150,7 +150,8 @@ bool CPDF_HintTables::ReadPageHintTable(CFX_BitStream* hStream) {
safeDeltaObj += dwObjLeastNum;
if (!safeDeltaObj.IsValid())
return false;
- m_dwDeltaNObjsArray.push_back(safeDeltaObj.ValueOrDie());
+ uint32_t deltaObj = safeDeltaObj.ValueOrDie();
+ m_dwDeltaNObjsArray.push_back(deltaObj);
}
hStream->ByteAlign();
@@ -166,7 +167,8 @@ bool CPDF_HintTables::ReadPageHintTable(CFX_BitStream* hStream) {
if (!safePageLen.IsValid())
return false;
- dwPageLenArray.push_back(safePageLen.ValueOrDie());
+ uint32_t pageLen = safePageLen.ValueOrDie();
+ dwPageLenArray.push_back(pageLen);
}
int nOffsetE = GetEndOfFirstPageOffset();
@@ -325,13 +327,15 @@ bool CPDF_HintTables::ReadSharedObjHintTable(CFX_BitStream* hStream,
if (!safeObjNum.IsValid())
return false;
- m_dwSharedObjNumArray.push_back(safeObjNum.ValueOrDie());
+ uint32_t objNum = safeObjNum.ValueOrDie();
+ m_dwSharedObjNumArray.push_back(objNum);
if (i == m_nFirstPageSharedObjs) {
FX_SAFE_FILESIZE safeLoc = dwFirstSharedObjLoc;
if (!safeLoc.IsValid())
return false;
- m_szSharedObjOffsetArray.push_back(safeLoc.ValueOrDie());
+ FX_FILESIZE loc = safeLoc.ValueOrDie();
+ m_szSharedObjOffsetArray.push_back(loc);
}
}
@@ -341,7 +345,8 @@ bool CPDF_HintTables::ReadSharedObjHintTable(CFX_BitStream* hStream,
if (!safeLoc.IsValid())
return false;
- m_szSharedObjOffsetArray.push_back(safeLoc.ValueOrDie());
+ FX_FILESIZE loc = safeLoc.ValueOrDie();
+ m_szSharedObjOffsetArray.push_back(loc);
}
}
@@ -351,7 +356,8 @@ bool CPDF_HintTables::ReadSharedObjHintTable(CFX_BitStream* hStream,
if (!safeLoc.IsValid())
return false;
- m_szSharedObjOffsetArray.push_back(safeLoc.ValueOrDie());
+ FX_FILESIZE loc = safeLoc.ValueOrDie();
+ m_szSharedObjOffsetArray.push_back(loc);
}
hStream->ByteAlign();
|