summaryrefslogtreecommitdiff
path: root/fpdfsdk/src
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-02-05 10:51:54 -0800
committerTom Sepez <tsepez@chromium.org>2015-02-05 10:51:54 -0800
commit93daa3c8942b837a948d4803145a07e2fd9c084b (patch)
tree8d612e9f209b8c17b001f633446fb6aae50e4d02 /fpdfsdk/src
parent35425896b07b5124651c249d6ce29285cf71ea3b (diff)
downloadpdfium-93daa3c8942b837a948d4803145a07e2fd9c084b.tar.xz
Merge to XFA: Fix segv in CPDF_DataAvail::CheckRoot()
Original Review URL: https://codereview.chromium.org/895933003 BUG=454695 TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/901013003
Diffstat (limited to 'fpdfsdk/src')
-rw-r--r--fpdfsdk/src/fpdfview_embeddertest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp
index 8a9020aba7..66fbe464d0 100644
--- a/fpdfsdk/src/fpdfview_embeddertest.cpp
+++ b/fpdfsdk/src/fpdfview_embeddertest.cpp
@@ -191,3 +191,8 @@ TEST_F(FPDFViewEmbeddertest, Crasher_452455) {
FPDF_PAGE page = LoadPage(0);
EXPECT_NE(nullptr, page);
}
+
+TEST_F(FPDFViewEmbeddertest, Crasher_454695) {
+ // XFA branch detects this document as bad.
+ EXPECT_FALSE(OpenDocument("testing/resources/bug_454695.pdf"));
+}