#5635 closed defect (fixed)
ST_Split with NaN coordinates and empty geometry causes crash or invalid memory alloc request size
Reported by: | robe | Owned by: | robe |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 3.0.11 |
Component: | postgis | Version: | master |
Keywords: | Cc: |
Description (last modified by )
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
Change History (13)
comment:1 by , 11 months ago
comment:2 by , 11 months ago
Owner: | changed from | to
---|
comment:4 by , 11 months ago
Description: | modified (diff) |
---|
comment:12 by , 11 months ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:13 by , 11 months ago
Version: | 3.4.x → master |
---|
Note:
See TracTickets
for help on using tickets.
Related GEOS ticket at https://github.com/libgeos/geos/issues/1006