From 9b40d14eb91573e62bdd8a6b9157f623a8c4cf7f Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Mon, 1 Apr 2013 21:29:34 +0200 Subject: Add assert nCount <= vector.size() (Thank you Markus!) Change-Id: I076e88e6fc845c2333bc3de98de023330e531272 --- basegfx/source/polygon/b3dpolygon.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'basegfx/source/polygon') diff --git a/basegfx/source/polygon/b3dpolygon.cxx b/basegfx/source/polygon/b3dpolygon.cxx index 70a5aeb357df..5a07ab2b6d0c 100644 --- a/basegfx/source/polygon/b3dpolygon.cxx +++ b/basegfx/source/polygon/b3dpolygon.cxx @@ -278,6 +278,7 @@ public: BColorDataVector::const_iterator aStart(rOriginal.maVector.begin()); aStart += nIndex; BColorDataVector::const_iterator aEnd(aStart); + assert(nCount <= rOriginal.maVector.size()); aEnd += nCount; maVector.reserve(nCount); -- cgit v1.2.3