diff options
Diffstat (limited to 'sql/spatial.cc')
-rw-r--r-- | sql/spatial.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/spatial.cc b/sql/spatial.cc index 00db94a07d6..d19429fdd9c 100644 --- a/sql/spatial.cc +++ b/sql/spatial.cc @@ -1258,6 +1258,7 @@ int GMultiPolygon::geometry_n(uint32 num, String *result) const uint32 n_polygons; const char *data= m_data, *polygon_n; LINT_INIT(polygon_n); + if (no_data(data, 4)) return 1; n_polygons= uint4korr(data); |