[issue17710] SystemError in cPickle for incorrect input

Alexandre Vassalotti report at bugs.python.org
Sat Apr 13 22:42:10 CEST 2013


Alexandre Vassalotti added the comment:

I was targeting head, not the release branches. It is fine to change the exception there as we don't make any guarantee about the exceptions raised during the unpickling process. It is easy enough to fix patch use ValueError for the release branch.

And adding guards is unnecessary after the removing the code for stripping trailing whitespace.

Here's slightly updated patch that check if readline() reached an EOF instead of a newline.

----------
Added file: http://bugs.python.org/file29826/fix_quoted_string_python3.patch

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


More information about the Python-bugs-list mailing list