diff options
author | Oliver Chang <ochang@chromium.org> | 2015-12-10 15:51:34 -0800 |
---|---|---|
committer | Oliver Chang <ochang@chromium.org> | 2015-12-10 15:51:34 -0800 |
commit | 08750d0400f1635ac33c3234cb11b192f31a1eeb (patch) | |
tree | b80412ae94561f45a6b9b7a824c37ab16d08226d /core/src/fpdfapi | |
parent | 168cfb7ee0f2abbd2bddb7e7d8b430a6d8c6c120 (diff) | |
download | pdfium-08750d0400f1635ac33c3234cb11b192f31a1eeb.tar.xz |
Fix integer and bounds issues in sycc4{22,44}_to_rgb.
Also clean up while we're here.
BUG=557223
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1512833008 .
Diffstat (limited to 'core/src/fpdfapi')
-rw-r--r-- | core/src/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp index 1633249d0d..427abb8e37 100644 --- a/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp +++ b/core/src/fpdfapi/fpdf_render/fpdf_render_loadimage_embeddertest.cpp @@ -17,3 +17,13 @@ TEST_F(FPDFRenderLoadImageEmbeddertest, Bug_554151) { FPDFBitmap_Destroy(bitmap); UnloadPage(page); } + +TEST_F(FPDFRenderLoadImageEmbeddertest, Bug_557223) { + // Should not crash + EXPECT_TRUE(OpenDocument("bug_557223.pdf")); + FPDF_PAGE page = LoadPage(0); + EXPECT_NE(nullptr, page); + FPDF_BITMAP bitmap = RenderPage(page); + FPDFBitmap_Destroy(bitmap); + UnloadPage(page); +} |