From 229d05df5bc5deb3890b26b614113c25d9b6935e Mon Sep 17 00:00:00 2001 From: weili Date: Thu, 11 Aug 2016 19:43:58 -0700 Subject: Fix an integer overflow in CStretchEngine constructor When the source bitmap's width and height are large, the multiplication could easily overflow a signed integer. Change to use 'long long' type for calculation to avoid that. BUG=chromium:635663 Review-Url: https://codereview.chromium.org/2240723002 --- BUILD.gn | 1 + 1 file changed, 1 insertion(+) (limited to 'BUILD.gn') diff --git a/BUILD.gn b/BUILD.gn index 8d9dd8167e..a4a3e8dd65 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -1572,6 +1572,7 @@ test("pdfium_unittests") { "core/fxcrt/fx_bidi_unittest.cpp", "core/fxcrt/fx_extension_unittest.cpp", "core/fxcrt/fx_system_unittest.cpp", + "core/fxge/dib/fx_dib_engine_unittest.cpp", "fpdfsdk/fpdfdoc_unittest.cpp", "fpdfsdk/fpdfeditimg_unittest.cpp", ] -- cgit v1.2.3