Bug#339533: pkgCache::VerIterator::end() crashes on a default VerIterator

2005-11-23 Thread Michael Vogt
On Wed, Nov 16, 2005 at 03:08:48PM -0800, Daniel Burrows wrote: Package: libapt-pkg-dev Version: 0.6.42.3exp1 Severity: normal Tags: patch The following code should not crash, but it does: pkgCache::VerIterator ver; if(ver.end()) ...; Thanks for the bugreport and the

Bug#339533: pkgCache::VerIterator::end() crashes on a default VerIterator

2005-11-16 Thread Daniel Burrows
Package: libapt-pkg-dev Version: 0.6.42.3exp1 Severity: normal Tags: patch The following code should not crash, but it does: pkgCache::VerIterator ver; if(ver.end()) ...; The problem is that end() doesn't check whether Owner is NULL before dereferencing it. The following patch