Opened 3 years ago

Closed 3 years ago

#4999 closed defect (fixed)

Crash in ST_ASFlatGeobuf

Reported by: robe Owned by: Björn Harrtell
Priority: medium Milestone: PostGIS 3.2.0
Component: postgis Version: master
Keywords: Cc:

Description

SELECT ST_AsFlatGeobuf(foo1)OVER()  As result
							FROM ((SELECT ST_GeomFromText('POINT EMPTY',4326) As the_geom
			UNION ALL SELECT ST_GeomFromText('MULTIPOINT EMPTY',4326) As the_geom
			UNION ALL SELECT ST_GeomFromText('MULTIPOLYGON EMPTY',4326) As the_geom
			UNION ALL SELECT ST_GeomFromText('LINESTRING EMPTY',4326) As the_geom
			UNION ALL SELECT ST_GeomFromText('MULTILINESTRING EMPTY',4326) As the_geom ) ) As foo1 LIMIT 10;

Crashes without the OVER() clause too.

Change History (3)

comment:1 by robe, 3 years ago

Owner: changed from pramsey to Björn Harrtell

comment:2 by Björn Harrtell, 3 years ago

I believe the problem is that I'm not considering empty geometry.

comment:3 by Björn Harrtell <bjorn@…>, 3 years ago

Resolution: fixed
Status: newclosed

In c140fdb/git:

Consider empty geometry (fixes #4999)

Note: See TracTickets for help on using tickets.