Ver código fonte

Segfault with missing source files. Closes: #100325
Author: jgg
Date: 2001-06-10 02:12:09 GMT
Segfault with missing source files. Closes: #100325

Arch Librarian 22 anos atrás
pai
commit
4641a9d2dc
2 arquivos alterados com 4 adições e 2 exclusões
  1. 3 2
      apt-pkg/srcrecords.cc
  2. 1 0
      debian/changelog

+ 3 - 2
apt-pkg/srcrecords.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
-// $Id: srcrecords.cc,v 1.5 2001/02/23 06:41:55 jgg Exp $
+// $Id: srcrecords.cc,v 1.6 2001/06/10 02:12:09 jgg Exp $
 /* ######################################################################
    
    Source Package Records - Allows access to source package records
@@ -29,7 +29,8 @@
 pkgSrcRecords::pkgSrcRecords(pkgSourceList &List) : Files(0), Current(0)
 {
    Files = new Parser *[List.end() - List.begin() + 1];
-	  
+   memset(Files,0,sizeof(*Files)*(List.end() - List.begin() + 1));
+   
    unsigned int Count = 0;
    pkgSourceList::const_iterator I = List.begin();
    for (; I != List.end(); I++)

+ 1 - 0
debian/changelog

@@ -27,6 +27,7 @@ apt (0.5.4) unstable; urgency=low
   * Randolph's G++3 patches. 
   * Fixed no_proxy tokanizing. Closes: #100046
   * Strip Config-Version when copying status to available. Closes: #97520
+  * Segfault with missing source files. Closes: #100325
   
  -- Jason Gunthorpe <jgg@debian.org>  Thu,  8 Mar 2001 22:48:06 -0700