Package: apt
Version: 0.5.14

"apt-get upgrade" may give a segfault for certain Release + preferences
combinations. Trivial one-line patch is attached, please apply.

diff -Naurd apt-0.5.13.orig/apt-pkg/cacheiterators.h 
apt-0.5.13/apt-pkg/cacheiterators.h
--- apt-0.5.13.orig/apt-pkg/cacheiterators.h    2001-04-29 07:13:51.000000000 
+0200
+++ apt-0.5.13/apt-pkg/cacheiterators.h 2003-09-28 23:55:48.000000000 +0200
@@ -289,7 +289,7 @@
    inline const char *Component() const {return File->Component == 
0?0:Owner->StrP + File->Component;};
    inline const char *Version() const {return File->Version == 0?0:Owner->StrP 
+ File->Version;};
    inline const char *Origin() const {return File->Origin == 0?0:Owner->StrP + 
File->Origin;};
-   inline const char *Label() const {return File->Origin == 0?0:Owner->StrP + 
File->Label;};
+   inline const char *Label() const {return File->Label == 0?0:Owner->StrP + 
File->Label;};
    inline const char *Site() const {return File->Site == 0?0:Owner->StrP + 
File->Site;};
    inline const char *Architecture() const {return File->Architecture == 
0?0:Owner->StrP + File->Architecture;};
    inline const char *IndexType() const {return File->IndexType == 
0?0:Owner->StrP + File->IndexType;};

Reply via email to