#5319 closed defect (fixed)

ST_SetPoint crashes with Multipolygon with infinity coordinates

Reported by: robe Owned by: robe
Priority: blocker Milestone: PostGIS 3.0.9
Component: postgis Version: master
Keywords: Cc:

Description (last modified by robe)

Same issue as #5315 and #5318

SELECT ST_SetPoint('0102000020E610000005000000000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F'::geometry, 1,ST_GeomFromText('POINT(0 0)',4326)  ) As result

Change History (10)

comment:1 by robe, 22 months ago

Owner: changed from pramsey to robe

comment:2 by robe, 22 months ago

Description: modified (diff)

comment:3 by robe, 22 months ago

Seems I was mistaken here, it doesn't crash. Maybe it was another combo.

SELECT ST_AsText(ST_SetPoint('0102000020E610000005000000000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F000000000000F07F'::geometry, 1,ST_GeomFromText('POINT(0 0)',4326)  ))  As result;

outputs:

LINESTRING(Infinity Infinity,0 0,Infinity Infinity,Infinity Infinity,Infinity Infinity)

I'm putting in a catch anyway for this in case it was another combo I missed.

comment:4 by Regina Obe <lr@…>, 22 months ago

In 633cf97/git:

Prevent crash on infinite coordinates
for PostGIS 3.4
References #5319 ST_SetPoint
References #5315 ST_Buffer
References #5318 ST_MaximumnInscribedCircle

comment:5 by Regina Obe <lr@…>, 22 months ago

In a46840c/git:

Prevent crash on infinite coordinates
for PostGIS 3.3.3
References #5319 ST_SetPoint
References #5315 ST_Buffer
References #5318 ST_MaximumnInscribedCircle

comment:6 by Regina Obe <lr@…>, 22 months ago

In 0239850/git:

Prefilter to check for non-finite coordinates before feeding
ST_SimplifyPreserveTopology, ST_Buffer, ST_SetPoint,
ST_MinimumInscribedCircle
to avoid crash/hang.
References #5320
References #5315
References #5318
References #5319
for PostGIS 3.2.5

comment:7 by Regina Obe <lr@…>, 22 months ago

In 11335bb/git:

Prefilter to check for non-finite coordinates before feeding
ST_SimplifyPreserveTopology, ST_Buffer, ST_SetPoint,
ST_MinimumInscribedCircle
to avoid crash/hang.
References #5320
References #5315
References #5318
References #5319
for PostGIS 3.1.9

comment:8 by Regina Obe <lr@…>, 22 months ago

In 92e7399/git:

Prefilter to check for non-finite coordinates before feeding
ST_SimplifyPreserveTopology, ST_Buffer, ST_SetPoint
to avoid crash/hang.
References #5320
References #5315
References #5319
for PostGIS 3.0.9

comment:9 by pramsey, 21 months ago

Close?

comment:10 by robe, 21 months ago

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