[PostGIS] #5635: ST_Split with NaN coordinates and empty geometry causes crash or invalid memory alloc request size

PostGIS trac at osgeo.org
Sun Dec 3 02:54:27 PST 2023


#5635: ST_Split with NaN coordinates and empty geometry causes crash or invalid
memory alloc request size
---------------------+----------------------------
 Reporter:  robe     |      Owner:  pramsey
     Type:  defect   |     Status:  new
 Priority:  blocker  |  Milestone:  PostGIS 3.0.11
Component:  postgis  |    Version:  3.4.x
 Keywords:           |
---------------------+----------------------------
 After I put in NaN coordinate tests in garden tester, the berries are
 crashing on this:


 {{{
         SELECT ST_Split('LINESTRING Z (1 2 NaN,3 4 10,5 6 NaN)'::geometry
                                         ,'MULTIPOINT(EMPTY,2 1,2 4, 4
 5)'::geometry )
 }}}


 On windows testing with


 {{{
 POSTGIS="3.5.0dev 3.4.0rc1-819-ge433f1884" [EXTENSION] PGSQL="150"
 GEOS="3.12.2dev-CAPI-1.18.2" (compiled against GEOS 3.13.0) PROJ="8.2.1
 NETWORK_ENABLED=OFF

 PostgreSQL 15.0 on x86_64-w64-mingw32, compiled by gcc.exe (x86_64-posix-
 seh-rev0, Built by MinGW-W64 project) 8.1.0, 64-bit
 }}}


 it doesn't crash but gives


 {{{
 ERROR:  invalid memory alloc request size 1073741824
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5635>
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