fix overflow in cairo downscaled bitmap cache (tdf#137719)
commitf8ffc971545bb54aaebd227fa841f83660dba99c
authorLuboš Luňák <l.lunak@collabora.com>
Mon, 6 Dec 2021 17:25:55 +0000 (6 18:25 +0100)
committerLuboš Luňák <l.lunak@collabora.com>
Mon, 6 Dec 2021 21:23:18 +0000 (6 22:23 +0100)
treee0d44b3de85547946983d9fd78eee11062a00c62
parent70fc728ceef4dcf45dd97dc9051ddb73ff734169
fix overflow in cairo downscaled bitmap cache (tdf#137719)

In my system, sizeof(long long) == sizeof(long) == 8, so multiplying
by LONG_MAX overflows long long.

Change-Id: Ieb9613ef05916ef24a64db69f698036ecaf194e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126456
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
vcl/headless/svpgdi.cxx