<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/test/test_gzip.py, branch benjamin-eval-loop-edit</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-28286: Add tests for the mode argument of GzipFile. (#4074)</title>
<updated>2017-10-22T10:18:21+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2017-10-22T10:18:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=bcbdd2f8db396c3f0ec9186162b39b5a34effa0e'/>
<id>bcbdd2f8db396c3f0ec9186162b39b5a34effa0e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #28227: gzip now supports pathlib</title>
<updated>2016-10-02T10:47:58+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2016-10-02T10:47:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=03020cfa97b6c2c80f50fb2d07025aff49c3513c'/>
<id>03020cfa97b6c2c80f50fb2d07025aff49c3513c</id>
<content type='text'>
Patch by Ethan Furman.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Patch by Ethan Furman.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use sequence repetition instead of bytes constructor with integer argument.</title>
<updated>2016-09-11T11:41:02+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-09-11T11:41:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5f1a5187f72acb75d59fa67286ecf5c186bae619'/>
<id>5f1a5187f72acb75d59fa67286ecf5c186bae619</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #25626: Change zlib to accept Py_ssize_t and cap to UINT_MAX</title>
<updated>2015-11-20T08:13:35+00:00</updated>
<author>
<name>Martin Panter</name>
<email>vadmium+py@gmail.com</email>
</author>
<published>2015-11-20T08:13:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=e99e97762cc75ad94056275ddcae9c84d63a3412'/>
<id>e99e97762cc75ad94056275ddcae9c84d63a3412</id>
<content type='text'>
The underlying zlib library stores sizes in “unsigned int”. The corresponding
Python parameters are all sizes of buffers filled in by zlib, so it is okay
to reduce higher values to the UINT_MAX internal cap. OverflowError is still
raised for sizes that do not fit in Py_ssize_t.

Sizes are now limited to Py_ssize_t rather than unsigned long, because Python
byte strings cannot be larger than Py_ssize_t. Previously this could result
in a SystemError on 32-bit platforms.

This resolves a regression in the gzip module when reading more than UINT_MAX
or LONG_MAX bytes in one call, introduced by revision 62723172412c.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The underlying zlib library stores sizes in “unsigned int”. The corresponding
Python parameters are all sizes of buffers filled in by zlib, so it is okay
to reduce higher values to the UINT_MAX internal cap. OverflowError is still
raised for sizes that do not fit in Py_ssize_t.

Sizes are now limited to Py_ssize_t rather than unsigned long, because Python
byte strings cannot be larger than Py_ssize_t. Previously this could result
in a SystemError on 32-bit platforms.

This resolves a regression in the gzip module when reading more than UINT_MAX
or LONG_MAX bytes in one call, introduced by revision 62723172412c.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #23529: Limit the size of decompressed data when reading from</title>
<updated>2015-04-10T22:31:01+00:00</updated>
<author>
<name>Antoine Pitrou</name>
<email>solipsis@pitrou.net</email>
</author>
<published>2015-04-10T22:31:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=2dbc6e6bce0a29757acddd8000d55f7c844295a2'/>
<id>2dbc6e6bce0a29757acddd8000d55f7c844295a2</id>
<content type='text'>
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.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #23688: Added support of arbitrary bytes-like objects and avoided</title>
<updated>2015-03-23T12:59:48+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2015-03-23T12:59:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=bca63b362d23f154a5ed7fe43e4146977bba181e'/>
<id>bca63b362d23f154a5ed7fe43e4146977bba181e</id>
<content type='text'>
unnecessary copying of memoryview in gzip.GzipFile.write().
Original patch by Wolfgang Maier.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
unnecessary copying of memoryview in gzip.GzipFile.write().
Original patch by Wolfgang Maier.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #20875: Merge from 3.3</title>
<updated>2014-03-09T21:47:58+00:00</updated>
<author>
<name>Ned Deily</name>
<email>nad@acm.org</email>
</author>
<published>2014-03-09T21:47:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=e5127299c86666080c50e8b7c76e70c3b968ada2'/>
<id>e5127299c86666080c50e8b7c76e70c3b968ada2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #20875: Prevent possible gzip "'read' is not defined" NameError.</title>
<updated>2014-03-09T21:44:34+00:00</updated>
<author>
<name>Ned Deily</name>
<email>nad@acm.org</email>
</author>
<published>2014-03-09T21:44:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=6120739f0cb1c26069570fea701fe79489f1cd9d'/>
<id>6120739f0cb1c26069570fea701fe79489f1cd9d</id>
<content type='text'>
Patch by Claudiu Popa.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Patch by Claudiu Popa.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #19936: Remove executable bits from C source files and several forgotten</title>
<updated>2014-01-16T16:48:45+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2014-01-16T16:48:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=7f470d0f9cf8eed178291f79f3e1d3ca0f30c85e'/>
<id>7f470d0f9cf8eed178291f79f3e1d3ca0f30c85e</id>
<content type='text'>
test files.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
test files.
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #19936: Added executable bits or shebang lines to Python scripts which</title>
<updated>2014-01-16T15:33:23+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2014-01-16T15:33:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8f8ec92de85b40b9e7bec81ae87f18cc3996c560'/>
<id>8f8ec92de85b40b9e7bec81ae87f18cc3996c560</id>
<content type='text'>
requires them.  Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.  Fixed
shebang lines in the unittestgui and checkpip scripts.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
requires them.  Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.  Fixed
shebang lines in the unittestgui and checkpip scripts.
</pre>
</div>
</content>
</entry>
</feed>
