1
0
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:
Alexey Botchkov
2015-11-01 20:37:23 +04:00
parent 3e043b30ac
commit 641644a862

View File

@@ -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++)))