This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Decorater, benfogle, nadeem.vawda, serhiy.storchaka
Date 2016-10-30.18:06:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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": lzma.FILTER_X86, "start_offset": 0x40},
...                  {"id": lzma.FILTER_LZMA2, "preset": 4, "lc": 2}]
>>> c = lzma.LZMACompressor(lzma.FORMAT_RAW, filters=FILTERS_RAW_4)
>>> c.compress(b'')
>>> c.compress(b'')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
_lzma.LZMAError: Insufficient buffer space
Date User Action Args
2016-10-30 18:06:41serhiy.storchakasetrecipients: + serhiy.storchaka, nadeem.vawda, Decorater, benfogle
2016-10-30 18:06:41serhiy.storchakasetmessageid: <>
2016-10-30 18:06:41serhiy.storchakalinkissue27517 messages
2016-10-30 18:06:41serhiy.storchakacreate