Ticket #277 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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

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

Change History

Changed 2 years ago by colivier

Changed 2 years ago by colivier

Changed 2 years ago by colivier

  • status changed from new to closed
  • resolution set to fixed

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.