[gdal-dev] Allocate large memory space with CPLMalloc(). Bug or not?

fazotron alexzhdanov1003 at gmail.com
Thu Oct 1 13:00:38 PDT 2015


Thanks for reply, I'll try VSIMalloc().
But can you explain the goal of check *if( long(nSize) < 0 ) {...}* in
CPLMalloc()? Cast size_t to long leads to implicit result.



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Allocate-large-memory-space-with-CPLMalloc-Bug-or-not-tp5227443p5227452.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list