Commit 0952bf2d authored by unknown's avatar unknown

Fixed memory overrun in spatial init code

sql/spatial.cc:
  Fixed memory overrun
sql/spatial.h:
  Fixed memory overrun
parent 0dbf737a
No related merge requests found
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
/***************************** Gis_class_info *******************************/ /***************************** Gis_class_info *******************************/
Geometry::Class_info *Geometry::ci_collection[Geometry::wkb_end]= Geometry::Class_info *Geometry::ci_collection[Geometry::wkb_end+1]=
{ {
NULL, NULL, NULL, NULL, NULL, NULL, NULL NULL, NULL, NULL, NULL, NULL, NULL, NULL
}; };
......
...@@ -251,7 +251,7 @@ public: ...@@ -251,7 +251,7 @@ public:
} }
bool envelope(String *result) const; bool envelope(String *result) const;
static Geometry::Class_info *ci_collection[Geometry::wkb_end]; static Geometry::Class_info *ci_collection[Geometry::wkb_end+1];
protected: protected:
static Class_info *find_class(int type_id) static Class_info *find_class(int type_id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment