Commit a6ba9f3c authored by monty@mysql.com's avatar monty@mysql.com

Fixed memory overrun in spatial init code

parent 56af3931
......@@ -19,7 +19,7 @@
/***************************** 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
};
......
......@@ -251,7 +251,7 @@ public:
}
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:
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