]> granicus.if.org Git - python/commit
Issue #23529: Limit the size of decompressed data when reading from
authorAntoine Pitrou <solipsis@pitrou.net>
Fri, 10 Apr 2015 22:31:01 +0000 (00:31 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Fri, 10 Apr 2015 22:31:01 +0000 (00:31 +0200)
commit2dbc6e6bce0a29757acddd8000d55f7c844295a2
treef1510e3a93b2527308dd6400a8b0544607e072db
parent2ce11d296cee8d71d2bf2451c7dba4ffa119d9d3
Issue #23529: Limit the size of decompressed data when reading from
GzipFile, BZ2File or LZMAFile.  This defeats denial of service attacks
using compressed bombs (i.e. compressed payloads which decompress to a huge
size).

Patch by Martin Panter and Nikolaus Rath.
Doc/library/bz2.rst
Doc/library/gzip.rst
Doc/library/lzma.rst
Lib/_compression.py [new file with mode: 0644]
Lib/bz2.py
Lib/gzip.py
Lib/lzma.py
Lib/test/test_bz2.py
Lib/test/test_gzip.py
Lib/test/test_lzma.py
Misc/NEWS