[New-bugs-announce] [issue7455] cPickle: stack underflow in load_pop()

STINNER Victor report at bugs.python.org
Tue Dec 8 03:59:19 CET 2009


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

load_pop() pops a value if the stack length is >= 0. The test is wrong:
if the length is zero, the stack is empty and stackUnderflow() have to
be called.

Example:

  $ ../../python -c "import cPickle; cPickle.loads('0')"
  Erreur de segmentation

----------
components: Extension Modules
files: cpickle_load_pop.patch
keywords: patch
messages: 96106
nosy: haypo
severity: normal
status: open
title: cPickle: stack underflow in load_pop()
versions: Python 2.7
Added file: http://bugs.python.org/file15487/cpickle_load_pop.patch

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


More information about the New-bugs-announce mailing list