This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients loewis, pitrou, vstinner
Date 2010-05-07.17:24:54
SpamBayes Score 0.0024479304
Marked as misclassified No
Message-id <1273253096.48.0.301498355728.issue8651@psf.upfronthosting.co.za>
In-reply-to
Content
When PY_SSIZE_T isn't defined and a format such as "s#" receives an object whose length fits in a Py_ssize_t but not in an int, the buffer length is silently truncated:

>>> s = 'x' * (4 * 1024**3 + 100)
>>> t = zlib.compress(s, 1)
>>> len(t)
12
>>> len(zlib.decompress(t))
100

(from issue8650)
History
Date User Action Args
2010-05-07 17:24:56pitrousetrecipients: + pitrou, loewis, vstinner
2010-05-07 17:24:56pitrousetmessageid: <1273253096.48.0.301498355728.issue8651@psf.upfronthosting.co.za>
2010-05-07 17:24:54pitroulinkissue8651 messages
2010-05-07 17:24:54pitroucreate