summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-11-11 12:05:27 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-11 12:05:27 -0800
commit5937d0d03793caf73c8bb795ac06684596790e82 (patch)
treeb20a4b1d197f6199a318455c83390dde2c8bca92 /fpdfsdk
parenta0d3231037816d3f0e377e9c57a2bfaa1372e151 (diff)
downloadpdfium-5937d0d03793caf73c8bb795ac06684596790e82.tar.xz
Fix sevg above CPDF_PageContentGenerator::ProcessImage()
Adds a test to process an image for which a stream hasn't been set. BUG=660756 Review-Url: https://codereview.chromium.org/2494683007
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/fpdfeditimg_unittest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfeditimg_unittest.cpp b/fpdfsdk/fpdfeditimg_unittest.cpp
index a844e7ec71..ae4af2591e 100644
--- a/fpdfsdk/fpdfeditimg_unittest.cpp
+++ b/fpdfsdk/fpdfeditimg_unittest.cpp
@@ -43,6 +43,7 @@ TEST_F(PDFEditTest, NewImgeObj) {
FPDF_PAGEOBJECT page_image = FPDFPageObj_NewImgeObj(doc);
FPDFPage_InsertObject(page, page_image);
EXPECT_EQ(1, FPDFPage_CountObject(page));
+ EXPECT_TRUE(FPDFPage_GenerateContent(page));
FPDF_ClosePage(page);
FPDF_CloseDocument(doc);