Opened 21 months ago
Closed 21 months ago
#5350 closed defect (fixed)
ST_AsSVG crashes on geometry collection with an empty point
Reported by: | robe | Owned by: | robe |
---|---|---|---|
Priority: | blocker | Milestone: | PostGIS 3.4.0 |
Component: | postgis | Version: | 3.3.x |
Keywords: | Cc: |
Description (last modified by )
SELECT ST_AsSVG(ST_GeomFromText('GEOMETRYCOLLECTION (POINT EMPTY, LINESTRING (0 0, 1 1))',4326), 3, 5 )
Inspired by https://github.com/libgeos/geos/pull/831
I stuffed that nasty geometry into the garden grinder and it crashed ST_ASSVG
Change History (4)
comment:1 by , 21 months ago
Description: | modified (diff) |
---|---|
Owner: | changed from | to
comment:2 by , 21 months ago
comment:4 by , 21 months ago
Milestone: | PostGIS 3.0.9 → PostGIS 3.4.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
I thought I'd need to backport this change, but it looks like stable-3.3 is okay and by extension I assume the others are too.
The output in 3.3 is
x="2.94485e-317" y="-1.14e-321";M 0 0 l 1 -1
I think the crash was introduced in master with the change of using string_buffer. In master, I went with just skipping empties, so output is
M 0 0 l 1 -1
Note:
See TracTickets
for help on using tickets.
stack trace looks like