Opened 15 years ago

Closed 15 years ago

#277 closed defect (fixed)

ST_As* crashes on huge number

Reported by: colivier Owned by: colivier
Priority: high Milestone: PostGIS 1.4.1
Component: postgis Version: 1.4.X
Keywords: Cc:

Description

Following query crash PostgreSQL server

SELECT ST_AsGML(2, GeomFromText('POINT(1 1e308)'));

Impacted: ST_AsGML, ST_AsKML, ST_AsGeoJson, ST_AsSVG on 1.4.x and trunk branches

Attachments (2)

unit_test.sql (1.9 KB ) - added by colivier 15 years ago.
unit_test_result (1.5 KB ) - added by colivier 15 years ago.

Download all attachments as: .zip

Change History (3)

by colivier, 15 years ago

Attachment: unit_test.sql added

by colivier, 15 years ago

Attachment: unit_test_result added

comment:1 by colivier, 15 years ago

Resolution: fixed
Status: newclosed

Fix commited in 1.4 as r4681 and in trunk as r4682
Define a MAX_DOUBLE number, if data beyond these limit scientific notation is used.
Regressions tests (and results) attached

Note: See TracTickets for help on using tickets.