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

ofz#3837 Integer-overflow

Change-Id: Iaf9573ba7a8c08ba8c1b8dcf62340d0ea213e1a9
Reviewed-on: https://gerrit.libreoffice.org/43944Tested-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 38e5169d
......@@ -766,7 +766,7 @@ ipsGraphicImport( SvStream & rStream, Graphic & rGraphic, FilterConfigItem* )
bFail = o3tl::checked_sub(nNumb[2], nNumb[0], nWidth) || o3tl::checked_add(nWidth, 1L, nWidth);
if (!bFail)
bFail = o3tl::checked_sub(nNumb[3], nNumb[1], nHeight) || o3tl::checked_add(nWidth, 1L, nHeight);
if (!bFail)
if (!bFail && nWidth > 0 && nHeight > 0)
{
GDIMetaFile aMtf;
......
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