]> granicus.if.org Git - python/commit
bpo-31993: Do not use memoryview when pickle large strings. (#5154)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 12 Jan 2018 22:28:31 +0000 (00:28 +0200)
committerGitHub <noreply@github.com>
Fri, 12 Jan 2018 22:28:31 +0000 (00:28 +0200)
commit5b76bdba071e7bbd9fda0b9b100d1506d95c04bd
tree6330db8f2ec3db059cdad53010c11bce85b388fc
parentf3031b8a7ad71d3b6ed05da7f3041d9efbe773cf
bpo-31993: Do not use memoryview when pickle large strings. (#5154)

PyMemoryView_FromMemory() created a memoryview referring to
the internal data of the string.  When the string is destroyed
the memoryview become referring to a freed memory.
Lib/test/pickletester.py
Misc/NEWS.d/3.7.0a4.rst
Modules/_pickle.c