diff options
| author | Julian Andres Klode <jak@debian.org> | 2010-01-31 21:38:16 +0100 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2010-01-31 21:38:16 +0100 |
| commit | f18aca0bfc380337d99871f6255bd600c70015ca (patch) | |
| tree | 5b2cd84a6b07b4d26fcaf3a2e95e05170f0b88f6 | |
| parent | b78a805564fc9106ad799a5e6863cb2818ef9b2b (diff) | |
| download | python-apt-f18aca0bfc380337d99871f6255bd600c70015ca.tar.gz | |
python/arfile.cc: Handle the case where ararchive_new returns NULL in debfile_new.
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rw-r--r-- | python/arfile.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index bfd7e5b7..07263fe8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -19,6 +19,8 @@ python-apt (0.7.93.1) UNRELEASED; urgency=low * Remove inline functions from the C++ API, export them instead. * Localization - de.po: Update against new template + * python/arfile.cc: + - Handle the case where ararchive_new returns NULL in debfile_new. -- Julian Andres Klode <jak@debian.org> Sat, 23 Jan 2010 15:35:55 +0100 diff --git a/python/arfile.cc b/python/arfile.cc index 4f95a791..4f3b4ad7 100644 --- a/python/arfile.cc +++ b/python/arfile.cc @@ -523,6 +523,8 @@ static PyObject *_gettar(PyDebFileObject *self, const ARArchive::Member *m, static PyObject *debfile_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { PyDebFileObject *self = (PyDebFileObject*)ararchive_new(type, args, kwds); + if (self == NULL) + return NULL; // DebFile self->control = _gettar(self, self->Object->FindMember("control.tar.gz"), |
