[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2017-03-31 Thread Donald Stufft
Changes by Donald Stufft : -- pull_requests: +990 ___ Python tracker ___ ___

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset b06f15507978 by Serhiy Storchaka in branch '3.5': Issue #27517: LZMA compressor and decompressor no longer raise exceptions if https://hg.python.org/cpython/rev/b06f15507978 New changeset fb64c7a81010 by Serhiy Storchaka in branch '3.6': Issue

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for you contribution Benjamin. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-10-30 Thread Benjamin Fogle
Benjamin Fogle added the comment: Ah, thank you. Good catch. I have reworked the patch to handle both cases. -- Added file: http://bugs.python.org/file45286/lzma_2.patch ___ Python tracker

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report and patch Benjamin. Seems your patch fixes the problem in default case. But the compressor still fails with the raw format. >>> import lzma >>> FILTERS_RAW_4 = [{"id": lzma.FILTER_DELTA, "dist": 4}, ... {"id":

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-10-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-10-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: +Python 3.7 ___ Python tracker ___

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-07-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +nadeem.vawda, serhiy.storchaka stage: -> patch review versions: -Python 3.3, Python 3.4 ___ Python tracker

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-07-14 Thread Benjamin Fogle
Benjamin Fogle added the comment: The above code demonstrates two separate issues. One with the decompressor, and one with the compressor. In the compressor example, the first output differs from the rest because it is a file header which is always emitted. That behavior is correct.

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-07-14 Thread Decorater
Decorater added the comment: Why you passing decompress without passing compress before decompressing it again? Also I would expect that it would show the same compress result trice in a row on the 1st test. This must definately be a issue. -- nosy: +Decorater

[issue27517] LZMACompressor and LZMADecompressor raise exceptions if given empty strings twice

2016-07-14 Thread Benjamin Fogle
New submission from Benjamin Fogle: To reproduce: >>> import lzma >>> c = lzma.LZMACompressor() >>> c.compress(b'') b'\xfd7zXZ\x00\x00\x04\xe6\xd6\xb4F' >>> c.compress(b'') b'' >>> c.compress(b'') Traceback (most recent call last): File "", line 1, in _lzma.LZMAError: Insufficient buffer