Skip to content

Labelling lines with zero lengths may cause the application to crash #6493

@szekerest

Description

@szekerest

To reproduce this a LINE layer should be configured with TRANSFORM FALSE and the shapefile should contain a line with zero length (all points are at the same location).

The crash location is at:

                mapserver!msLineLabelPoint+0x209 [mapprimitive.c @ 1717]
		mapserver!msPolylineLabelPoint+0x141 [mapprimitive.c @ 1648]
		mapserver!lineLayerDrawShape+0x41c [mapdraw.c @ 1854]
		mapserver!msDrawShape+0x80d [mapdraw.c @ 2169]
		mapserver!msDrawVectorLayer+0x7be [mapdraw.c @ 1164]
		mapserver!msDrawLayer+0x3a3 [mapdraw.c @ 813]
		mapserver!msDrawMap+0x415 [mapdraw.c @ 403]
		mapscript!CSharp_mapObj_draw+0xd

Note: Not all of the data providers support returning such invalid geometries, the shapefile driver does.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions