]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Jim Fulton:
authorGuido van Rossum <guido@python.org>
Mon, 8 Dec 1997 15:15:16 +0000 (15:15 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 8 Dec 1997 15:15:16 +0000 (15:15 +0000)
commit9716aaa14c74e38ef2dfa305f5007636752d714f
tree9dcf5927ad2313470585e82217fd9f206e488131
parent61280916f6e3b372142e00dad37e28f31bba2b68
Jim Fulton:

        - Loading non-binary string pickles checks for insecure
          strings. This is needed because cPickle (still)
          uses a restricted eval to parse non-binary string pickles.
          This change is needed to prevent untrusted
          pickles like::

            "S'hello world'*2000000\012p0\012."

          from hosing an application.

        - User-defined types can now support unpickling without
          executing a constructor.

          The second value returned from __reduce__ can now be None,
          rather than an argument tuple. On unpickling, if the second
          value returned from __reduce__ during pickling was None, then
          rather than calling the first value returned from __reduce__,
          directly, the __basicnew__ method of the first value returned
          from __reduce__ is called without arguments.
Modules/cPickle.c