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

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   22-Oct-2004 11:08:07
  Branch: HEAD                             Handle: 2004102210080700

  Added files:
    openpkg-src/cabextract  cabextract.patch
  Modified files:
    openpkg-src/cabextract  cabextract.spec

  Log:
    upgrade to 1.1 in order to fix a security hole

  Summary:
    Revision    Changes     Path
    1.1         +27 -0      openpkg-src/cabextract/cabextract.patch
    1.9         +4  -3      openpkg-src/cabextract/cabextract.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/cabextract/cabextract.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 cabextract.patch
  --- /dev/null 2004-10-22 11:08:07 +0200
  +++ cabextract.patch  2004-10-22 11:08:07 +0200
  @@ -0,0 +1,27 @@
  +Index: mempcpy.c
  +--- mempcpy.c.orig   2004-07-16 16:07:01 +0200
  ++++ mempcpy.c        2004-10-22 11:06:40 +0200
  +@@ -29,19 +29,17 @@
  + 
  + */
  + 
  +-#include <ansidecl.h>
  ++#include <string.h>
  + #ifdef ANSI_PROTOTYPES
  + #include <stddef.h>
  + #else
  + #define size_t unsigned long
  + #endif
  + 
  +-extern PTR memcpy PARAMS ((PTR, const PTR, size_t));
  +-
  +-PTR
  ++void *
  + mempcpy (dst, src, len)
  +-     PTR dst;
  +-     const PTR src;
  ++     void * dst;
  ++     const void * src;
  +      size_t len;
  + {
  +   return (char *) memcpy (dst, src, len) + len;
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/cabextract/cabextract.spec
  ============================================================================
  $ cvs diff -u -r1.8 -r1.9 cabextract.spec
  --- openpkg-src/cabextract/cabextract.spec    19 Oct 2004 12:56:00 -0000      1.8
  +++ openpkg-src/cabextract/cabextract.spec    22 Oct 2004 09:08:07 -0000      1.9
  @@ -33,11 +33,12 @@
   Class:        PLUS
   Group:        Archiver
   License:      GPL
  -Version:      1.0
  -Release:      20041019
  +Version:      1.1
  +Release:      20041022
   
   #   list of sources
   Source0:      http://www.kyz.uklinux.net/downloads/cabextract-%{version}.tar.gz
  +Patch0:       cabextract.patch
   
   #   build information
   Prefix:       %{l_prefix}
  @@ -52,7 +53,6 @@
   
   %track
       prog cabextract = {
  -        comment   = "ms: 1.1 undefined PTR and PARAMS decls, and missing ansidecl.h"
           version   = %{version}
           url       = http://www.kyz.uklinux.net/cabextract.php
           regex     = cabextract-(__VER__)\.tar\.gz
  @@ -60,6 +60,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