1 | 1 | Perhaps this is not a naturally ocurring use case scenario, but the SetGeomField member function of OGRFeature that takes the field index as parameter is not robust, in that it does not check whether the old geometry pointer is the same as the new one. In the case that they are the same ({{{papoGeometries[iField] == poGeomIn}}}) the call of the {{{clone()}}} method (line 744 of ogrfeature.cpp in trunk) causes memory access violation, because the geometry's destructor is executed in the preceding delete statement (line 741 of ogrfeature.cpp). |