[gdal-dev] ogr2ogr : limit memory usage

Even Rouault even.rouault at spatialys.com
Tue Oct 17 06:40:27 PDT 2017


On mardi 17 octobre 2017 06:34:07 CEST Kurt Schwehr wrote:
> Added some small fuzzer corpus test cases that cause me OOM on a 2GB
> instance:
> 
> https://trac.osgeo.org/gdal/ticket/6540#comment:5

I doubt this is a OOM issue. But there was indeed a regression with empty 
string keys in dictionaries that caused an assertion (or a wrong branch to be 
taken in non-debug mode). Just fixed it

After the fix the following works (with my debug build, with many libraries 
linked, you need 700 MB to load GDAL)

for i in json/*; do (ulimit -v 700000; ogrinfo $i -al -so); done

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


More information about the gdal-dev mailing list