[postgis-tickets] [PostGIS] #1553: TGEOM serialization documentation file

PostGIS trac at osgeo.org
Thu Dec 20 07:22:29 PST 2012


#1553: TGEOM serialization documentation file
---------------------------------+------------------------------------------
 Reporter:  colivier             |       Owner:  colivier     
     Type:  task                 |      Status:  new          
 Priority:  blocker              |   Milestone:  PostGIS 2.0.3
Component:  postgis              |     Version:  2.0.x        
 Keywords:  TGEOM serialization  |  
---------------------------------+------------------------------------------
Changes (by strk):

  * priority:  medium => blocker


Comment:

 Olivier: are you planning to ever do this ?

 The unit tests in liblwgeom show very bad memory issues, so much that I'm
 tempted to propose drop of the whole TGEOM code to avoid the security
 issue related to its exposure.

 I was willing to attempt a fix but the serialization format is not
 documented.

 What I see in tgeom_serialize is confusing, in that the serializer is
 allocating two distinct memory segments and linking one segment to the
 other:
 http://trac.osgeo.org/postgis/browser/tags/2.0.2/liblwgeom/libtgeom.c#L806
 http://trac.osgeo.org/postgis/browser/tags/2.0.2/liblwgeom/libtgeom.c#L815
 http://trac.osgeo.org/postgis/browser/tags/2.0.2/liblwgeom/libtgeom.c#L818

 So the returned pointer is NOT into a _serialized_ representation of the
 object

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1553#comment:4>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list