Kaydet (Commit) ec1e5e95 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#4230 Integer-overflow

Change-Id: If7c7591780fe7fa8d6fde3d17b606a4ab0acbf56
Reviewed-on: https://gerrit.libreoffice.org/44794Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst c74f6d3c
......@@ -2072,8 +2072,14 @@ namespace emfio
}
else if ( mnMapMode == MM_HIMETRIC )
{
mnWinExtX = mnMillX * 100;
mnWinExtY = mnMillY * 100;
sal_Int32 nWinExtX, nWinExtY;
if (o3tl::checked_multiply<sal_Int32>(mnMillX, 100, nWinExtX) ||
o3tl::checked_multiply<sal_Int32>(mnMillY, 100, nWinExtY))
{
return;
}
mnWinExtX = nWinExtX;
mnWinExtY = nWinExtY;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment