diff options
author | thestig <thestig@chromium.org> | 2016-04-28 14:45:28 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-28 14:45:28 -0700 |
commit | 8e957baa851aed4b02511d04a66c0f95387d1e10 (patch) | |
tree | cf601eda1637d84cb7c5f01d30ea18b52c965dca /core/fpdfapi/fpdf_page/pageint.h | |
parent | 01a86203141df4a61ae90e289f62c4daf31ee2ba (diff) | |
download | pdfium-8e957baa851aed4b02511d04a66c0f95387d1e10.tar.xz |
Fix stack overflow from nested arrays.
BUG=pdfium:422
Review-Url: https://codereview.chromium.org/1930743003
Diffstat (limited to 'core/fpdfapi/fpdf_page/pageint.h')
-rw-r--r-- | core/fpdfapi/fpdf_page/pageint.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/fpdfapi/fpdf_page/pageint.h b/core/fpdfapi/fpdf_page/pageint.h index 2dcf2e246f..01a28e3b96 100644 --- a/core/fpdfapi/fpdf_page/pageint.h +++ b/core/fpdfapi/fpdf_page/pageint.h @@ -53,8 +53,7 @@ class CPDF_StreamParser { } uint32_t GetPos() const { return m_Pos; } void SetPos(uint32_t pos) { m_Pos = pos; } - CPDF_Object* ReadNextObject(FX_BOOL bAllowNestedArray = FALSE, - FX_BOOL bInArray = FALSE); + CPDF_Object* ReadNextObject(bool bAllowNestedArray, uint32_t dwInArrayLevel); protected: friend class fpdf_page_parser_old_ReadHexString_Test; @@ -99,7 +98,6 @@ struct ContentParam { }; #define _FPDF_MAX_FORM_LEVEL_ 30 #define _FPDF_MAX_TYPE3_FORM_LEVEL_ 4 -#define _FPDF_MAX_OBJECT_STACK_SIZE_ 512 class CPDF_StreamContentParser { public: CPDF_StreamContentParser(CPDF_Document* pDoc, |