Opened 5 years ago

Closed 5 years ago

#2619 closed defect (fixed)

SIGSEGV in ST_GeomFromGeoJSON with empty list of coordinates

Reported by: mwanner Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.5
Component: postgis Version: 2.1.x
Keywords: Cc:


As reported by Debian user Jérémy Lal postgis-2.1.0 crashes the Postgres backend when given the following query:

SELECT ST_GeomFromGeoJSON('{"type":"Polygon",

I can reprodude this issue with 2.1.1. I found a related issue #2546 as well as commit r8690, which seems to have fixed this before, but given it's 2 years ago, I'm assuming that's included in 2.1.1.

The original report can be found here:

Change History (4)

comment:1 Changed 5 years ago by robe

Milestone: PostGIS 2.1.2PostGIS 2.0.5

comment:2 Changed 5 years ago by robe

This crashes on 2.1.1, 2.1.2, 2.0.4 for me so I pushed to 2.0.5. This doesn't seem to be quite same issue as the r8690 since all those crashme tests don't crash on my installs (I think those were completely missing coordinates -- not case of empty coordinates)

comment:3 Changed 5 years ago by pramsey

Fixed in 2.0 branch at r12357

Fixed in 2.1 branch at r12354

Fixed in trunk at r12355

comment:4 Changed 5 years ago by pramsey

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.