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

Bug#154898: marked as done (doesn't handle whitespace in versioned relationships correctly)

Your message dated Sat, 31 Aug 2002 06:30:24 -0400
with message-id <E17l5WK-0005J1-00@auric.debian.org>
and subject line Bug#154898: fixed in dpkg 1.10.5
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at submit) by bugs.debian.org; 31 Jul 2002 01:13:16 +0000
>From weasel@debian.org Tue Jul 30 20:13:16 2002
Return-path: <weasel@debian.org>
Received: from nautilus.3node.com [] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17Zi39-0002im-00; Tue, 30 Jul 2002 20:13:16 -0500
Received: from marvin.palfrader.org (marvin.oeknet.mhn.de [])
	(using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
	(Client CN "marvin.palfrader.org", Issuer "Peter Palfrader" (verified OK))
	by nautilus.3node.com (Postfix) with ESMTP id 22F21122DC7
	for <submit@bugs.debian.org>; Wed, 31 Jul 2002 03:13:11 +0200 (CEST)
Received: from valiant.palfrader.org (valiant.oeknet.mhn.de [])
	(using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits))
	(Client CN "valiant.palfrader.org", Issuer "Peter Palfrader" (verified OK))
	by marvin.palfrader.org (Postfix) with ESMTP
	id 7AA3613772; Wed, 31 Jul 2002 03:13:10 +0200 (CEST)
Received: by valiant.palfrader.org (Postfix, from userid 1000)
	id 1C2821FA046; Wed, 31 Jul 2002 03:13:06 +0200 (CEST)
Date: Wed, 31 Jul 2002 03:13:06 +0200
From: Peter Palfrader <weasel@debian.org>
To: submit@bugs.debian.org
Subject: doesn't handle whitespace in versioned relationships correctly
Message-ID: <20020731011305.GB24334@valiant.oeknet.mhn.de>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="H+4ONPRPur6+Ovig"
Content-Disposition: inline
User-Agent: Mutt/1.4i
X-PGP: 1024R/D1A3A329 BB A2 DC FE D7 D2 09 BF  93 46 36 6F C1 A4 41 1A
X-GPG: 1024D/94C09C7F 5B00 C96D 5D54 AEE1 206B  AF84 DE7A AF6E 94C0 9C7F
X-Accept-Language: de, en
Delivered-To: submit@bugs.debian.org

Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: dpkg
Version: 1.10.4
Severity: normal
Tags: patch

dpkg does not handle whitespace in versioned relationships correctly if
it happends to be after the version and before the closing parenthesis
as in=20
  Conflicts: uucp (<< 1.06.1+1.07beta1-patch2-1 )

diff -Nr -U 10 dpkg-1.10.4/lib/fields.c dpkg-
--- dpkg-1.10.4/lib/fields.c	2002-05-06 18:18:15.000000000 +0200
+++ dpkg-	2002-07-31 02:56:33.000000000 +0200
@@ -368,31 +368,31 @@
 /* skip spaces between the relation and the version */
         while (isspace(*p)) p++;
 	versionstart=3D p;
         while (*p && *p !=3D ')' && *p !=3D '(') {
           if (isspace(*p)) break;
+	versionlength=3D p - versionstart;
         while (isspace(*p)) p++;
         if (*p =3D=3D '(') parseerr(NULL,filename,lno, warnto,warncount,pi=
                                 _("`%s' field, reference to `%.255s': "
                                 "version contains `('"),fip->name,depname);
 	else if (*p !=3D ')') parseerr(NULL,filename,lno, warnto,warncount,pigp,0,
                                 _("`%s' field, reference to `%.255s': "
                                 "version contains ` '"),fip->name,depname);
         else if (*p =3D=3D 0) parseerr(NULL,filename,lno, warnto,warncount=
                                    _("`%s' field, reference to `%.255s': "
                                    "version unterminated"),fip->name,depna=
-	versionlength=3D p - versionstart;
 	if (versionlength >=3D  versionused) {
 	  versionused=3D versionlength;
 	  version=3D realloc(version,versionlength+1);
 	strncpy(version,  versionstart, versionlength);
 	*(version + versionlength)=3D 0;
         emsg=3D parseversion(&dop->version,version);
         if (emsg) parseerr(NULL,filename,lno, warnto,warncount,pigp,0,
                            _("`%s' field, reference to `%.255s': "
                            "error in version: %.255s"),fip->name,depname,e=


 PGP signed and encrypted  |  .''`.  ** Debian GNU/Linux **
    messages preferred.    | : :' :      The  universal
                           | `. `'      Operating System
 http://www.palfrader.org/ |   `-    http://www.debian.org/

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.0.7 (GNU/Linux)



Received: (at 154898-close) by bugs.debian.org; 31 Aug 2002 10:38:54 +0000
>From rmurray@auric.debian.org Sat Aug 31 05:38:54 2002
Return-path: <rmurray@auric.debian.org>
Received: from auric.debian.org [] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17l5eY-0003OT-00; Sat, 31 Aug 2002 05:38:54 -0500
Received: from rmurray by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 17l5WK-0005J1-00; Sat, 31 Aug 2002 06:30:24 -0400
From: Adam Heath <doogie@debian.org>
To: 154898-close@bugs.debian.org
X-Katie: $Revision: 1.17 $
Subject: Bug#154898: fixed in dpkg 1.10.5
Message-Id: <E17l5WK-0005J1-00@auric.debian.org>
Sender: Ryan Murray <rmurray@auric.debian.org>
Date: Sat, 31 Aug 2002 06:30:24 -0400
Delivered-To: 154898-close@bugs.debian.org

We believe that the bug you reported is fixed in the latest version of
dpkg, which is due to be installed in the Debian FTP archive:

  to pool/main/d/dpkg/dpkg-dev_1.10.5_all.deb
  to pool/main/d/dpkg/dpkg-doc_1.10.5_all.deb
  to pool/main/d/dpkg/dpkg_1.10.5.dsc
  to pool/main/d/dpkg/dpkg_1.10.5.tar.gz
  to pool/main/d/dpkg/dpkg_1.10.5_i386.deb
  to pool/main/d/dpkg/dselect_1.10.5_i386.deb

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 154898@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Adam Heath <doogie@debian.org> (supplier of updated dpkg package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)

Hash: SHA1

Format: 1.7
Date: Thu, 29 Aug 2002 16:43:15 -0500
Source: dpkg
Binary: dpkg-static dselect dpkg-dev dpkg-doc dpkg
Architecture: source all i386
Version: 1.10.5
Distribution: unstable
Urgency: low
Maintainer: Dpkg Development <debian-dpkg@lists.debian.org>
Changed-By: Adam Heath <doogie@debian.org>
 dpkg       - Package maintenance system for Debian
 dpkg-dev   - Package building tools for Debian
 dpkg-doc   - Dpkg Internals Documentation
 dselect    - a user tool to manage Debian packages
Closes: 147492 153769 154257 154503 154898 155362 156437 156545 157304 157453 157762
 dpkg (1.10.5) unstable; urgency=low
   * Fix segfault in md5sum if the file being checked doesn't exist.
     Closes: #154503.
   * Fix extraction of md5sum in dpkg-scanpackages.  Closes: #153769.
   * Handle directories better in md5sum.  Closes: #157453.
   * Fix read past buffer in lib/nfmalloc.c.  Closes: #157304.
   * Fix several read pass buffer bugs, and a memleak.  Closes: #155362.
   * Fix segfault when --auto-deconfigure is given.  Closes: #157762.
   * Allow spaces between the end of a version, and the trailing ')'.
     Closes: #154898.
   * Fixes for HURD:  Closes: #156545
     * Add i386-gnu0.3 to archtable.
     * Fix handling of static compiles, with regard to zlib.
   * Previous install-infos(before 1.10) handled multiple dir file entries,
     because they would copy the entire stanza unmodified.  The newest
     version does not do this, as it reformats the options, and thereby
     only takes the first line.  So, we now split all the lines from the
     stanza, and process them all.  Closes: #147492.
   * Fix corruption of available file, caused by use of memory that was
     previously freed.  Closes: #154257.
   * Fix several minor memleaks.
   * Remove /usr/sbin/start-stop-daemon.  Closes: #156437.
 8ca73db018cab82b48c6417138d456cb 716 base required dpkg_1.10.5.dsc
 4eebb8207cbb172e96dd8e4c258663dc 1568097 base required dpkg_1.10.5.tar.gz
 8878555aaf21faeecb6efaace48caac4 1136194 base required dpkg_1.10.5_i386.deb
 97a0772ce9ea2aff0678fe747e6d1303 89588 base required dselect_1.10.5_i386.deb
 5fe280f17cf726fbe1c0aec5f7c9e6bc 1126796 byhand - dpkg-1.10.5_i386.nondebbin.tar.gz
 83d81f422079ae537854124b91b15747 1628852 byhand - dpkg-1.10.5_i386-static.nondebbin.tar.gz
 ffdfb744fe93761ce05798185bbaccbc 111730 utils standard dpkg-dev_1.10.5_all.deb
 d54cda2f79bbbbdc9d73842825830dcd 10692 doc optional dpkg-doc_1.10.5_all.deb
 4eebb8207cbb172e96dd8e4c258663dc 1568097 byhand - dpkg-1.10.5.tar.gz

Version: GnuPG v1.0.7 (GNU/Linux)


Reply to: