Skip to content
  • Dylan Thacker-Smith's avatar
    29c02709
    Add missing gzip footer check in ActiveSupport::Gzip.decompress · 29c02709
    Dylan Thacker-Smith authored
    A gzip file has a checksum and length for the decompressed data in its
    footer which isn't checked by just calling Zlib::GzipReader#read.
    Calling Zlib::GzipReader#close must be called after reading to the end
    of the file causes this check to be done, which is done by
    Zlib::GzipReader.wrap after its block is called.
    29c02709
    Add missing gzip footer check in ActiveSupport::Gzip.decompress
    Dylan Thacker-Smith authored
    A gzip file has a checksum and length for the decompressed data in its
    footer which isn't checked by just calling Zlib::GzipReader#read.
    Calling Zlib::GzipReader#close must be called after reading to the end
    of the file causes this check to be done, which is done by
    Zlib::GzipReader.wrap after its block is called.
Loading