e99e97762c
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. |
||
---|---|---|
.. | ||
_bz2module.c.h | ||
_codecsmodule.c.h | ||
_cryptmodule.c.h | ||
_cursesmodule.c.h | ||
_datetimemodule.c.h | ||
_dbmmodule.c.h | ||
_elementtree.c.h | ||
_gdbmmodule.c.h | ||
_lzmamodule.c.h | ||
_opcode.c.h | ||
_pickle.c.h | ||
_sre.c.h | ||
_ssl.c.h | ||
_tkinter.c.h | ||
_weakref.c.h | ||
_winapi.c.h | ||
arraymodule.c.h | ||
audioop.c.h | ||
binascii.c.h | ||
cmathmodule.c.h | ||
fcntlmodule.c.h | ||
grpmodule.c.h | ||
md5module.c.h | ||
posixmodule.c.h | ||
pwdmodule.c.h | ||
pyexpat.c.h | ||
sha1module.c.h | ||
sha256module.c.h | ||
sha512module.c.h | ||
signalmodule.c.h | ||
spwdmodule.c.h | ||
unicodedata.c.h | ||
zlibmodule.c.h |