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

ofz#7285 Integer overflow

Change-Id: I56f642013ba8d1047067d69251f8a60bd768ee2e
Reviewed-on: https://gerrit.libreoffice.org/52254Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst f98ada6c
......@@ -2997,10 +2997,10 @@ SwFlyFrameFormat* SwWW8ImplReader::ImportReplaceableDrawables( SdrObject* &rpObj
SfxItemSet &rFlySet )
{
SwFlyFrameFormat* pRetFrameFormat = nullptr;
long nWidthTw = pF->nXaRight - pF->nXaLeft;
sal_Int32 nWidthTw = o3tl::saturating_sub(pF->nXaRight, pF->nXaLeft);
if (0 > nWidthTw)
nWidthTw = 0;
long nHeightTw = pF->nYaBottom - pF->nYaTop;
sal_Int32 nHeightTw = o3tl::saturating_sub(pF->nYaBottom, pF->nYaTop);
if (0 > nHeightTw)
nHeightTw = 0;
......
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