]> git.saurik.com Git - apt.git/commit - apt-pkg/acquire-item.h
Add new Acquire::MaxReleaseFileSize=10*1000*1000 option
authorMichael Vogt <mvo@ubuntu.com>
Tue, 7 Oct 2014 18:40:37 +0000 (20:40 +0200)
committerMichael Vogt <mvo@ubuntu.com>
Tue, 7 Oct 2014 18:51:35 +0000 (20:51 +0200)
commit27e6c17a18216e2a02de39a6d1722b83ac823d42
tree91ac9a4c6584289591ff1442b26e14e7d870931e
parent7e4dfb4349e909c15b1c777679fdae81d76eeb62
Add new Acquire::MaxReleaseFileSize=10*1000*1000 option

This option controls the maximum size of Release/Release.gpg/InRelease
files. The rational is that we do not know the size of these files in
advance and we want to protect against a denial of service attack
where someone sends us endless amounts of data until the disk is full
(we do know the size all other files (Packages/Sources/debs)).
apt-pkg/acquire-item.cc
apt-pkg/acquire-item.h
test/integration/test-apt-update-expected-size