]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/deb/dpkgpm.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 18 Sep 2007 16:46:03 +0000 (17:46 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 18 Sep 2007 16:46:03 +0000 (17:46 +0100)
  - fix parse error when dpkg sends unexpected data

apt-pkg/deb/dpkgpm.cc
configure.in
debian/changelog

index 7e1933f062f5da9f4562dbc65891a3f3a5f998a5..e1e26e903c1da4200b6d34312082007db46beb55 100644 (file)
@@ -393,14 +393,14 @@ void pkgDPkgPM::ProcessDpkgStatusLine(int OutStatusFd, char *line)
    //        statusfd or by rewriting the code here to deal with
    //        it. for now we just ignore it and not crash
    TokSplitString(':', line, list, sizeof(list)/sizeof(list[0]));
-   char *pkg = list[1];
-   char *action = _strstrip(list[2]);
-   if( pkg == NULL || action == NULL) 
+   if( list[0] == NULL || list[1] == NULL || list[2] == NULL) 
    {
       if (_config->FindB("Debug::pkgDPkgProgressReporting",false) == true)
         std::clog << "ignoring line: not enough ':'" << std::endl;
       return;
    }
+   char *pkg = list[1];
+   char *action = _strstrip(list[2]);
 
    if(strncmp(action,"error",strlen("error")) == 0)
    {
index 355129deaea12eeef1543f709514c29bf1bcbf1f..6ffc99f56b1fecf3bac67e9d84f2d1d78c767ae5 100644 (file)
@@ -18,7 +18,7 @@ AC_CONFIG_AUX_DIR(buildlib)
 AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
 
 dnl -- SET THIS TO THE RELEASE VERSION --
-AC_DEFINE_UNQUOTED(VERSION,"0.7.6ubuntu9")
+AC_DEFINE_UNQUOTED(VERSION,"0.7.6ubuntu10")
 PACKAGE="apt"
 AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
 AC_SUBST(PACKAGE)
index a53b68501141e2f4356802c9edc6ac1fda833582..effaed1f7b371211ea72dfb9cb5393ab5cd72e42 100644 (file)
@@ -1,3 +1,10 @@
+apt (0.7.6ubuntu10) gutsy; urgency=low
+
+  * apt-pkg/deb/dpkgpm.cc:
+    - fix parse error when dpkg sends unexpected data
+
+ -- Michael Vogt <michael.vogt@ubuntu.com>  Tue, 18 Sep 2007 17:25:09 +0100
+
 apt (0.7.6ubuntu9) gutsy; urgency=low
 
   * apt-pkg/deb/dpkgpm.cc: