Message105217
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) |
|
Date |
User |
Action |
Args |
2010-05-07 17:24:56 | pitrou | set | recipients:
+ pitrou, loewis, vstinner |
2010-05-07 17:24:56 | pitrou | set | messageid: <1273253096.48.0.301498355728.issue8651@psf.upfronthosting.co.za> |
2010-05-07 17:24:54 | pitrou | link | issue8651 messages |
2010-05-07 17:24:54 | pitrou | create | |
|