[CVS] OpenPKG: openpkg-src/analog/ analog.patch analog.spec

2005-06-08 Thread Michael Schloh
  OpenPKG CVS Repository
  http://cvs.openpkg.org/
  

  Server: cvs.openpkg.org  Name:   Michael Schloh
  Root:   /v/openpkg/cvs   Email:  [EMAIL PROTECTED]
  Module: openpkg-src  Date:   08-Jun-2005 14:18:08
  Branch: HEAD Handle: 2005060813180800

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

  Log:
bzip2 based corrections in bzip2, analog, and most importantly openpkg
itself: OpenPKG-SA-2005.008 (CAN-2005-0953 and CAN-2005-1260)

  Summary:
RevisionChanges Path
1.3 +264 -0 openpkg-src/analog/analog.patch
1.45+3  -1  openpkg-src/analog/analog.spec
  

  patch -p0 <<'@@ .'
  Index: openpkg-src/analog/analog.patch
  
  $ cvs diff -u -r0 -r1.3 analog.patch
  --- /dev/null 2005-06-08 14:18:04 +0200
  +++ analog.patch  2005-06-08 14:18:08 +0200
  @@ -0,0 +1,264 @@
  +OpenPKG-SA-2005.008 and CAN-2005-1260,
  +Infinite loop in decompression of specially crafted bzip2 archives.
  +Parts of following patch taken from Ubuntu (backport from bzip2 1.0.3):
  +  
http://security.ubuntu.com/ubuntu/pool/main/b/bzip2/bzip2_1.0.2-2ubuntu0.1.diff.gz
  +
  +Index: src/bzip2/bzlib.c
  +diff -Nau src/bzip2/bzlib.c.orig src/bzip2/bzlib.c
  +--- src/bzip2/bzlib.c.orig   2004-12-19 14:51:31 +0100
   src/bzip2/bzlib.c2005-06-08 10:46:17 +0200
  +@@ -575,8 +575,11 @@
  + 
  + 
  + /*---*/
  ++/* Return  True if data corruption is discovered.
  ++   Returns False if there is no problem.
  ++*/
  + static
  +-void unRLE_obuf_to_output_FAST ( DState* s )
  ++Bool unRLE_obuf_to_output_FAST ( DState* s )
  + {
  +UChar k1;
  + 
  +@@ -585,7 +588,7 @@
  +   while (True) {
  +  /* try to finish existing run */
  +  while (True) {
  +-if (s->strm->avail_out == 0) return;
  ++if (s->strm->avail_out == 0) return False;
  + if (s->state_out_len == 0) break;
  + *( (UChar*)(s->strm->next_out) ) = s->state_out_ch;
  + BZ_UPDATE_CRC ( s->calculatedBlockCRC, s->state_out_ch );
  +@@ -597,8 +600,11 @@
  +  }
  +
  +  /* can a new run be started? */
  +- if (s->nblock_used == s->save_nblock+1) return;
  ++ if (s->nblock_used == s->save_nblock+1) return False;
  +
  ++ /* Only caused by corrupt data stream? */
  ++ if (s->nblock_used > s->save_nblock+1)
  ++return True;
  +
  +  s->state_out_len = 1;
  +  s->state_out_ch = s->k0;
  +@@ -668,6 +674,10 @@
  +cs_avail_out--;
  + }
  +  }   
  ++ /* Only caused by corrupt data stream? */
  ++ if (c_nblock_used > s_save_nblockPP)
  ++return True;
  ++
  +  /* can a new run be started? */
  +  if (c_nblock_used == s_save_nblockPP) {
  + c_state_out_len = 0; goto return_notr;
  +@@ -713,6 +723,7 @@
  +   s->strm->avail_out= cs_avail_out;
  +   /* end save */
  +}
  ++   return False;
  + }
  + 
  + 
  +@@ -733,8 +744,11 @@
  + 
  + 
  + /*---*/
  ++/* Return  True if data corruption is discovered.
  ++   Returns False if there is no problem.
  ++*/
  + static
  +-void unRLE_obuf_to_output_SMALL ( DState* s )
  ++Bool unRLE_obuf_to_output_SMALL ( DState* s )
  + {
  +UChar k1;
  + 
  +@@ -743,7 +757,7 @@
  +   while (True) {
  +  /* try to finish existing run */
  +  while (True) {
  +-if (s->strm->avail_out == 0) return;
  ++if (s->strm->avail_out == 0) return False;
  + if (s->state_out_len == 0) break;
  + *( (UChar*)(s->strm->next_out) ) = s->state_out_ch;
  + BZ_UPDATE_CRC ( s->calculatedBlockCRC, s->state_out_ch );
  +@@ -755,8 +769,11 @@
  +  }
  +
  +  /* can a new run be started? */
  +- if (s->nblock_used == s->save_nblock+1) return;
  +-   
  ++ if (s->nblock_used == s->save_nblock+1) return False;
  ++
  ++ /* Only caused by corrupt data stream? */
  ++ if (s->nblock_used > s->save_nblock+1)
  ++return True;
  +
  +  s->state_out_len = 1;
  +  s->state_out_ch = s->k0;
  +@@ -789,7 +806,7 @@
  +   while (True) {
  +  /* try to finish existing run */
  +  while (True) {
  +-if (s->strm->avail_out == 0) return;
  ++if (s->strm->avail_out == 0) return False;
  + if (s->state_out_len == 0) break;
  + *( (UChar*)(s->strm->next_out) ) = s->

[CVS] OpenPKG: openpkg-src/analog/ analog.patch analog.spec

2004-06-29 Thread Ralf S. Engelschall
  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:   29-Jun-2004 11:31:04
  Branch: HEAD Handle: -NONE-

  Modified files:
openpkg-src/analog  analog.spec
  Removed files:
openpkg-src/analog  analog.patch

  Log:
fix security problems by now using the external GD, PNG, Zlib and PCRE
libraries. Notice, Analog still compiles the local copy source files,
but they are #ifdef'ed internally except for some legacy (and
acceptable) gdFontFixed stuff

  Summary:
RevisionChanges Path
1.2 +0  -22 openpkg-src/analog/analog.patch
1.40+6  -5  openpkg-src/analog/analog.spec
  

  rm -f openpkg-src/analog/analog.patch <<'@@ .'
  Index: openpkg-src/analog/analog.patch
  
  [NO CHANGE SUMMARY BECAUSE FILE AS A WHOLE IS JUST REMOVED]
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/analog/analog.spec
  
  $ cvs diff -u -r1.39 -r1.40 analog.spec
  --- openpkg-src/analog/analog.spec29 Apr 2004 15:06:52 -  1.39
  +++ openpkg-src/analog/analog.spec29 Jun 2004 09:31:03 -  1.40
  @@ -34,17 +34,18 @@
   Group:Web
   License:  GPL
   Version:  5.32
  -Release:  20040429
  +Release:  20040629
   
   #   list of sources
   Source0:  http://www.analog.cx/analog-%{version}.tar.gz
  -Patch0:   analog.patch
   
   #   build information
   Prefix:   %{l_prefix}
   BuildRoot:%{l_buildroot}
   BuildPreReq:  OpenPKG, openpkg >= 20040130, make
   PreReq:   OpenPKG, openpkg >= 20040130
  +BuildPreReq:  gd, png, jpeg, zlib, pcre
  +PreReq:   gd, png, jpeg, zlib, pcre
   AutoReq:  no
   AutoReqProv:  no
   
  @@ -63,17 +64,17 @@
   
   %prep
   %setup -q
  -%patch
   
   %build
   cd src
  -libs="-lm"
  +libs="-lgd -lpng -ljpeg -lz -lpcre -lm"
   case "%{l_platform -t}" in
   *-sunos5* ) libs="-lnsl $libs" ;;
   esac
   %{l_make} %{l_mflags} \
   CC="%{l_cc}" \
  -CFLAGS='%{l_cflags -O} 
-DDEFAULTCONFIGFILE=\"%{l_prefix}/etc/analog/analog.cfg\"' \
  +CFLAGS='%{l_cflags -O} %{l_cppflags} 
-DDEFAULTCONFIGFILE=\"%{l_prefix}/etc/analog/analog.cfg\"' \
  +DEFS="-DHAVE_GD -DHAVE_ZLIB -DHAVE_PCRE" \
   LIBS="$libs"
   
   %install
  @@ .
__
The OpenPKG Projectwww.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]