summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2010-08-31 15:10:03 +0200
committerKurt Zenker <kz@openoffice.org>2010-08-31 15:10:03 +0200
commitb9c2de6a46e6048684ebec4ac2fdb9fc7ef51190 (patch)
tree74a489caec3d982962ae5b396d4f097ed6f382d8
parentac41da2ac352859eec9961b29a5a82813a788c50 (diff)
parent57534c0d9f60b454bdfb7bd488443b42afb67658 (diff)
CWS-TOOLING: integrate CWS impress197
-rw-r--r--tools/source/generic/poly.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx
index 2290cfdbe7c2..e9f98b07adbd 100644
--- a/tools/source/generic/poly.cxx
+++ b/tools/source/generic/poly.cxx
@@ -243,6 +243,11 @@ void ImplPolygon::ImplSetSize( USHORT nNewSize, BOOL bResize )
void ImplPolygon::ImplSplit( USHORT nPos, USHORT nSpace, ImplPolygon* pInitPoly )
{
const ULONG nSpaceSize = nSpace * sizeof( Point );
+
+ //Can't fit this in :-(, throw ?
+ if (mnPoints + nSpace > USHRT_MAX)
+ return;
+
const USHORT nNewSize = mnPoints + nSpace;
if( nPos >= mnPoints )