Opened 13 years ago

Closed 13 years ago

#690 closed defect (fixed)

Trying to make a line with a point and a linestring crashes the server

Reported by: robe Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.0
Component: postgis Version: master
Keywords: Cc:

Description

I know people shouldn't be doing this but it didn't crash the server in 1.5

SELECT ST_MakeLine(ST_GeomFromText('POINT(-11.1111111 40)'), ST_GeomFromText('LINESTRING(-11.1111111 70,70 -11.1111111)')) As result

In 1.5 you get a nice harmless warning:

ERROR:  lwpoint_deserialize: attempt to deserialize a point which is really a LineString

In 2.0 your server crashes not so nicely. This is testing with the latest trunk.

Change History (2)

comment:1 by pramsey, 13 years ago

Fixed at r6319

comment:2 by pramsey, 13 years ago

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