diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-02-03 16:24:43 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-02-03 16:24:43 -0800 |
commit | 4dcf74dc6024ece0dc146a64be983ae2ff9df63d (patch) | |
tree | dddda76bf3858d630243ae2d79ea2aa56e6dc17e /fpdfsdk | |
parent | a9e835e6356b40d27a524fa087805c65de442f03 (diff) | |
download | pdfium-4dcf74dc6024ece0dc146a64be983ae2ff9df63d.tar.xz |
Merge to XFA: Fix stack exhaustion in CPDF_DataAvail::HaveResourceAncestor()
Original Review URL: https://codereview.chromium.org/880043004
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/893333003
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/src/fpdfview_embeddertest.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp index 083925ff61..8a9020aba7 100644 --- a/fpdfsdk/src/fpdfview_embeddertest.cpp +++ b/fpdfsdk/src/fpdfview_embeddertest.cpp @@ -177,12 +177,16 @@ TEST_F(FPDFViewEmbeddertest, NamedDestsByName) { } // The following tests pass if the document opens without crashing. -TEST_F(FPDFViewEmbeddertest, Crasher1) { +TEST_F(FPDFViewEmbeddertest, Crasher_113) { + EXPECT_TRUE(OpenDocument("testing/resources/bug_113.pdf")); +} + +TEST_F(FPDFViewEmbeddertest, Crasher_451830) { // XFA branch detects this document as bad. EXPECT_FALSE(OpenDocument("testing/resources/bug_451830.pdf")); } -TEST_F(FPDFViewEmbeddertest, Crasher2) { +TEST_F(FPDFViewEmbeddertest, Crasher_452455) { EXPECT_TRUE(OpenDocument("testing/resources/bug_452455.pdf")); FPDF_PAGE page = LoadPage(0); EXPECT_NE(nullptr, page); |