[New-bugs-announce] [issue23224] LZMADecompressor object is only initialized in __init__
Martin Panter
report at bugs.python.org
Mon Jan 12 01:58:28 CET 2015
New submission from Martin Panter:
Noticed in a patch review around LZMModules/_lzmamodule.c:1055 that the C-level LZMADecompressor object is being initialized in an __init__() method. It crashes if you create the object with __new__() and never call __init__():
>>> from lzma import LZMADecompressor
>>> LZMADecompressor.__new__(LZMADecompressor).decompress(bytes())
Segmentation fault (core dumped)
[Exit 139]
----------
components: Extension Modules
messages: 233866
nosy: vadmium
priority: normal
severity: normal
status: open
title: LZMADecompressor object is only initialized in __init__
type: crash
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23224>
_______________________________________
More information about the New-bugs-announce
mailing list