[New-bugs-announce] [issue12847] crash with negative PUT in pickle

Antoine Pitrou report at bugs.python.org
Sat Aug 27 14:01:04 CEST 2011


New submission from Antoine Pitrou <pitrou at free.fr>:

This doesn't happen on 2.x cPickle, where PUT keys are simply treated as strings.

>>> import pickle, pickletools
>>> s = b'Va\np-1\n.'
>>> pickletools.dis(s)
    0: V    UNICODE    'a'
    3: p    PUT        -1
    7: .    STOP
highest protocol among opcodes = 0
>>> pickle.loads(s)   
Erreur de segmentation

----------
messages: 143062
nosy: pitrou
priority: normal
severity: normal
status: open
title: crash with negative PUT in pickle
type: crash
versions: Python 3.2, Python 3.3

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


More information about the New-bugs-announce mailing list