]> granicus.if.org Git - python/commit
Fix Bug #114293:
authorJeremy Hylton <jeremy@alum.mit.edu>
Fri, 15 Sep 2000 15:14:51 +0000 (15:14 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Fri, 15 Sep 2000 15:14:51 +0000 (15:14 +0000)
commitbe467e5c69515c355982e41d90762a31f2d3f75b
tree82e62b2aa1d370258dd72c41fcce76835e5180f4
parenta647f577f00647063f1e29be75b2b3b8207fc3d0
Fix Bug #114293:
    Strings are unpickled by calling eval on the string's repr. This
    change makes pickle work like cPickle; it checks if the pickled
    string is safe to eval and raises ValueError if it is not.

test suite modifications:
    Verify that pickle catches a variety of insecure string pickles
    Make test_pickle and test_cpickle use exactly the same test suite
    Add test for pickling recursive object
Lib/pickle.py
Lib/test/output/test_cpickle
Lib/test/output/test_pickle
Lib/test/test_cpickle.py
Lib/test/test_pickle.py