mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
MDEV-8992 MariaDB crashes when accessing table with GIS features.
we don't test for not-existing gis extra in FRM.
This commit is contained in:
@@ -8326,6 +8326,9 @@ uint gis_field_options_read(const uchar *buf, uint buf_len,
|
||||
*precision= *scale= *srid= 0;
|
||||
*st_type= Field_geom::GEOM_STORAGE_WKB;
|
||||
|
||||
if (!buf) /* can only happen with the old FRM file */
|
||||
goto end_of_record;
|
||||
|
||||
while (cbuf < buf_end)
|
||||
{
|
||||
switch ((option_id= *(cbuf++)))
|
||||
|
||||
Reference in New Issue
Block a user