| Index: fpdfsdk/src/fpdfppo.cpp
|
| diff --git a/fpdfsdk/src/fpdfppo.cpp b/fpdfsdk/src/fpdfppo.cpp
|
| index dac548131e7596292bf3e3f795231718d0e08b0a..b98025e1bd543ee729d4d0ae8e30640155712bea 100644
|
| --- a/fpdfsdk/src/fpdfppo.cpp
|
| +++ b/fpdfsdk/src/fpdfppo.cpp
|
| @@ -213,9 +213,11 @@ FX_BOOL CPDF_PageOrganizer::UpdateReference(CPDF_Object* pObj,
|
| }
|
| case PDFOBJ_DICTIONARY: {
|
| CPDF_Dictionary* pDict = pObj->AsDictionary();
|
| - for (const auto& it : *pDict) {
|
| - const CFX_ByteString& key = it.first;
|
| - CPDF_Object* pNextObj = it.second;
|
| + auto it = pDict->begin();
|
| + while (it != pDict->end()) {
|
| + auto old_it = it++;
|
| + const CFX_ByteString& key = old_it->first;
|
| + CPDF_Object* pNextObj = old_it->second;
|
| if (!FXSYS_strcmp(key, "Parent") || !FXSYS_strcmp(key, "Prev") ||
|
| !FXSYS_strcmp(key, "First")) {
|
| continue;
|
|
|