basegfx/source/polygon/b3dpolygon.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 9b40d14eb91573e62bdd8a6b9157f623a8c4cf7f
Author: Julien Nabet <[email protected]>
Date:   Mon Apr 1 21:29:34 2013 +0200

    Add assert nCount <= vector.size() (Thank you Markus!)
    
    Change-Id: I076e88e6fc845c2333bc3de98de023330e531272

diff --git a/basegfx/source/polygon/b3dpolygon.cxx 
b/basegfx/source/polygon/b3dpolygon.cxx
index 70a5aeb..5a07ab2 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);
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to