classification
Title: marshal: error cases are not documented
Type: Stage:
Components: Versions: Python 3.4
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, haypo, pitrou, python-dev
Priority: normal Keywords:

Created on 2013-10-29 00:41 by haypo, last changed 2013-10-29 07:00 by georg.brandl.

Messages (3)
msg201595 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2013-10-29 00:41
Since changeset 4059e871e74e (issue #19219), it becomes more clear in the source code that reading data from marshal can fail. It was already true in Python 3.3, but less explicit.

Failures are not documented in Doc/c-api/marshal.rst.

Failures are not tested in zipimport.c, maybe also in other files.
msg201597 - (view) Author: Roundup Robot (python-dev) Date: 2013-10-29 00:47
New changeset 11958c69a4b2 by Victor Stinner in branch 'default':
Issue #19428: zipimport now handles errors when reading truncated or invalid
http://hg.python.org/cpython/rev/11958c69a4b2
msg201608 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2013-10-29 07:00
Is this backportable?
History
Date User Action Args
2013-10-29 07:00:28georg.brandlsetnosy: + georg.brandl
messages: + msg201608
2013-10-29 00:47:03python-devsetnosy: + python-dev
messages: + msg201597
2013-10-29 00:41:28haypocreate