Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#6317 closed defect (fixed)

Segfault on shapefiles with MultiLineString declared as ARCM but without M values

Reported by: strk Owned by: warmerdam
Priority: normal Milestone: 1.11.4
Component: OGR_SF Version: svn-trunk
Severity: normal Keywords: shapefile
Cc:

Description

Run against the shapefile attached, ogrinfo -al segfaults. The file was generated by ogr via qgis as per http://hub.qgis.org/issues/11422 (where the writing side also segfaulted)

Attachments (1)

file.zip (2.1 KB) - added by strk 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by strk

Attachment: file.zip added

comment:1 Changed 4 years ago by strk

Valgrind report:

==9042== Invalid read of size 8
==9042==    at 0x4C2F250: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:933)
==9042==    by 0x58D31C7: SHPReadOGRObject(SHPInfo*, int, tagSHPObject*) (shape2ogr.cpp:234)
==9042==    by 0x58D422D: SHPReadOGRFeature(SHPInfo*, DBFInfo*, OGRFeatureDefn*, int, tagSHPObject*, char const*) (shape2ogr.cpp:1100)
==9042==    by 0x582E999: OGRShapeLayer::GetNextFeature() (ogrshapelayer.cpp:771)
==9042==    by 0x403125: ReportOnLayer(OGRLayer*, char const*, char const*, OGRGeometry*, int, int, char**, int, int) (ogrinfo.cpp:704)
==9042==    by 0x40224D: main (ogrinfo.cpp:441)
==9042==  Address 0x20 is not stack'd, malloc'd or (recently) free'd

comment:2 Changed 4 years ago by Even Rouault

Milestone: 1.11.4
Resolution: fixed
Status: newclosed

trunk r33048, branches/2.0 r33049, branches/1.11 r33050 "Shape: fix crash on MultiLineStringM shapes that have no M component (#6317)"

comment:3 Changed 4 years ago by Even Rouault

Summary: ogrinfo -al segfaultsSegfault on shapefiles with MultiLineString declared as ARCM but without M values
Note: See TracTickets for help on using tickets.