]> git.saurik.com Git - apt.git/commit
search: Handle packages without description
authorJulian Andres Klode <jak@debian.org>
Mon, 11 Jan 2016 16:36:58 +0000 (17:36 +0100)
committerJulian Andres Klode <jak@debian.org>
Mon, 11 Jan 2016 16:41:16 +0000 (17:41 +0100)
commitace5a062fc5390e636b09c5684bfbeae755cf437
treea7c8296a8a823b45d621072ea1b9a900bdb9fea1
parent1dbd5b4609346e1f8b42bdd1385e361fa196621b
search: Handle packages without description

If a package has no description, we would crash in search. While
this should not happen, there seem to be some weird cases where
it does.

A safer way might be to make the whole parser thing safe
against this, so pkgRecords::Lookup(Desc.FileList()) works
and returns a parser where all values are empty. This would
also fix all other instances of this bug, if there are any.

Closes: #810622
apt-private/private-search.cc