Opened 13 years ago

Closed 13 years ago

#1828 closed defect (fixed)

CCoordinateSystemGeodeticTransformDef::SerializeFrom might cause heap corruptions

Reported by: baertelchen Owned by: baertelchen
Priority: medium Milestone:
Component: General Version:
Severity: minor Keywords: Coordinate System API CCoordinateSystemGeodeticTransformDef SerializeFrom
Cc: External ID:

Description

If the implementation in CCoordinateSystemGeodeticTransformDef::SerializeFrom() causes an exception to be thrown, the code free's the internal pointer [this->transformDefinition)] 2 times thus causing a heap corruption later on when the object gets disposed.

Change History (1)

comment:1 by baertelchen, 13 years ago

Resolution: fixed
Status: newclosed

Fixed on 10/14/2011. This produced revision 6173.

See http://trac.osgeo.org/mapguide/changeset/6173.

Fixed the code so it does no longer free's the same pointer twice (in SerializeFrom() and then in the destructor again) when an exception was thrown inside SerializeFrom).

Note: See TracTickets for help on using tickets.