mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-26161 crash in Gis_point::calculate_haversine
More checks for bad geometry data added.
This commit is contained in:
@ -3095,6 +3095,10 @@ SELECT IS_USED_LOCK(POINT(1,1));
|
||||
--echo #
|
||||
--error ER_CANT_CREATE_GEOMETRY_OBJECT
|
||||
select st_distance_sphere(x'01030000000400000004000000000000', multipoint(point(124,204)), 10);
|
||||
--error ER_CANT_CREATE_GEOMETRY_OBJECT
|
||||
select st_distance_sphere(x'010300000004000000040000', multipoint(point(124,204)), 10);
|
||||
--error ER_CANT_CREATE_GEOMETRY_OBJECT
|
||||
select st_distance_sphere(x'010300000001000000040000', multipoint(point(124,204)), 10);
|
||||
|
||||
--echo #
|
||||
--echo # End of 10.3 tests
|
||||
|
Reference in New Issue
Block a user