[issue1521] string.decode() fails on long strings

Amaury Forgeot d'Arc report at bugs.python.org
Thu Nov 29 18:14:52 CET 2007


Amaury Forgeot d'Arc added the comment:

I don't have any 64bit machine to test with,
but it seems to me that there is a problem in the function
getargs.c::convertsimple(): the t# and w# formats use the buffer
interface, but the code uses an int to store its length!

Look for the variables declared as "int count;". I suggest to replace it
with a Py_ssize_t in both places.

Shouldn't the compiler emit some warning in this case?

----------
nosy: +amaury.forgeotdarc

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1521>
__________________________________


More information about the Python-bugs-list mailing list