Index: fpdfsdk/src/fpdfview_embeddertest.cpp |
diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp |
index 6eb5fb95cdbc25f2a9aebe5f480af1718cab0c42..6a6d0769830f2633796b14d405c720f9f3385f70 100644 |
--- a/fpdfsdk/src/fpdfview_embeddertest.cpp |
+++ b/fpdfsdk/src/fpdfview_embeddertest.cpp |
@@ -216,3 +216,9 @@ TEST_F(FPDFViewEmbeddertest, Hang_298) { |
TEST_F(FPDFViewEmbeddertest, CrossRefV4Loop) { |
EXPECT_TRUE(OpenDocument("bug_xrefv4_loop.pdf")); |
} |
+ |
+// The test should pass when circular references to ParseIndirectObject will not |
+// cause infinite loop. |
+TEST_F(FPDFViewEmbeddertest, Hang_343) { |
+ EXPECT_FALSE(OpenDocument("bug_343.pdf")); |
+} |