[issue5180] 3.1 cannot unpickle 2.7-created pickle

Alexander Belopolsky report at bugs.python.org
Sat Jul 17 16:28:20 CEST 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

Alexandre,

I am not sure your change form PyObject_Size(args) to Py_SIZE(args) is correct.  As far as I can tell, args come from pickle machine stack without any type checks.  The equivalent code in 2.x cPickle uses PyObject_Size and checks for errors.  I'll try to come up with a test case for the error situation, but it is a bit tricky because pickle should be produced in 2.x in order for this function to be used.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5180>
_______________________________________


More information about the Python-bugs-list mailing list