id summary reporter owner description type status priority milestone component version resolution keywords cc 3404 ST_ClusterWithin crashes backend dbaston dbaston "The UF_ordered_by_cluster function assumes that {{{UF_find}}} will fully compress all paths, ie after a call to {{{UF_find(uf, i)}}}, we can say that {{{uf->clusters[i] = UF_find(uf, i)}}}. It's possible to end up with a situation where this does not hold; I've run across one in an input set of 24,000 points. The consequence of this is that the `combine_geometries` routine will produce more geometries than expected, and will overflow a block of allocated memory. I'll commit a fix to (a) make sure that `UF_find` fully compresses paths, resolving the root cause of the problem, and (b) include a guard in `combine_geometries` so that we can return an error instead of overflowing." defect closed blocker PostGIS 2.2.1 postgis 2.2.x fixed