[gdal-dev] r 39092: vsigzip filesize check

Even Rouault even.rouault at spatialys.com
Fri Jun 16 05:53:34 PDT 2017

On vendredi 16 juin 2017 05:40:53 CEST Kurt Schwehr wrote:
> Even,
> With https://trac.osgeo.org/gdal/changeset/39092, can you explain the this
> check?
>     uncompressed_pos - startOff > m_compressed_size
> That looks to be comparing the number of bytes compressed vrs
> uncompressed.  How is this checking that the filesize changed?  Something
> seems wrong or there needs to be a comment somewhere because this doesn't
> seem correct.

uncompressed_pos was badly named indeed. It was the "raw" position in the compressed file 
actually. Fixed per 

> Thanks,
> -kurt

Spatialys - Geospatial professional services
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20170616/f75ac198/attachment-0001.html>

More information about the gdal-dev mailing list