[New-bugs-announce] [issue19885] lzma.LZMAFile.__init__() segfault when __init__ with non-existent file after executing the constructor

Vajrasky Kok report at bugs.python.org
Wed Dec 4 17:33:46 CET 2013


New submission from Vajrasky Kok:

[sky at localhost cutecat]$ cat /tmp/lzma_segfault.py 
import lzma
file = lzma.LZMAFile("/tmp/file.lzma", "w")
file.write(b"xxxx")
file.close()
with lzma.LZMAFile("/tmp/file.lzma", "w") as f:
    f.__init__("non-existent")
[sky at localhost cutecat]$ python /tmp/lzma_segfault.py 
Segmentation fault (core dumped)

See also issue19878.

I'll provide the patch tomorrow.

----------
components: Extension Modules
messages: 205229
nosy: nadeem.vawda, vajrasky
priority: normal
severity: normal
status: open
title: lzma.LZMAFile.__init__() segfault when __init__ with non-existent file after executing the constructor
type: crash
versions: Python 2.7

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


More information about the New-bugs-announce mailing list