[mapguide-trac] #242: Stylizer not properly parsing the geometry

MapGuide Open Source trac_mapguide at osgeo.org
Fri Aug 10 13:35:14 EDT 2007


#242: Stylizer not properly parsing the geometry
----------------------------+-----------------------------------------------
   Reporter:  brucedechant  |       Owner:       
       Type:  defect        |      Status:  new  
   Priority:  medium        |   Milestone:  1.3  
  Component:  Server        |     Version:  1.2.0
   Severity:  major         |    Keywords:       
External_id:                |  
----------------------------+-----------------------------------------------
 The methods ParseDouble() and ParseDoublePair() were using an
 uninitialized length and had an extra space in the text for the swscanf()
 method they were using. This was sometimes causing the length piece to
 remain uninitialized when the swscanf() API was executed. This in turn
 would cause a bad length value to be added as a pointer offset to the
 underlying string being parsed. This then would cause a very long loop to
 be processed and a possible server operation timing out because it was
 taking so long.

 This failure was reproducible by running the server rendering unit tests
 in RELEASE mode. DEBUG mode did not show this error because of the padding
 around objects.

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/242>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list