[New-bugs-announce] [issue29800] functools.partial segfaults in repr when keywords attribute is abused

Michael Seifert report at bugs.python.org
Sun Mar 12 17:10:14 EDT 2017


New submission from Michael Seifert:

It's possible to create a segfault when one (inappropriatly) changes the functools.partial.keywords attribute manually. A minimal example reproducing the segfault is:

>>> from functools import partial
>>> p = partial(int)
>>> p.keywords[1] = 10
>>> repr(p)

System: Windows 10
Python: 3.5.3, 3.6.0, master-branch

----------
components: Library (Lib)
messages: 289510
nosy: MSeifert
priority: normal
severity: normal
status: open
title: functools.partial segfaults in repr when keywords attribute is abused
type: crash
versions: Python 3.5, Python 3.6, Python 3.7

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


More information about the New-bugs-announce mailing list