Mailinglist Archive: zypp-commit (233 mails)

< Previous Next >
[zypp-commit] <libzypp> master : forward port Avoid SEGV if trying to access data of installed packages, that were deleted behind our back (bnc #530595)
  • From: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
  • Date: Thu, 12 Nov 2009 15:07:34 +0100
  • Message-id: <E1N8bgb-0000YG-9r@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 8e09b1c89503a6ef263b5b4ed1de889c0c01ab86
Author: Duncan Mac-Vicar P <dmacvicar@xxxxxxx>
Date: Thu Nov 12 15:07:34 2009 +0100

forward port
Avoid SEGV if trying to access data of installed packages, that were
deleted behind our back (bnc #530595)
---
zypp/Package.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/zypp/Package.cc b/zypp/Package.cc
index c4de93c..27f95c2 100644
--- a/zypp/Package.cc
+++ b/zypp/Package.cc
@@ -85,7 +85,7 @@ namespace zypp
{
target::rpm::RpmHeader::constPtr header;
target->rpmDb().getData(name(), header);
- return header->tag_changelog();
+ return header ? header->tag_changelog() : Changelog(); // might be
deleted behind our back (bnc #530595)
}
WAR << "changelog is not available for uninstalled packages" <<
std::endl;
return Changelog();
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages