[postgis-users] Postgres 8.1beta2 crash with 3D (and beyond) geometries..

Alex Mayrhofer axelm-postgis at nona.net
Sun Oct 30 11:26:40 PST 2005


Alex Mayrhofer wrote:
> Hi,
> 
> I'm trying to use geometries with dimensions > 2 on one of my test 
> machines.   Table creation was fine (i was using a 4D POINT geometry), 
> however, when PostGIS tries to parse a POINT geometry with dimension > 2 
> (tried with 3d/4d, just POINTs), Postgres crashes:

[ i hate to reply to myself, but there's an update - sorry ]

It seems as if "geomfromewkt()" works fine (same box, same DB):

----
geotest=# select geomfromewkt('SRID=4236;POINT(0 0 0)');
                             geomfromewkt
--------------------------------------------------------------------
  00A00000010000108C000000000000000000000000000000000000000000000000
(1 row)

geotest=# select geomfromewkt('SRID=4236;POINT(0 0 0 0)');
                                     geomfromewkt 

------------------------------------------------------------------------------------
 
00E00000010000108C0000000000000000000000000000000000000000000000000000000000000000
(1 row)

geotest=# select geomfromewkt('POINT(0 0 0 0)');
                                 geomfromewkt
----------------------------------------------------------------------------
  00C00000010000000000000000000000000000000000000000000000000000000000000000
(1 row)
----

So, the problem is solved for my project for now, but the bug still poses a 
DoS attack on a server...

cheers

Alex Mayrhofer



More information about the postgis-users mailing list