Message279737
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'')
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:41 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, nadeem.vawda, Decorater, benfogle |
2016-10-30 18:06:41 | serhiy.storchaka | set | messageid: <1477850801.36.0.869191949406.issue27517@psf.upfronthosting.co.za> |
2016-10-30 18:06:41 | serhiy.storchaka | link | issue27517 messages |
2016-10-30 18:06:41 | serhiy.storchaka | create | |
|