Skip to content
Permalink
Browse files
also verify wkbSize in QgsGeometry::exportToWkt
  • Loading branch information
jef-n committed Feb 6, 2013
1 parent b35a456 commit 1fe82b25c8ba243b7518d11d59f2704f9c4278fd
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/qgsgeometry.cpp
@@ -4569,9 +4569,9 @@ QString QgsGeometry::exportToWkt()
exportGeosToWkb();
}

if ( !mGeometry )
if ( !mGeometry || wkbSize() < 5 )
{
QgsDebugMsg( "WKB geometry not available!" );
QgsDebugMsg( "WKB geometry not available or too short!" );
return QString::null;
}

0 comments on commit 1fe82b2

Please sign in to comment.