Opened 19 months ago
Closed 19 months ago
#5384 closed defect (fixed)
ST_AsGML with empty nprefix crashes backend
Reported by: | strk | Owned by: | strk |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 3.0.9 |
Component: | postgis | Version: | 3.0.x |
Keywords: | Cc: |
Description
As reported in https://lists.osgeo.org/pipermail/postgis-users/2023-May/045954.html I confirm this query crashes the backed as of current 3.3 branch:
SELECT ST_AsGML(ST_GeomFromText('MULTIPOLYGON(((0 0,0 1,1 1,1 0,0 0)),((0 0,0 1,1 1,1 0,0 0)))',4326), 15, 0, '', '1');
Change History (14)
comment:1 by , 19 months ago
Milestone: | PostGIS 3.3.3 → PostGIS 3.0.9 |
---|---|
Version: | 3.3.x → 3.0.x |
comment:2 by , 19 months ago
Interestingly, despite the first argument being a geometry, the inner C code handlign it is the one for geography. Those GML signatures really need some overall cleanup
comment:3 by , 19 months ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:9 by , 19 months ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Reopening as there are more memory issues in that code path, see https://debbie.postgis.net/job/PostGIS_Regress/25157/console
showing: 20:04:46 +WARNING: problem in alloc set ExprContext: detected write past chunk end in block 0x55c3b87a2590, chunk 0x55c3b87a2628
I've tested the bug being present in all branches back to 3.0