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

PostGIS trac at osgeo.org
Wed May 16 10:20:16 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:           |  
---------------------+------------------------------------------------------

Comment(by strk):

 Code on line 336 is:

 {{{
   else if ( pg_geom1 &&
             cache->argnum != 2 &&
             cache->pg_geom1_size == pg_geom1_size &&
             memcmp(cache->pg_geom1, pg_geom1, pg_geom1_size) == 0)
 }}}

 It is the memcmp being a problem, removing which there's no error anymore.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/1825#comment:2>
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