Opened 12 years ago

Closed 12 years ago

#2130 closed defect (fixed)

Backend crash on GeomFromGeoJSON

Reported by: strk Owned by: strk
Priority: blocker Milestone: PostGIS 2.0.2
Component: postgis Version: 2.0.x
Keywords: Cc:

Description

This should block 2.0.2 I'm on it

Change History (4)

comment:1 by strk, 12 years ago

Here's the offending input:

select ST_GeomFromGeoJSON('{"type":"MultiPolygon","coordinates":[[[[-117.10553,32.51016],[-117.10553,32.51016],[-117.10553,32.51016],[-117.11956,32.52318],[-117.12589,32.52646],[-117.12827,32.53336],[-117.13047,32.53977],[-117.13739,32.64917],[-117.18375,32.68788],[-117.24348,32.66403],[-117.27069,32.80627],[-117.25576,32.87337],[-117.26297,32.93887],[-117.31883,33.10005],[-117.41564,33.2274],[-117.41159,33.231],[-117.36598,33.26107],[-117.31363,33.28133],[-117.28868,33.28763],[-117.26302,33.28763],[-117.23498,33.27846],[-117.21323,33.26086],[-117.12703,33.20738],[-117.03541,33.15927],[-117.02675,33.06],[-117.01001,32.96879],[-117.05063,32.9205],[-117.08621,32.86719],[-117.0337,32.88453],[-116.98461,32.9053],[-116.91782,32.89587],[-116.88302,32.85448],[-116.92635,32.74539],[-116.97192,32.6386],[-116.90493,32.58494],[-116.84493,32.52427],[-116.84162,32.48419],[-116.87033,32.4481],[-116.94653,32.4481],[-117.02272,32.4481],[-117.05316,32.47693],[-117.0906,32.49745],[-117.10553,32.51016]],[[-117.13664,33.00651],[-117.13664,33.00651],[-117.13664,33.00651],[-117.11163,33.07038],[-117.19354,33.10178],[-117.20052,32.9815],[-117.13664,33.00651]]]]}');

comment:2 by strk, 12 years ago

Simplified:

select ST_GeomFromGeoJSON('{"type":"MultiPolygon","coordinates":[[[[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,32],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,32],[-117,32],[-117,32],[-117,32],[-116,32],[-116,32],[-116,32],[-116,32],[-116,32],[-116,32],[-116,32],[-116,32],[-116,32],[-116,32],[-117,32],[-117,32],[-117,32],[-117,32]],[[-117,33],[-117,33],[-117,33],[-117,33],[-117,33],[-117,32],[-117,33]]]]}');

comment:3 by strk, 12 years ago

Owner: changed from pramsey to strk
Status: newassigned

comment:4 by strk, 12 years ago

Resolution: fixed
Status: assignedclosed

r10785 in 2.0 branch, r10786 in trunk.

Wrong counter variable used to address array element …

Note: See TracTickets for help on using tickets.