summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-09-18 17:46:03 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2007-09-18 17:46:03 +0100
commitc9034b42ab8da606fc0214dbad54025fc4b586af (patch)
tree2a41f05dc329dc7c58a643904da0a73878138922
parent04d0fa8803bcd70437cc1033f333d0992b28a329 (diff)
parentf26fcbc707e106946e18682f917ebd6f96444302 (diff)
* apt-pkg/deb/dpkgpm.cc:
- fix parse error when dpkg sends unexpected data
-rw-r--r--apt-pkg/deb/dpkgpm.cc6
-rw-r--r--configure.in2
-rw-r--r--debian/changelog7
3 files changed, 11 insertions, 4 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index 7e1933f06..e1e26e903 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -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)
{
diff --git a/configure.in b/configure.in
index 355129dea..6ffc99f56 100644
--- a/configure.in
+++ b/configure.in
@@ -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)
diff --git a/debian/changelog b/debian/changelog
index a53b68501..effaed1f7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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: