| commit | be467e5c69515c355982e41d90762a31f2d3f75b | [log] [tgz] |
|---|---|---|
| author | Jeremy Hylton <jeremy@alum.mit.edu> | Fri Sep 15 15:14:51 2000 +0000 |
| committer | Jeremy Hylton <jeremy@alum.mit.edu> | Fri Sep 15 15:14:51 2000 +0000 |
| tree | 82e62b2aa1d370258dd72c41fcce76835e5180f4 | |
| parent | a647f577f00647063f1e29be75b2b3b8207fc3d0 [diff] |
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