Set a recursion limit on CPDF_DataAvail::CheckPageNode
authorOliver Chang <ochang@chromium.org>
Thu, 22 Oct 2015 23:32:14 +0000 (16:32 -0700)
committerOliver Chang <ochang@chromium.org>
Thu, 22 Oct 2015 23:32:14 +0000 (16:32 -0700)
commit3bfb1dcf56f8470b693ad1126e24e65f9d17926c
treea47bd82c8244d643ad156c466608a7851dc5fe3b
parent61fe6edb3f789feefa4bd0c8475b9645fae0d09e
Set a recursion limit on CPDF_DataAvail::CheckPageNode

This limit mirrors FX_MAX_PAGE_LEVEL in fpdf_parser_document.cpp

R=thestig@chromium.org, tsepez@chromium.org

BUG=544880

Review URL: https://codereview.chromium.org/1421743003 .
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp
core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_embeddertest.cpp
testing/resources/bug_544880.in [new file with mode: 0644]
testing/resources/bug_544880.pdf [new file with mode: 0644]