pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/pkgsrc-2005Q1]: pkgsrc/x11/kdelibs3 Pullup ticket 475 - requested by ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a3c972e5d392
branches:  pkgsrc-2005Q1
changeset: 491002:a3c972e5d392
user:      salo <salo%pkgsrc.org@localhost>
date:      Sun May 01 22:06:20 2005 +0000

description:
Pullup ticket 475 - requested by Mark Davies
security fix for kdelibs3

Patch provided by the submitter.

   Module Name:         pkgsrc
   Committed By:        markd
   Date:                Sun May  1 04:35:40 UTC 2005

   Modified Files:
        pkgsrc/x11/kdelibs3: Makefile distinfo
        pkgsrc/x11/kdelibs3/patches: patch-dc patch-dd patch-de
   Added Files:
        pkgsrc/x11/kdelibs3/patches: patch-di patch-dk patch-dl
                                patch-dm patch-dn

   Log Message:
   Apply the official KDE patches for CAN-2005-1046.
   http://www.kde.org/info/security/advisory-20050421-1.txt
   Bump PKGREVISION.

diffstat:

 x11/kdelibs3/Makefile         |    4 +-
 x11/kdelibs3/distinfo         |   13 +-
 x11/kdelibs3/patches/patch-dc |  420 ++++++++++++++++++++++++++++-
 x11/kdelibs3/patches/patch-dd |    9 +-
 x11/kdelibs3/patches/patch-de |   85 +++++-
 x11/kdelibs3/patches/patch-di |   39 ++
 x11/kdelibs3/patches/patch-dk |  145 ++++++++++
 x11/kdelibs3/patches/patch-dl |  586 ++++++++++++++++++++++++++++++++++++++++++
 x11/kdelibs3/patches/patch-dm |   76 +++++
 x11/kdelibs3/patches/patch-dn |  551 +++++++++++++++++++++++++++++++++++++++
 10 files changed, 1897 insertions(+), 31 deletions(-)

diffs (truncated from 2025 to 300 lines):

diff -r c4f70ff20696 -r a3c972e5d392 x11/kdelibs3/Makefile
--- a/x11/kdelibs3/Makefile     Sun May 01 17:37:43 2005 +0000
+++ b/x11/kdelibs3/Makefile     Sun May 01 22:06:20 2005 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.78.2.1 2005/04/16 19:47:33 salo Exp $
+# $NetBSD: Makefile,v 1.78.2.2 2005/05/01 22:06:20 salo Exp $
 
 DISTNAME=      kdelibs-${_KDE_VERSION}
-PKGREVISION=   9
+PKGREVISION=   10
 CATEGORIES=    x11
 COMMENT=       Support libraries for the KDE integrated X11 desktop
 
diff -r c4f70ff20696 -r a3c972e5d392 x11/kdelibs3/distinfo
--- a/x11/kdelibs3/distinfo     Sun May 01 17:37:43 2005 +0000
+++ b/x11/kdelibs3/distinfo     Sun May 01 22:06:20 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.51.2.1 2005/04/16 19:47:33 salo Exp $
+$NetBSD: distinfo,v 1.51.2.2 2005/05/01 22:06:20 salo Exp $
 
 SHA1 (kdelibs-3.3.2.tar.bz2) = 69325b603375d31d4d537955383f4893e4a7945f
 RMD160 (kdelibs-3.3.2.tar.bz2) = 66d8bf05cff7aaf875a640a08b1a259085385036
@@ -29,7 +29,12 @@
 SHA1 (patch-cm) = 56663d0a1c0fa1174ba2f31ed0373add6f838deb
 SHA1 (patch-da) = d7acd5026687d8edf4d4daf15778a4af41b2670b
 SHA1 (patch-db) = 86d54e559feabb5ce95bc03bd8a0e954f525025f
-SHA1 (patch-dc) = c54db24f6afdff5a35069b54bf64c07fce4866d9
-SHA1 (patch-dd) = e0a26e8d9b0f9764b2eee246ce52439700d3fe3e
-SHA1 (patch-de) = 48b4ea0d331ff13eefd438a113bcac2398b68f51
+SHA1 (patch-dc) = def040e1daf3e4399b7163a973cdce02c9c474f4
+SHA1 (patch-dd) = 0936a253b38aeb379e872681cd4b158f97683715
+SHA1 (patch-de) = 264b50a9519d1839d39c18ae313e20078ef5b76c
 SHA1 (patch-df) = 1459e51ed359dffe74f62fe68f548dd154239a8a
+SHA1 (patch-di) = 6bbf926ec725cd3b931a9afc5e209cd3bed054cb
+SHA1 (patch-dk) = 7ad537406bd0bb828a551d1b670ce162c44d455c
+SHA1 (patch-dl) = c264ed98a0aacab38cd4219c25e8d434337a9d8f
+SHA1 (patch-dm) = f6c25b8a9d2cbbdcd9ceff3dc395162366fc02e1
+SHA1 (patch-dn) = 5b458c20025319ddae173b8ca9ccd523f302d7b0
diff -r c4f70ff20696 -r a3c972e5d392 x11/kdelibs3/patches/patch-dc
--- a/x11/kdelibs3/patches/patch-dc     Sun May 01 17:37:43 2005 +0000
+++ b/x11/kdelibs3/patches/patch-dc     Sun May 01 22:06:20 2005 +0000
@@ -1,44 +1,432 @@
-$NetBSD: patch-dc,v 1.1.2.2 2005/04/16 19:47:33 salo Exp $
+$NetBSD: patch-dc,v 1.1.2.3 2005/05/01 22:06:21 salo Exp $
 
---- kimgio/pcx.cpp.orig        2003-10-26 11:54:06.000000000 +0100
-+++ kimgio/pcx.cpp     2005-04-13 23:29:10.000000000 +0200
-@@ -134,7 +134,8 @@
+--- kimgio/pcx.cpp.orig        2003-10-26 23:54:06.000000000 +1300
++++ kimgio/pcx.cpp
+@@ -1,5 +1,5 @@
+ /* This file is part of the KDE project
+-   Copyright (C) 2002-2003 Nadeem Hasan <nhasan%kde.org@localhost>
++   Copyright (C) 2002-2005 Nadeem Hasan <nhasan%kde.org@localhost>
+ 
+    This program is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+@@ -44,6 +44,11 @@ static QDataStream &operator>>( QDataStr
+   s >> ph.HScreenSize;
+   s >> ph.VScreenSize;
+ 
++  // Skip the rest of the header
++  Q_UINT8 byte;
++  while ( s.device()->at() < 128 )
++    s >> byte;
++
+   return s;
+ }
+ 
+@@ -85,25 +90,22 @@ static QDataStream &operator<<( QDataStr
+   return s;
+ }
+ 
+-static PCXHEADER header;
+-static QImage img;
+-static Q_UINT16 w, h;
+-
+-void PCXHEADER::reset()
++PCXHEADER::PCXHEADER()
+ {
++  // Initialize all data to zero
+   QByteArray dummy( 128 );
+   dummy.fill( 0 );
+   QDataStream s( dummy, IO_ReadOnly );
+   s >> *this;
+ }
+ 
+-static void readLine( QDataStream &s, QByteArray &buf )
++static void readLine( QDataStream &s, QByteArray &buf, const PCXHEADER &header )
+ {
+   Q_UINT32 i=0;
+   Q_UINT32 size = buf.size();
+   Q_UINT8 byte, count;
+ 
+-  if ( header.Encoding == 1 )
++  if ( header.isCompressed() )
+   {
+     // Uncompress the image data
+     while ( i < size )
+@@ -130,13 +132,14 @@ static void readLine( QDataStream &s, QB
+   }
+ }
+ 
+-static void readImage1( QDataStream &s )
++static void readImage1( QImage &img, QDataStream &s, const PCXHEADER &header )
  {
    QByteArray buf( header.BytesPerLine );
  
 -  img.create( w, h, 1, 2, QImage::BigEndian );
-+  if( !img.create( w, h, 1, 2, QImage::BigEndian ))
++  if(!img.create( header.width(), header.height(), 1, 2, QImage::BigEndian ))
 +    return;
  
-   for ( int y=0; y<h; ++y )
+-  for ( int y=0; y<h; ++y )
++  for ( int y=0; y<header.height(); ++y )
    {
-@@ -160,7 +161,8 @@
+     if ( s.atEnd() )
+     {
+@@ -144,10 +147,11 @@ static void readImage1( QDataStream &s )
+       return;
+     }
+ 
+-    readLine( s, buf );
+-
+-    for ( int x=0; x<header.BytesPerLine; ++x )
+-      *( img.scanLine( y )+x ) = buf[ x ];
++    readLine( s, buf, header );
++    uchar *p = img.scanLine( y );
++    unsigned int bpl = QMIN((header.width()+7)/8, header.BytesPerLine);
++    for ( unsigned int x=0; x< bpl; ++x )
++      p[ x ] = buf[x];
+   }
+ 
+   // Set the color palette
+@@ -155,14 +159,15 @@ static void readImage1( QDataStream &s )
+   img.setColor( 1, qRgb( 255, 255, 255 ) );
+ }
+ 
+-static void readImage4( QDataStream &s )
++static void readImage4( QImage &img, QDataStream &s, const PCXHEADER &header )
+ {
    QByteArray buf( header.BytesPerLine*4 );
-   QByteArray pixbuf( w );
+-  QByteArray pixbuf( w );
++  QByteArray pixbuf( header.width() );
  
 -  img.create( w, h, 8, 16, QImage::IgnoreEndian );
-+  if( !img.create( w, h, 8, 16, QImage::IgnoreEndian ))
++  if(!img.create( header.width(), header.height(), 8, 16 ))
 +    return;
  
-   for ( int y=0; y<h; ++y )
+-  for ( int y=0; y<h; ++y )
++  for ( int y=0; y<header.height(); ++y )
    {
-@@ -196,7 +198,8 @@
+     if ( s.atEnd() )
+     {
+@@ -171,20 +176,19 @@ static void readImage4( QDataStream &s )
+     }
+ 
+     pixbuf.fill( 0 );
+-    readLine( s, buf );
++    readLine( s, buf, header );
+ 
+     for ( int i=0; i<4; i++ )
+     {
+       Q_UINT32 offset = i*header.BytesPerLine;
+-      for ( int x=0; x<w; ++x )
++      for ( unsigned int x=0; x<header.width(); ++x )
+         if ( buf[ offset + ( x/8 ) ] & ( 128 >> ( x%8 ) ) )
+           pixbuf[ x ] += ( 1 << i );
+     }
+ 
+     uchar *p = img.scanLine( y );
+-
+-    for ( int x=0; x<w; ++x )
+-      *p++ = pixbuf[ x ];
++    for ( unsigned int x=0; x<header.width(); ++x )
++      p[ x ] = pixbuf[ x ];
+   }
+ 
+   // Read the palette
+@@ -192,13 +196,14 @@ static void readImage4( QDataStream &s )
+     img.setColor( i, header.ColorMap.color( i ) );
+ }
+ 
+-static void readImage8( QDataStream &s )
++static void readImage8( QImage &img, QDataStream &s, const PCXHEADER &header )
  {
    QByteArray buf( header.BytesPerLine );
  
 -  img.create( w, h, 8, 256, QImage::IgnoreEndian );
-+  if( !img.create( w, h, 8, 256, QImage::IgnoreEndian ))
++  if(!img.create( header.width(), header.height(), 8, 256 ))
 +    return;
  
-   for ( int y=0; y<h; ++y )
+-  for ( int y=0; y<h; ++y )
++  for ( int y=0; y<header.height(); ++y )
    {
-@@ -236,7 +239,8 @@
+     if ( s.atEnd() )
+     {
+@@ -206,19 +211,19 @@ static void readImage8( QDataStream &s )
+       return;
+     }
+ 
+-    readLine( s, buf );
++    readLine( s, buf, header );
+ 
+     uchar *p = img.scanLine( y );
+-
+-    for ( int x=0; x<header.BytesPerLine; ++x )
+-      *p++ = buf[ x ];
++    unsigned int bpl = QMIN(header.BytesPerLine, header.width());
++    for ( unsigned int x=0; x<bpl; ++x )
++      p[ x ] = buf[ x ];
+   }
+ 
+   Q_UINT8 flag;
+   s >> flag;
+-  kdDebug() << "Flag: " << flag << endl;
++  kdDebug( 399 ) << "Palette Flag: " << flag << endl;
+ 
+-  if ( flag == 12 && header.Version == 5 )
++  if ( flag == 12 && ( header.Version == 5 || header.Version == 2 ) )
+   {
+     // Read the palette
+     Q_UINT8 r, g, b;
+@@ -230,15 +235,16 @@ static void readImage8( QDataStream &s )
+   }
+ }
+ 
+-static void readImage24( QDataStream &s )
++static void readImage24( QImage &img, QDataStream &s, const PCXHEADER &header )
+ {
+   QByteArray r_buf( header.BytesPerLine );
    QByteArray g_buf( header.BytesPerLine );
    QByteArray b_buf( header.BytesPerLine );
  
 -  img.create( w, h, 32 );
-+  if( !img.create( w, h, 32 ))
++  if(!img.create( header.width(), header.height(), 32 ))
 +    return;
  
-   for ( int y=0; y<h; ++y )
+-  for ( int y=0; y<h; ++y )
++  for ( int y=0; y<header.height(); ++y )
+   {
+     if ( s.atEnd() )
+     {
+@@ -246,14 +252,13 @@ static void readImage24( QDataStream &s 
+       return;
+     }
+ 
+-    readLine( s, r_buf );
+-    readLine( s, g_buf );
+-    readLine( s, b_buf );
++    readLine( s, r_buf, header );
++    readLine( s, g_buf, header );
++    readLine( s, b_buf, header );
+ 
+     uint *p = ( uint * )img.scanLine( y );
+-
+-    for ( int x=0; x<header.BytesPerLine; ++x )
+-      *p++ = qRgb( r_buf[ x ], g_buf[ x ], b_buf[ x ] );
++    for ( unsigned int x=0; x<header.width(); ++x )
++      p[ x ] = qRgb( r_buf[ x ], g_buf[ x ], b_buf[ x ] );
+   }
+ }
+ 
+@@ -268,6 +273,8 @@ void kimgio_pcx_read( QImageIO *io )
+     return;
+   }
+ 
++  PCXHEADER header;
++
+   s >> header;
+ 
+   if ( header.Manufacturer != 10 || s.atEnd())
+@@ -276,10 +283,8 @@ void kimgio_pcx_read( QImageIO *io )
+     return;
+   }
+ 
+-  w = ( header.XMax-header.XMin ) + 1;
+-  h = ( header.YMax-header.YMin ) + 1;
+-
+-  img.reset();
++  int w = header.width();
++  int h = header.height();
+ 
+   kdDebug( 399 ) << "Manufacturer: " << header.Manufacturer << endl;
+   kdDebug( 399 ) << "Version: " << header.Version << endl;
+@@ -288,30 +293,27 @@ void kimgio_pcx_read( QImageIO *io )
+   kdDebug( 399 ) << "Width: " << w << endl;
+   kdDebug( 399 ) << "Height: " << h << endl;
+   kdDebug( 399 ) << "Window: " << header.XMin << "," << header.XMax << "," 



Home | Main Index | Thread Index | Old Index