OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   06-Jul-2005 18:47:32
  Branch: OPENPKG_2_3_SOLID                Handle: 2005070617473200

  Added files:              (Branch: OPENPKG_2_3_SOLID)
    openpkg-src/zlib        zlib.patch
  Modified files:           (Branch: OPENPKG_2_3_SOLID)
    openpkg-src/zlib        zlib.spec

  Log:
    Fix zlib security issue (OpenPKG-SA-2005.013, CAN-2005-2096)

  Summary:
    Revision    Changes     Path
    1.4.2.1     +12 -0      openpkg-src/zlib/zlib.patch
    1.32.2.2    +3  -1      openpkg-src/zlib/zlib.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/zlib/zlib.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.4.2.1 zlib.patch
  --- /dev/null 2005-07-06 18:47:32 +0200
  +++ zlib.patch        2005-07-06 18:47:32 +0200
  @@ -0,0 +1,12 @@
  +Index: inftrees.c
  +--- inftrees.c.orig  2004-09-15 16:30:06 +0200
  ++++ inftrees.c       2005-07-06 18:31:14 +0200
  +@@ -134,7 +134,7 @@
  +         left -= count[len];
  +         if (left < 0) return -1;        /* over-subscribed */
  +     }
  +-    if (left > 0 && (type == CODES || (codes - count[0] != 1)))
  ++    if (left > 0 && (type == CODES || max != 1))
  +         return -1;                      /* incomplete set */
  + 
  +     /* generate offsets into symbol table for each length for sorting */
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/zlib/zlib.spec
  ============================================================================
  $ cvs diff -u -r1.32.2.1 -r1.32.2.2 zlib.spec
  --- openpkg-src/zlib/zlib.spec        21 Feb 2005 17:09:06 -0000      1.32.2.1
  +++ openpkg-src/zlib/zlib.spec        6 Jul 2005 16:47:32 -0000       1.32.2.2
  @@ -34,10 +34,11 @@
   Group:        Compression
   License:      BSD
   Version:      1.2.2
  -Release:      2.3.0
  +Release:      2.3.1
   
   #   list of sources
   Source0:      http://www.zlib.net/zlib-%{version}.tar.gz
  +Patch0:       zlib.patch
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -68,6 +69,7 @@
   
   %prep
       %setup -q
  +    %patch -p0
   
   %build
       CC="%{l_cc}" \
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [email protected]

Reply via email to