summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2013-10-28 20:35:23 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2013-10-28 20:35:23 (GMT)
commit3797065ac55997741fd625a30a8308c04ee5c9b9 (patch)
treecf67e5dabe3bfcab16f64afa5118fd8b207c6da6 /Misc
parentba4e58a02172df294f16c68f0b0c4ac80184e4b0 (diff)
downloadcpython-3797065ac55997741fd625a30a8308c04ee5c9b9.zip
cpython-3797065ac55997741fd625a30a8308c04ee5c9b9.tar.gz
cpython-3797065ac55997741fd625a30a8308c04ee5c9b9.tar.bz2
#19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).
The underlying C libraries provide no mechanism for serializing compressor and decompressor objects, so actually pickling these classes is impractical. Previously, these objects would be pickled without error, but attempting to use a deserialized instance would segfault the interpreter.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index a911331..e830167 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -92,6 +92,10 @@ Core and Builtins
Library
-------
+- Issue #19395: Raise an exception when attempting to pickle a bz2 or lzma
+ compressor/decompressor object, rather than creating a pickle that would
+ cause a segfault when loaded and used.
+
- Issue #19227: Try to fix deadlocks caused by re-seeding then OpenSSL
pseudo-random number generator on fork().