]> 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>
Tue, 28 Jun 2016 20:15:50 +0000 (22:15 +0200)
commitb6e9756ca03ec887ef1d0bc8e38f63c29db7a365
treef394c5fc42417b44784d595e3e5b3be1b007b250
parentb4f91d4d150a0d9bcc77563abbc03d28da2ff4e3
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
apt-pkg/deb/deblistparser.cc