Skip to content
Permalink
Browse files

Fix out of bounds array access if nextVertex is called on empty QgsGe…

…ometryCollectionV2

(cherry-picked from 4c0e78a)
  • Loading branch information
manisandro authored and nyalldawson committed Mar 5, 2016
1 parent e2879c3 commit 1031172489dd8905a077317b29eddb4b98874c55
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/geometry/qgsgeometrycollectionv2.cpp
@@ -374,6 +374,10 @@ bool QgsGeometryCollectionV2::nextVertex( QgsVertexId& id, QgsPointV2& vertex )
id.ring = -1;
id.vertex = -1;
}
if ( mGeometries.isEmpty() )
{
return false;
}

QgsAbstractGeometryV2* geom = mGeometries.at( id.part );
if ( geom->nextVertex( id, vertex ) )

0 comments on commit 1031172

Please sign in to comment.
You can’t perform that action at this time.