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

Bug#139328: PATCH: Fixes parsing bug where end of buffer is at end of file



I experienced bug #139328 when running dselect during the woody
installation process(!)

This patch fixed the problem for me, which appears as far as I can tell to
be caused by a rare condition in which there are no more bytes to be read
from the package file.

--- apt-0.5.4/apt-pkg/tagfile.cc        2001-05-14 06:56:26.000000000 +0100
+++ apt-0.5.4/apt-pkg/tagfile.new       2002-07-22 18:44:34.000000000 +0100
@@ -66,6 +66,9 @@
    {
       if (Fill() == false)
         return false;
+
+      if (End == Start)
+         return false;

       if (Tag.Scan(Start,End - Start) == false)
         return _error->Error(_("Unable to parse package file %s (1)"),Fd.Name().c_str());




-- 
To UNSUBSCRIBE, email to deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: