New submission from Antoine Pitrou <pit...@free.fr>:

In several opcodes (BINBYTES, BINUNICODE... what else?), _pickle.c happily 
accepts 32-bit lengths of more than 2**31, while pickle.py uses marshal's "i" 
typecode which means "signed"... and therefore fails reading the data.
Apparently, pickle.py uses marshal for speed reasons, but marshal doesn't 
support unsigned types.

(seen from http://bugs.python.org/issue11564)

----------
components: Library (Lib)
messages: 143065
nosy: alexandre.vassalotti, pitrou
priority: normal
severity: normal
status: open
title: pickle.py treats 32bit lengths as signed, but _pickle.c as unsigned
type: behavior
versions: Python 3.2, Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12848>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to