Skip to content

Commit 1fe82b2

Browse files
committedFeb 6, 2013
also verify wkbSize in QgsGeometry::exportToWkt
1 parent b35a456 commit 1fe82b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/core/qgsgeometry.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4569,9 +4569,9 @@ QString QgsGeometry::exportToWkt()
45694569
exportGeosToWkb();
45704570
}
45714571

4572-
if ( !mGeometry )
4572+
if ( !mGeometry || wkbSize() < 5 )
45734573
{
4574-
QgsDebugMsg( "WKB geometry not available!" );
4574+
QgsDebugMsg( "WKB geometry not available or too short!" );
45754575
return QString::null;
45764576
}
45774577

0 commit comments

Comments
 (0)
Please sign in to comment.