VirtualBox

Ignore:
Timestamp:
Jun 9, 2022 9:09:44 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151769
Message:

libs/zlib: Upgrade to 1.2.12, bugref:8515

Location:
trunk/src/libs/zlib-1.2.12
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/zlib-1.2.12

    • Property svn:mergeinfo
      •  

        old new  
        2020/branches/dsen/gui3/src/libs/zlib-1.2.11:79645-79692
        2121/trunk/src/src/libs/zlib-1.2.11:92342
         22/vendor/zlib/1.2.12:151751
         23/vendor/zlib/current:150724-151750
  • trunk/src/libs/zlib-1.2.12/contrib/minizip/zip.c

    r76163 r95239  
    159159    unsigned long keys[3];     /* keys defining the pseudo-random sequence */
    160160    const z_crc_t* pcrc_32_tab;
    161     int crypt_header_size;
     161    unsigned crypt_header_size;
    162162#endif
    163163} curfile64_info;
     
    302302      }
    303303
    304     if (ZWRITE64(*pzlib_filefunc_def,filestream,buf,nbByte)!=(uLong)nbByte)
     304    if (ZWRITE64(*pzlib_filefunc_def,filestream,buf,(uLong)nbByte)!=(uLong)nbByte)
    305305        return ZIP_ERRNO;
    306306    else
     
    338338        year-=80;
    339339    return
    340       (uLong) (((ptm->tm_mday) + (32 * (ptm->tm_mon+1)) + (512 * year)) << 16) |
    341         ((ptm->tm_sec/2) + (32* ptm->tm_min) + (2048 * (uLong)ptm->tm_hour));
     340      (uLong) (((uLong)(ptm->tm_mday) + (32 * (uLong)(ptm->tm_mon+1)) + (512 * year)) << 16) |
     341        (((uLong)ptm->tm_sec/2) + (32 * (uLong)ptm->tm_min) + (2048 * (uLong)ptm->tm_hour));
    342342}
    343343
     
    523523        ((*(buf+i+2))==0x05) && ((*(buf+i+3))==0x06))
    524524      {
    525         uPosFound = uReadPos+i;
     525        uPosFound = uReadPos+(unsigned)i;
    526526        break;
    527527      }
    528528
    529       if (uPosFound!=0)
    530         break;
     529    if (uPosFound!=0)
     530      break;
    531531  }
    532532  TRYFREE(buf);
     
    587587      if (((*(buf+i))==0x50) && ((*(buf+i+1))==0x4b) && ((*(buf+i+2))==0x06) && ((*(buf+i+3))==0x07))
    588588      {
    589         uPosFound = uReadPos+i;
     589        uPosFound = uReadPos+(unsigned)i;
    590590        break;
    591591      }
     
    638638}
    639639
    640 int LoadCentralDirectoryRecord(zip64_internal* pziinit)
     640local int LoadCentralDirectoryRecord(zip64_internal* pziinit)
    641641{
    642642  int err=ZIP_OK;
     
    956956}
    957957
    958 int Write_LocalFileHeader(zip64_internal* zi, const char* filename, uInt size_extrafield_local, const void* extrafield_local)
     958local int Write_LocalFileHeader(zip64_internal* zi, const char* filename, uInt size_extrafield_local, const void* extrafield_local)
    959959{
    960960  /* write the local header */
     
    10351035      zi->ci.pos_zip64extrainfo = ZTELL64(zi->z_filefunc,zi->filestream);
    10361036
    1037       err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (short)HeaderID,2);
    1038       err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (short)DataSize,2);
     1037      err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (ZPOS64_T)HeaderID,2);
     1038      err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (ZPOS64_T)DataSize,2);
    10391039
    10401040      err = zip64local_putValue(&zi->z_filefunc, zi->filestream, (ZPOS64_T)UncompressedSize,8);
     
    15171517    ZPOS64_T compressed_size;
    15181518    uLong invalidValue = 0xffffffff;
    1519     short datasize = 0;
     1519    unsigned datasize = 0;
    15201520    int err=ZIP_OK;
    15211521
     
    17531753}
    17541754
    1755 int Write_Zip64EndOfCentralDirectoryLocator(zip64_internal* zi, ZPOS64_T zip64eocd_pos_inzip)
     1755local int Write_Zip64EndOfCentralDirectoryLocator(zip64_internal* zi, ZPOS64_T zip64eocd_pos_inzip)
    17561756{
    17571757  int err = ZIP_OK;
     
    17751775}
    17761776
    1777 int Write_Zip64EndOfCentralDirectoryRecord(zip64_internal* zi, uLong size_centraldir, ZPOS64_T centraldir_pos_inzip)
     1777local int Write_Zip64EndOfCentralDirectoryRecord(zip64_internal* zi, uLong size_centraldir, ZPOS64_T centraldir_pos_inzip)
    17781778{
    17791779  int err = ZIP_OK;
     
    18141814  return err;
    18151815}
    1816 int Write_EndOfCentralDirectoryRecord(zip64_internal* zi, uLong size_centraldir, ZPOS64_T centraldir_pos_inzip)
     1816local int Write_EndOfCentralDirectoryRecord(zip64_internal* zi, uLong size_centraldir, ZPOS64_T centraldir_pos_inzip)
    18171817{
    18181818  int err = ZIP_OK;
     
    18621862}
    18631863
    1864 int Write_GlobalComment(zip64_internal* zi, const char* global_comment)
     1864local int Write_GlobalComment(zip64_internal* zi, const char* global_comment)
    18651865{
    18661866  int err = ZIP_OK;
     
    19631963    return ZIP_PARAMERROR;
    19641964
    1965   pNewHeader = (char*)ALLOC(*dataLen);
     1965  pNewHeader = (char*)ALLOC((unsigned)*dataLen);
    19661966  pTmp = pNewHeader;
    19671967
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette