[Libreoffice-commits] core.git: basegfx/source

Julien Nabet serval2412 at yahoo.fr
Mon Apr 1 12:32:19 PDT 2013


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

New commits:
commit 9b40d14eb91573e62bdd8a6b9157f623a8c4cf7f
Author: Julien Nabet <serval2412 at yahoo.fr>
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);
 


More information about the Libreoffice-commits mailing list