[issue12687] Python 3.2 fails to load protocol 0 pickle
Andrew Wilkins
report at bugs.python.org
Sat Aug 6 05:26:03 CEST 2011
Andrew Wilkins <axwalk at gmail.com> added the comment:
In _pickle.c, the load_put function calls _Unpickler_Readline, which may prefetch data and place it after the line read in with "readline". load_put then calls PyLong_FromString, which doesn't like the trailing data after the '\n'.
Maybe just use PyOS_strtol instead? Alternatively, replace the newline with a null byte.
----------
nosy: +axwalk
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12687>
_______________________________________
More information about the Python-bugs-list
mailing list