Merge to XFA: Set a recursion limit on CPDF_DataAvail::CheckPageNode
authorOliver Chang <ochang@chromium.org>
Thu, 22 Oct 2015 23:42:33 +0000 (16:42 -0700)
committerOliver Chang <ochang@chromium.org>
Thu, 22 Oct 2015 23:42:33 +0000 (16:42 -0700)
commit361a48c04bf14db54731ac99c3c3411b62684775
tree6661a83e3c66dbb61195a95dd5183870c39cee24
parent2f604d58ba2d84034c68094bc6d7b63ba321821e
Merge to XFA: Set a recursion limit on CPDF_DataAvail::CheckPageNode

This limit mirrors FX_MAX_PAGE_LEVEL in fpdf_parser_document.cpp

Clean merge.
TBR=thestig@chromium.org
BUG=544880

Review URL: https://codereview.chromium.org/1421743003 .

(cherry picked from commit 3bfb1dcf56f8470b693ad1126e24e65f9d17926c)

Review URL: https://codereview.chromium.org/1418173003 .
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]