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 malin, nadeem.vawda, pitrou, serhiy.storchaka
Date 2021-06-17.05:36:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623908171.23.0.144706559847.issue44439@roundup.psfhosted.org>
In-reply-to
Content
Oh, LZMAFile.write() should not use len() directly on input data because it does not always work correctly with memoryview and other objects supporting the buffer protocol. It should use memoryview(data).nbytes or data = memoryview(data).cast('B') if other byte-oriented operations (indexing, slicing) are used. See for example Lib/gzip.py, Lib/_pyio.py, Lib/_compression.py, Lib/ssl.py, Lib/socketserver.py, Lib/wave.py.
History
Date User Action Args
2021-06-17 05:36:11serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, nadeem.vawda, malin
2021-06-17 05:36:11serhiy.storchakasetmessageid: <1623908171.23.0.144706559847.issue44439@roundup.psfhosted.org>
2021-06-17 05:36:11serhiy.storchakalinkissue44439 messages
2021-06-17 05:36:11serhiy.storchakacreate