[gdal-dev] kml file with line length too long

Even Rouault even.rouault at spatialys.com
Fri Jun 28 05:19:27 PDT 2019


On vendredi 28 juin 2019 12:05:02 CEST Joaquim Manuel Freire Luís wrote:
> Even, still about this issue. My experimental gmt_ogrread() function crashes
> when used with this file. The crash occurs at
> https://github.com/GenericMappingTools/gmt/blob/master/src/gmt_ogrread.c#L3
> 44 and happens more or less randomly in "iLayer" ~> 4. From this I deduce
> the trouble comes from those multiple (empty?) layers of this file. 
> It's strange because line 342 also accesses hSRS but it never crashed
> there.

Nothing strikes me as obviously wrong (just missing CPLFree() on pszWKT and 
pszProj4, but that's not the cause of your issue).
You'll have to use your favorite debugging tool: gdb, valgrind ...

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list