Skip to content
  • Ragnar Thomsen's avatar
    libzip: Improve test integrity function · a9147d82
    Ragnar Thomsen authored
    The old test implementation only opens the archive with some additional
    checks, but fails to detect archives with CRC errors for entries.
    
    We now read each entry and check the CRC checksum against the one given
    in the file header. We use zlib's crc32() function to compute the
    checksum.
    
    CCBUG: 384622
    Differential Revision: D8400
    a9147d82