]> git.saurik.com Git - apt.git/commit
Fix buffer overflow in debListParser::VersionHash()
authorJulian Andres Klode <jak@debian.org>
Tue, 28 Jun 2016 08:24:11 +0000 (10:24 +0200)
committerJulian Andres Klode <jak@debian.org>
Wed, 31 Aug 2016 11:14:17 +0000 (13:14 +0200)
commit36d673ecf7bdf6b3d594cac5789308c8a6b346c1
tree3cb48182e6bf0a498dea541730088c3e33840ba2
parent0216269ff9090e773ae2a0616e5aaecf0a13af8b
Fix buffer overflow in debListParser::VersionHash()

If a package file is formatted in a way that that no space
follows a deprecated "<", we would reformat it to "<=" and
increase the length of the output by 1, which can break.

Under normal circumstances with "<=" this should not be an
issue.

Closes: #828812
(cherry picked from commit b6e9756ca03ec887ef1d0bc8e38f63c29db7a365)
apt-pkg/deb/deblistparser.cc