]> err.no Git - dpkg/commitdiff
Fix crash when a .deb file becomes unreadable while dpkg is starting
authorIan Jackson <ian@davenant.greenend.org.uk>
Thu, 20 Mar 2008 02:26:26 +0000 (04:26 +0200)
committerGuillem Jover <guillem@debian.org>
Thu, 20 Mar 2008 02:29:12 +0000 (04:29 +0200)
Closes: #386210
ChangeLog
debian/changelog
lib/tarfn.c

index fd4223021ab91d4cbab7a045d5e5e92894aad49c..6e42dbcd048b3c9602b7f7a1177e6646eb71fc00 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-20  Ian Jackson  <ian@davenant.greenend.org.uk>
+
+       * lib/tarfn.c (TarExtractor): Initialize h.LinkName and h.Name to
+       NULL.
+
 2008-03-16  Raphael Hertzog  <hertzog@debian.org>
 
        * scripts/Dpkg/Shlibs/Objdump.pm: Add "objid" property to
index 2202e5c361490aa5bb5f7a09cebe38feeb04b70a..ffd82402b631cfdf8bf237044310890acb73ef1e 100644 (file)
@@ -27,6 +27,8 @@ dpkg (1.14.17) UNRELEASED; urgency=low
     Thanks to Ian Jackson.
   * Allow compilation with --disable-nls on systems without libintl.h where
     a non glibc claims to be glibc. Closes: #465420
+  * Fix crash when a .deb file becomes unreadable while dpkg is starting.
+    Thanks to Ian Jackson. Closes: #386210
 
   [ Raphael Hertzog ]
   * Add a warning displayed by dpkg-genchanges if the current version is
index 397fedc4126543b480c6aaca8ce1c024e6f03666..66b33f289d7d6d83e5ba82b614dc80b70e53bd02 100644 (file)
@@ -140,6 +140,8 @@ TarExtractor(
        symListBottom = symListPointer = symListTop = m_malloc(sizeof(symlinkList));
        symListTop->next = NULL;
 
+       h.Name = NULL;
+       h.LinkName = NULL;
        h.UserData = userData;
 
        while ( (status = functions->Read(userData, buffer, 512)) == 512 ) {