2017.06.27 22:52 "Re: [Tiff] Excessive memory allocation while chopping strips", by Even Rouault
On mardi 27 juin 2017 18:43:27 CEST Olivier Paquet wrote:
2017-06-27 18:08 GMT-04:00 Even Rouault <email@example.com>:
But indeed you raise a more general problem. libtiff may allocate in various places enormous virtual memory for very short files. I've tried workarounding a few situations at application level in GDAL,
Could you explain why that is a problem?
Fuzzers (specifically the address sanitizer) crash on this situations, assuming that attempts of huge memory allocations are a bug. libtiff itself will not crash (or it is a real bug) if a malloc() fails, but this isn't a good practice to attempt allocating a lot of memory if it is not needed. And indeed the files processed by fuzzers are just a few kilobytes large at most.
Spatialys - Geospatial professional services