1
0
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:
Alexey Botchkov
2022-10-25 23:48:54 +04:00
parent e910dff81e
commit 77951dd710
5 changed files with 33 additions and 13 deletions

View File

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