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

Bug#276060: apt: fixed pkgTagFile buffer shortage



Package: apt
Version: 0.5.28.6praksys1
Followup-For: Bug #276060

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


xfree86 4.3.0.dfsg.1-12's hits the 32kb/section limitation found in tagfile.h

I was also getting the "Unable to parse package file
/var/lib/dpkg/status (1)" messagez and the following patch solved the
problem.

- -- Package-specific info:

- -- (/etc/apt/preferences present, but not submitted) --


- -- (/etc/apt/sources.list present, but not submitted) --


- -- System Information:
Debian Release: 3.0
Architecture: i386 (i686)
Kernel: Linux 2.4.28-k7
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages apt depends on:
ii  libc6                         2.2.5-11.8 GNU C Library: Shared libraries an
ii  libgcc1                       1:3.0.4-7  GCC support library.
ii  libstdc++3                    1:3.0.4-7  The GNU stdc++ library version 3

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCQhQAUxjOUmTJDO8RAt8xAJ9BLy5hZ2d3BSQYq5uPiR+Dn2+/NwCfXfmm
R225PE5jrX26MOu4kPqzyLE=
=CdHV
-----END PGP SIGNATURE-----
diff -ruN apt-0.5.28.6-old/apt-pkg/tagfile.h apt-0.5.28.6/apt-pkg/tagfile.h
--- apt-0.5.28.6-old/apt-pkg/tagfile.h	Mon Jan 10 22:50:08 2005
+++ apt-0.5.28.6/apt-pkg/tagfile.h	Thu Mar 24 01:45:36 2005
@@ -84,7 +84,7 @@
    inline unsigned long Offset() {return iOffset;};
    bool Jump(pkgTagSection &Tag,unsigned long Offset);
 
-   pkgTagFile(FileFd *F,unsigned long Size = 32*1024);
+   pkgTagFile(FileFd *F,unsigned long Size = 64*1024);
    ~pkgTagFile();
 };
 

Reply to: