diff options
author | Lei Zhang <thestig@chromium.org> | 2017-02-25 00:33:40 -0800 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2017-02-27 19:06:20 +0000 |
commit | d0cfb8cc152321f552a9d7c9754e9f05e3352e75 (patch) | |
tree | 4db4ff78ae610cb22a94621b4e3deae0d4415ee8 | |
parent | c83d4758ef287716b0eabcae1775b50fd5cefa2d (diff) | |
download | pdfium-d0cfb8cc152321f552a9d7c9754e9f05e3352e75.tar.xz |
M57: Use container with stable iterator for m_Icons.
The container may grow while it is being traversed in JS.
BUG=691371
Change-Id: I73ee536458697267c69e6c3ada96e28546d11a4e
Reviewed-on: https://pdfium-review.googlesource.com/2690
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
(cherry picked from commit 9e41d0461d175410f6ea7573e729dc1ae14e846d)
Change-Id: I458e3e581616f10b157d118c60730df8324992d2
Reviewed-on: https://pdfium-review.googlesource.com/2842
Reviewed-by: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
-rw-r--r-- | fpdfsdk/javascript/Document.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/Document.h b/fpdfsdk/javascript/Document.h index 227c4284bb..7786c77881 100644 --- a/fpdfsdk/javascript/Document.h +++ b/fpdfsdk/javascript/Document.h @@ -288,7 +288,7 @@ class Document : public CJS_EmbedObj { CPDFSDK_FormFillEnvironment::ObservedPtr m_pFormFillEnv; CFX_WideString m_cwBaseURL; std::list<std::unique_ptr<CJS_DelayData>> m_DelayData; - std::vector<std::unique_ptr<IconElement>> m_Icons; + std::list<std::unique_ptr<IconElement>> m_Icons; // For iterator stability. bool m_bDelay; }; |