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

ofz#3868 Integer-overflow

Change-Id: Id5de484e365567487cdeaf73f9fa88ef5a735e3e
Reviewed-on: https://gerrit.libreoffice.org/44011Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst dc55f061
......@@ -1921,9 +1921,9 @@ namespace emfio
tools::Rectangle EmfReader::ReadRectangle( sal_Int32 x1, sal_Int32 y1, sal_Int32 x2, sal_Int32 y2 )
Point aTL ( Point( x1, y1 ) );
Point aBR( Point( --x2, --y2 ) );
return tools::Rectangle( aTL, aBR );
Point aTL(x1, y1);
Point aBR(o3tl::saturating_add<sal_Int32>(x2, -1), o3tl::saturating_add<sal_Int32>(y2, -1));
return tools::Rectangle(aTL, aBR);
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