[mapguide][MG102][Modified] Uninitialized variable in MgByte

Traian Stanev traian.stanev at autodesk.com
Mon Mar 13 16:03:38 EST 2006


You can view the artifact detail at the following URL:

    https://mapguide.osgeo.org/servlets/Scarab/id/MG102

Type:
Defect

Artifact ID:
MG102 (Uninitialized variable in MgByte)

Modified by:
Traian Stanev
traianstanev (traian.stanev at autodesk.com)

The following modifications were made to this artifact:
---------------------------------------------------------------------

Added following comment to artifact::

Automated Comment.  Version control commit message.

MG102 : The variable m_allocLen in MgByte is not initialized in the case where the initial length is 0, resulting in a server crash in certain cases when data is appended to the MgByte object.

Other null/zero checks were also needed to prevent errors that happen during legend image generation from crashing the map agent.

Modified
File: trunk/MgDev/Common/Service/Util/Byte.cpp https://mapguide.osgeo.org/source/browse/mapguide/trunk/MgDev/Common/Service/Util/Byte.cpp?view=diff&rev=297&p1=trunk/MgDev/Common/Service/Util/Byte.cpp&r1=296&p2=trunk/MgDev/Common/Service/Util/Byte.cpp&r2=297
File: trunk/MgDev/Common/Stylization/DWFRenderer.cpp https://mapguide.osgeo.org/source/browse/mapguide/trunk/MgDev/Common/Stylization/DWFRenderer.cpp?view=diff&rev=297&p1=trunk/MgDev/Common/Stylization/DWFRenderer.cpp&r1=296&p2=trunk/MgDev/Common/Stylization/DWFRenderer.cpp&r2=297
File: trunk/MgDev/Common/Stylization/GDRenderer.cpp https://mapguide.osgeo.org/source/browse/mapguide/trunk/MgDev/Common/Stylization/GDRenderer.cpp?view=diff&rev=297&p1=trunk/MgDev/Common/Stylization/GDRenderer.cpp&r1=296&p2=trunk/MgDev/Common/Stylization/GDRenderer.cpp&r2=297
File: trunk/MgDev/Server/src/Services/Mapping/StylizationUtil.cpp https://mapguide.osgeo.org/source/browse/mapguide/trunk/MgDev/Server/src/Services/Mapping/StylizationUtil.cpp?view=diff&rev=297&p1=trunk/MgDev/Server/src/Services/Mapping/StylizationUtil.cpp&r1=296&p2=trunk/MgDev/Server/src/Services/Mapping/StylizationUtil.cpp&r2=297



---------------------------------------------------------------------
This message was automatically generated by Project Tracker.








More information about the Mapguide_issues mailing list