Opened 11 years ago

Closed 11 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:

Description

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",
                            "bbox":[1,5,2,6],
                            "coordinates":[]}')::box2d;

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: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728724

Change History (4)

comment:1 by robe, 11 years ago

Milestone: PostGIS 2.1.2PostGIS 2.0.5

comment:2 by robe, 11 years ago

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 by pramsey, 11 years ago

Fixed in 2.0 branch at r12357

Fixed in 2.1 branch at r12354

Fixed in trunk at r12355

comment:4 by pramsey, 11 years ago

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