ogr2ogr crashes when converting SHP to MIF in version 1.70
|Daniel Morissette, warmerdam, aboudreault
You should have no problem reproducing this, as the problem is a null pointer dereference on the return value of GetLayerDefn() from a newly created MIF layer. It appears that the MIF driver behaves differently than others in that it doesn't create this layer definition until you first start modifying it; unfortunately the new ogr2ogr code assumes that it will have done. I will attach a diff showing one way to defend against this, but perhaps you would prefer the approach of modifying the MIF driver instead -- I don't have enough familiarity with the code to feel confident attacking it from that angle.