Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp |
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp |
index 279151a87a68012f71bc9b1f8dd8c7c00e340eda..62da88b9ba266d26ec70ac9e420c39d745e9aa30 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode_embeddertest.cpp |
@@ -95,4 +95,14 @@ TEST_F(FPDFParserDecodeEmbeddertest, FlateDecode) { |
} |
} |
+TEST_F(FPDFParserDecodeEmbeddertest, Bug_552046) { |
+ // Tests specifying multiple image filters for a stream. Should not cause a |
+ // crash when rendered. |
+ EXPECT_TRUE(OpenDocument("bug_552046.pdf")); |
+ FPDF_PAGE page = LoadPage(0); |
+ FPDF_BITMAP bitmap = RenderPage(page); |
+ FPDFBitmap_Destroy(bitmap); |
+ UnloadPage(page); |
+} |
+ |
#undef TEST_CASE |