summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authoranimalize <animalize@users.noreply.github.com>2019-09-12 14:20:37 (GMT)
committerGregory P. Smith <greg@krypto.org>2019-09-12 14:20:37 (GMT)
commit4ffd05d7ec47cfd0d7fc95dce851633be9663255 (patch)
treeaf336a3bd01bf0460ab0b4786790644a4f2251ad /Misc
parent2f1b857562b0f1601c9019db74c29b7d7e21ac9f (diff)
downloadcpython-4ffd05d7ec47cfd0d7fc95dce851633be9663255.zip
cpython-4ffd05d7ec47cfd0d7fc95dce851633be9663255.tar.gz
cpython-4ffd05d7ec47cfd0d7fc95dce851633be9663255.tar.bz2
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
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-06-12-08-56-22.bpo-21872.V9QGGN.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-06-12-08-56-22.bpo-21872.V9QGGN.rst b/Misc/NEWS.d/next/Library/2019-06-12-08-56-22.bpo-21872.V9QGGN.rst
new file mode 100644
index 0000000..90df756
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-06-12-08-56-22.bpo-21872.V9QGGN.rst
@@ -0,0 +1,3 @@
+Fix :mod:`lzma`: module decompresses data incompletely. When decompressing a
+FORMAT_ALONE format file, and it doesn't have the end marker, sometimes the
+last one to dozens bytes can't be output. Patch by Ma Lin.