[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zlib-devel
Subject:    [Zlib-devel] zlib release plan
From:       info () winimage ! com (Gilles Vollant)
Date:       2004-08-23 16:58:26
Message-ID: mailman.8.1568313439.875661.zlib-devel_madler.net () madler ! net
[Download RAW message or body]


I've two bugfix to add on zLibDll
(you can see discussion at http://forum.winimage.com/viewtopic.php?t=11 )

The better way is just copy files from
http://www.winimage.com/zLibDll/unzip101c.zip
And put them on contrib/minizip

Or just apply this latest patch

diff -c unzip101b/unzip.c unzip101c/unzip.c
*** unzip101b/unzip.c   Sun May 16 13:40:11 2004
--- unzip101c/unzip.c   Mon Aug 23 18:50:46 2004
***************
*** 1,5 ****
  /* unzip.c -- IO for uncompress .zip files using zlib
!    Version 1.01, May 8th, 2004

     Copyright (C) 1998-2004 Gilles Vollant

--- 1,5 ----
  /* unzip.c -- IO for uncompress .zip files using zlib
!    Version 1.01c, August 23th, 2004

     Copyright (C) 1998-2004 Gilles Vollant

***************
*** 1245,1253 ****

      pfile_in_zip_read_info->stream.avail_out = (uInt)len;

!     if (len>pfile_in_zip_read_info->rest_read_uncompressed)
          pfile_in_zip_read_info->stream.avail_out =
!           (uInt)pfile_in_zip_read_info->rest_read_uncompressed;

      while (pfile_in_zip_read_info->stream.avail_out>0)
      {
--- 1245,1259 ----

      pfile_in_zip_read_info->stream.avail_out = (uInt)len;

!     if ((len>pfile_in_zip_read_info->rest_read_uncompressed) &&
!         (!(pfile_in_zip_read_info->raw)))
          pfile_in_zip_read_info->stream.avail_out =
!             (uInt)pfile_in_zip_read_info->rest_read_uncompressed;
!
!     if ((len>pfile_in_zip_read_info->rest_read_compressed) &&
!         (pfile_in_zip_read_info->raw))
!         pfile_in_zip_read_info->stream.avail_out =
!             (uInt)pfile_in_zip_read_info->rest_read_compressed;

      while (pfile_in_zip_read_info->stream.avail_out>0)
      {
***************
*** 1339,1344 ****
--- 1345,1353 ----
                  flush = Z_FINISH;
              */
              err=inflate(&pfile_in_zip_read_info->stream,flush);
+
+             if ((err>=0) && (pfile_in_zip_read_info->stream.msg!=NULL))
+               err = Z_DATA_ERROR;

              uTotalOutAfter = pfile_in_zip_read_info->stream.total_out;
              uOutThis = uTotalOutAfter-uTotalOutBefore; 

-----Original Message-----
From: Mark Adler [mailto:madler at alumni.caltech.edu] 
Sent: Monday, August 23, 2004 3:21 PM
To: zlib-devel at zlib.net
Subject: [Zlib-devel] zlib release plan

All,

I just got back from vacation, and I plan to go through my backlog of email
and get a new version of zlib out.  There is a potential security bug in
zlib 1.2.1's inflate that needs to be fixed, and so I would like to get
1.2.2 out as soon as possible.

mark





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic