[geos-devel] MakeValid and empty collection component

Sandro Santilli strk at kbt.io
Mon Dec 21 03:51:44 PST 2020


On Mon, Dec 21, 2020 at 10:18:53AM +0300, Darafei "Komяpa" Praliaskouski wrote:
> Hi,
> 
> ST_MakeValid('MULTIPOLYGON EMPTY') crashes (any) GEOS in PostGIS 3.1.0
> after the removal of EMPTY was dropped.

Please check both 3.1 and master branches now. I pushed a fix for this
crash (fully inside PostGIS).

> In PostGIS input functions and for Wagyu clipping library there's a set of
> fuzzers that make sure the function never crashes.
> MakeValid in GEOS may be a good candidate for such a thing - it needs to
> output a Valid something and not crash on any input to be useful.

A `fuzz` target for Makefile would help developers play with this.
Like we have 'make garden'.

--strk;


More information about the geos-devel mailing list