diff options
-rw-r--r-- | data/apt/_metadata/notes | 2 | ||||
-rw-r--r-- | data/apt/mmap.diff | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/data/apt/_metadata/notes b/data/apt/_metadata/notes new file mode 100644 index 000000000..616ed7297 --- /dev/null +++ b/data/apt/_metadata/notes @@ -0,0 +1,2 @@ +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=146877 +pkgIndexFile::CheckLanguageCode doesn't handle the common cases diff --git a/data/apt/mmap.diff b/data/apt/mmap.diff index 0184c380c..06f4dbac0 100644 --- a/data/apt/mmap.diff +++ b/data/apt/mmap.diff @@ -1,7 +1,7 @@ diff -ru apt-0.7.20.2/apt-pkg/tagfile.cc apt-0.7.20.2+iPhone/apt-pkg/tagfile.cc --- apt-0.7.20.2/apt-pkg/tagfile.cc 2009-04-19 02:42:49.000000000 +0000 +++ apt-0.7.20.2+iPhone/apt-pkg/tagfile.cc 2009-04-19 03:28:33.000000000 +0000 -@@ -28,11 +28,11 @@ +@@ -28,11 +28,12 @@ // --------------------------------------------------------------------- /* */ pkgTagFile::pkgTagFile(FileFd *pFd,unsigned long Size) : @@ -12,6 +12,7 @@ diff -ru apt-0.7.20.2/apt-pkg/tagfile.cc apt-0.7.20.2+iPhone/apt-pkg/tagfile.cc - if (Fd.IsOpen() == false) + if (Fd.IsOpen() == false || Fd.Size() == 0) { ++ _error->Discard(); + Map = NULL; Buffer = 0; Start = End = Buffer = 0; |