]> granicus.if.org Git - python/commit
bpo-21872: fix lzma library decompresses data incompletely (GH-14048)
authoranimalize <animalize@users.noreply.github.com>
Thu, 12 Sep 2019 14:20:37 +0000 (22:20 +0800)
committerGregory P. Smith <greg@krypto.org>
Thu, 12 Sep 2019 14:20:37 +0000 (15:20 +0100)
commit4ffd05d7ec47cfd0d7fc95dce851633be9663255
treeaf336a3bd01bf0460ab0b4786790644a4f2251ad
parent2f1b857562b0f1601c9019db74c29b7d7e21ac9f
bpo-21872: fix lzma library decompresses data incompletely (GH-14048)

* 1. add test case with wrong behavior
* 2. fix bug when max_length == -1
* 3. allow b"" as valid input data for decompress_buf()
* 4. when max_length >= 0, let needs_input mechanism works
* add more asserts to test case
Lib/test/test_lzma.py
Misc/NEWS.d/next/Library/2019-06-12-08-56-22.bpo-21872.V9QGGN.rst [new file with mode: 0644]
Modules/_lzmamodule.c