[New-bugs-announce] [issue27988] email iter_attachments can mutate the payload

R. David Murray report at bugs.python.org
Tue Sep 6 21:57:16 EDT 2016


New submission from R. David Murray:

In the right (wrong) circumstances the iter_attachments function may mutate the payload list.  The fix is simple (make a copy before operating on it).  Attached is a patch with test.

----------
files: iter_attachments_mutation.patch
keywords: patch
messages: 274700
nosy: r.david.murray
priority: normal
severity: normal
stage: commit review
status: open
title: email iter_attachments can mutate the payload
type: behavior
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file44417/iter_attachments_mutation.patch

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


More information about the New-bugs-announce mailing list