segfault in ogr.input when reading gpx lines with empty geoms - either tracks or routes layer #292

Closed
artemp opened this Issue Oct 11, 2011 · 1 comment

Comments

Projects
None yet
1 participant
@artemp
Owner

artemp commented Oct 11, 2011

segfault on mac osx and ubuntu with both lines and multilines given the test with emtpy geoms here:

http://mapnik-utils.googlecode.com/svn/example_code/gpx_points_lines/

@artemp

This comment has been minimized.

Show comment Hide comment
@artemp

artemp Oct 11, 2011

Owner

[springmeyer] Ah ha.

fixed in r1074

by checking for isEmpty rather than NULL:

http://www.gdal.org/ogr/classOGRGeometry.html#c8653ba97e53f3e3b041946ca2acc111

Owner

artemp commented Oct 11, 2011

[springmeyer] Ah ha.

fixed in r1074

by checking for isEmpty rather than NULL:

http://www.gdal.org/ogr/classOGRGeometry.html#c8653ba97e53f3e3b041946ca2acc111

@artemp artemp closed this Oct 11, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment