[postgis-tickets] [PostGIS] #5028: ST_AsFlatGeobuf crashes on mixed geometry input
PostGIS
trac at osgeo.org
Sat Nov 27 11:06:55 PST 2021
#5028: ST_AsFlatGeobuf crashes on mixed geometry input
-----------------------------+----------------------------
Reporter: Björn Harrtell | Owner: Björn Harrtell
Type: defect | Status: assigned
Priority: medium | Milestone: PostGIS 3.2.0
Component: postgis | Version: master
Resolution: | Keywords:
-----------------------------+----------------------------
Comment (by Björn Harrtell):
This is because I use the first geometry to determine geometry type at
https://github.com/postgis/postgis/blob/eda70258f373c1ad88e1851f194c891ad8d9aff4/deps/flatgeobuf/flatgeobuf_c.cpp#L56.
Adding an option to override this doesn't feel right.
At least I should be able to detect this situation and bail to avoid the
crash.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5028#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list