Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(136)

Unified Diff: fpdfsdk/src/fpdfview_embeddertest.cpp

Issue 901013003: Merge to XFA: Fix segv in CPDF_DataAvail::CheckRoot() (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp ('k') | testing/resources/bug_451265.pdf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/fpdfview_embeddertest.cpp
diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp
index 8a9020aba7e2a86230cb9233542b173845085ab3..66fbe464d0a98d0e8167e19f4fee344a252f3b23 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"));
+}
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp ('k') | testing/resources/bug_451265.pdf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698