summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdfview_embeddertest.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-02-03 16:18:19 -0800
committerTom Sepez <tsepez@chromium.org>2015-02-03 16:18:19 -0800
commit0c01ad05afe4dbc36c6aa32a10a0f98eb677d4be (patch)
tree77a8806b3413135a838908215b71fac484a7f3dd /fpdfsdk/src/fpdfview_embeddertest.cpp
parent615082de70c7fc18d46d0d1a03b62d0d76b1daa9 (diff)
downloadpdfium-0c01ad05afe4dbc36c6aa32a10a0f98eb677d4be.tar.xz
Fix stack exhaustion in CPDF_DataAvail::HaveResourceAncestor()
BUG=https://code.google.com/p/pdfium/issues/detail?id=113 R=thestig@chromium.org Review URL: https://codereview.chromium.org/880043004
Diffstat (limited to 'fpdfsdk/src/fpdfview_embeddertest.cpp')
-rw-r--r--fpdfsdk/src/fpdfview_embeddertest.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp
index f9b611bbf6..04549741ec 100644
--- a/fpdfsdk/src/fpdfview_embeddertest.cpp
+++ b/fpdfsdk/src/fpdfview_embeddertest.cpp
@@ -177,11 +177,15 @@ 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) {
EXPECT_TRUE(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);