[postgis-devel] [PostGIS] #1825: containsproperly: Conditional jump or move depends on uninitialised value(s)

PostGIS trac at osgeo.org
Wed May 16 10:17:57 PDT 2012


#1825: containsproperly: Conditional jump or move depends on uninitialised
value(s)
---------------------+------------------------------------------------------
 Reporter:  strk     |       Owner:  pramsey      
     Type:  defect   |      Status:  new          
 Priority:  high     |   Milestone:  PostGIS 2.0.1
Component:  postgis  |     Version:  2.0.x        
 Keywords:           |  
---------------------+------------------------------------------------------
 Running one of the tests in our regression suite under valgrind gives a
 conditional jump depending on uninitialized error:

 The query:
 {{{
 SELECT c, ST_ContainsProperly(ply, pt) FROM ( VALUES
 ('containsproperly099', 'POLYGON((0 0, 0 10, 10 10, 10 0, 0 0))', 'POINT(5
 5)'), ('containsproperly103', 'POLYGON((0 0, 0 10, 10 10, 10 0, 0 0))',
 'POINT(0 5)'), ('containsproperly104', 'POLYGON((0 0, 0 10, 10 10, 10 0, 0
 0))', 'POINT(0 12)')) AS v(c,ply,pt);
 }}}

 Note that you _need_ 3 records in there, or the error doesn't show up.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1825>
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-devel mailing list