MapGuide Open Source:  Home |  Download |  Internals

Ticket #242 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Stylizer not properly parsing the geometry

Reported by: brucedechant Assigned to: brucedechant
Priority: medium Milestone: 2.0
Component: Server Version: 1.2.0
Severity: major Keywords:
Cc: External ID:

Description

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.

Change History

08/10/07 13:35:30 changed by brucedechant

  • status changed from new to assigned.
  • owner set to brucedechant.

08/10/07 13:38:59 changed by brucedechant

  • status changed from assigned to closed.
  • resolution set to fixed.