| Index: core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp
|
| diff --git a/core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp b/core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp
|
| index 0190c6e692e23faa27fc0cbb87971bb952b56f38..16daba184db6cb65434764d7e2a2a80d7e55c317 100644
|
| --- a/core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp
|
| +++ b/core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp
|
| @@ -394,7 +394,7 @@ CPDF_Object* CPDF_SyntaxParser::GetObject(CPDF_IndirectObjectHolder* pObjList,
|
| if (bIsNumber) {
|
| CFX_ByteString nextword2 = GetNextWord(nullptr);
|
| if (nextword2 == "R") {
|
| - uint32_t objnum = FXSYS_atoui(word);
|
| + uint32_t objnum = FXSYS_atoui(word.c_str());
|
| return new CPDF_Reference(pObjList, objnum);
|
| }
|
| }
|
| @@ -518,7 +518,7 @@ CPDF_Object* CPDF_SyntaxParser::GetObjectByStrict(
|
| if (bIsNumber) {
|
| CFX_ByteString nextword2 = GetNextWord(nullptr);
|
| if (nextword2 == "R")
|
| - return new CPDF_Reference(pObjList, FXSYS_atoui(word));
|
| + return new CPDF_Reference(pObjList, FXSYS_atoui(word.c_str()));
|
| }
|
| m_Pos = SavedPos;
|
| return new CPDF_Number(word.AsStringC());
|
|
|