summaryrefslogtreecommitdiff
path: root/python/cdrom.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-06-11 16:15:34 +0200
committerJulian Andres Klode <jak@debian.org>2015-06-11 16:15:34 +0200
commit3ae6e69473c785b6c56cfb27c31a7c9375416f06 (patch)
treeca40a4883e0a6ee3add162078781c4b714d6208f /python/cdrom.cc
parenta6e3d4d872b852de308f19a15215180cb4116765 (diff)
downloadpython-apt-3ae6e69473c785b6c56cfb27c31a7c9375416f06.tar.gz
python/tarfile.cc: LFS: Handle too large file
Handle both file sizes larger than SIZE_MAX and allocation failures when reading the data of a tarmember. If using the go() function with a callback, pass None as the data parameter for files that are too large. For extractdata, raise a MemoryError if the file too extract is too large. Also check for an existing error first in extractdata, before raising a new one. Test the whole thing on 32-bit platforms with a sample deb that contains a zeroed file that is 5GB large (compressed using xz at level 1 to a few kb).
Diffstat (limited to 'python/cdrom.cc')
0 files changed, 0 insertions, 0 deletions