mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-35062 Assertion failed in Binary_string::q_append
Reserve sufficient space in the result for q_append'ed data, as q_append does not itself reserve space like it's append counterpart.
This commit is contained in:
committed by
Dave Gosselin
parent
dc9b43a71e
commit
8c2a207d58
@@ -4604,6 +4604,7 @@ int Gis_geometry_collection::make_clockwise(String *result) const
|
||||
!(geometry= Geometry::construct(&buffer, wkb.ptr(), wkb.length())))
|
||||
return 1;
|
||||
|
||||
result->reserve(sizeof(char) + sizeof(uint32));
|
||||
result->q_append((char) wkb_ndr);
|
||||
result->q_append((uint32) geometry->get_class_info()->m_type_id);
|
||||
if (geometry->get_class_info()->m_type_id == Geometry::wkb_polygon ||
|
||||
|
Reference in New Issue
Block a user