Fix segv in CPDF_DataAvail::CheckRoot() when /Root object is a string.
[pdfium.git] / fpdfsdk / src / fpdfview_embeddertest.cpp
index d0fc40d..47119b5 100644 (file)
@@ -177,6 +177,20 @@ TEST_F(FPDFViewEmbeddertest, NamedDestsByName) {
 }
 
 // The following tests pass if the document opens without crashing.
-TEST_F(FPDFViewEmbeddertest, Crashers) {
+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, Crasher_452455) {
+  EXPECT_TRUE(OpenDocument("testing/resources/bug_452455.pdf"));
+  FPDF_PAGE page = LoadPage(0);
+  EXPECT_NE(nullptr, page);
+}
+
+TEST_F(FPDFViewEmbeddertest, Crasher3) {
+  EXPECT_TRUE(OpenDocument("testing/resources/bug_454695.pdf"));
+}