Fixed memory overrun in spatial init code
sql/spatial.cc: Fixed memory overrun sql/spatial.h: Fixed memory overrun
This commit is contained in:
parent
0dbf737aa2
commit
0952bf2da5
@ -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:
|
|||||||
}
|
}
|
||||||
|
|
||||||
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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user