summaryrefslogtreecommitdiffstats
path: root/Modules/cPickle.c
Commit message (Collapse)AuthorAgeFilesLines
* bpo-27880: Fixed integer overflow in cPickle when pickle large strings or (#662)Serhiy Storchaka2017-03-141-10/+26
| | | too many objects.
* Issue #28925: cPickle now correctly propagates errors when unpickle instancesSerhiy Storchaka2016-12-151-35/+5
| | | | of old-style classes.
* Issue #28139: Fix messed up indentationMartin Panter2016-09-171-55/+55
| | | | | Also update the classmethod and staticmethod doc strings and comments to match the RST documentation.
* Issue #26778: Fixed "a/an/and" typos in code comment and documentation.Serhiy Storchaka2016-04-171-1/+1
|
* Issue #22570: Renamed Py_SETREF to Py_XSETREF.Serhiy Storchaka2016-04-061-8/+8
|
* Issue #20440: Massive replacing unsafe attribute setting code with specialSerhiy Storchaka2015-12-241-16/+8
| | | | macro Py_SETREF.
* Fixed reference leak when read truncated pickle.Serhiy Storchaka2015-11-301-1/+4
|
* Issue #25725: Fixed a reference leak in cPickle.loads() when unpicklingSerhiy Storchaka2015-11-251-19/+10
| | | | invalid data including tuple instructions.
* Issue #23914: Fixed SystemError raised by unpickler on broken pickle data.Serhiy Storchaka2015-11-231-2/+22
|
* Issue #892902: Fixed pickling recursive objects.Serhiy Storchaka2015-11-071-0/+21
|
* Don't left shift negative values. Use an unsigned value instead to avoidGregory P. Smith2015-08-041-1/+1
| | | | undefined behavior.
* possible memory leak in error case (closes #24719)Benjamin Peterson2015-07-251-1/+1
| | | | Patch by Pankaj Sharma.
* Issue #20437: Fixed 43 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-2/+1
|
* Issue #6477: Revert fbb97f6eb3b3 as it broke test_xpickle.Alexandre Vassalotti2013-12-011-63/+1
|
* Issue #6477: Added pickling support for singletons and their types.Alexandre Vassalotti2013-12-011-1/+63
|
* Issue #17710: Fix cPickle raising a SystemError on bogus input.Antoine Pitrou2013-04-151-4/+6
|
* Issue #13555: Fix an integer overflow check.Serhiy Storchaka2013-02-261-1/+1
|
* Issue #13555: cPickle now supports files larger than 2 GiB.Serhiy Storchaka2013-02-121-118/+152
|
* Issue #7689: Allow pickling of dynamically created classes when theirAntoine Pitrou2011-10-041-5/+5
| | | | | metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and Craig Citro.
* Untabify C files. Will watch buildbots.Antoine Pitrou2010-05-091-4501/+4501
|
* Remove a redundant string length check and variable assignment.Brett Cannon2010-05-041-5/+1
| | | | Found with Clang's static analyzer.
* Issue #7092: Remove py3k warning when importing cPickle. 2to3 handlesAntoine Pitrou2010-01-081-6/+0
| | | | | | renaming of `cPickle` to `pickle`. The warning was annoying since there's no alternative to cPickle if you care about performance. Patch by Florent Xicluna.
* Issue #7455: Fix possible crash in cPickle on invalid input. Patch byAntoine Pitrou2010-01-071-1/+1
| | | | Florent Xicluna.
* Issue 7128: Removed reference to the non-existent copyreg module.Alexandre Vassalotti2009-11-241-3/+2
| | | | | | | | | The reference to copyreg was a unnoticed leftover from the compatibility support for the grand renaming of the standard library in Python 3. The compatibility support was reverted in r63493, but not completely as this patch shows. Based on a patch by Amaury Forgeot d'Arc.
* Issue 7117: Replace PyOS_ascii_strtod with PyOS_string_to_double in cPickle ↵Eric Smith2009-10-271-4/+4
| | | | as part of short float repr.
* Continue removing _PyOS_double_to_string, as mentioned in issue 7117.Eric Smith2009-10-261-8/+22
|
* Make cPickle.Unpickler.noload() handle dict subclasses. noload() isNeil Schemenauer2009-10-141-4/+31
| | | | | an obscure, undocumentated feature so no test was added. Closes issue #1101399.
* #6553: crash in cPickle.load(), when given a StringIO with incomplete data.Amaury Forgeot d'Arc2009-07-231-0/+6
| | | | Will backport to 2.6, 3.x already fixed a similar issue with issue4298.
* Issue 5794: fix cPickle's unpickling of recursive tuples.Collin Winter2009-05-261-10/+9
|
* Issue 5670: special-case pickling of dicts. This nearly doubles the ↵Collin Winter2009-05-251-9/+78
| | | | performance of dict pickling in cPickle.
* Isue #5084: unpickling now interns the attribute names of pickled objects,Antoine Pitrou2009-05-021-1/+9
| | | | | saving memory and avoiding growth in size of subsequent pickles. Proposal and original patch by Jake McGuire.
* Issue #5835, deprecate PyOS_ascii_formatd.Eric Smith2009-04-251-1/+2
| | | | | | If anyone wants to clean up the documentation, feel free. It's my first documentation foray, and it's not that great. Will port to py3k with a different strategy.
* Issue #1672332: Fix unpickling of subnormal floats, which was raisingMark Dickinson2009-01-241-1/+2
| | | | | ValueError on some platforms as a result of the platform strtod setting errno on underflow.
* Issue #4051: Prevent conflict of UNICODE macros in cPickle.Martin v. Löwis2009-01-021-0/+8
|
* Fix issue #4730: cPickle corrupts high-unicode strings.Alexandre Vassalotti2008-12-271-30/+79
| | | | | Update outdated copy of PyUnicode_EncodeRawUnicodeEscape. Add a test case.
* Issue #4176: Pickle would crash the interpreter when a __reduce__ functionAmaury Forgeot d'Arc2008-10-301-26/+33
| | | | | | | | | does not return an iterator for the 4th and 5th items. (sequence-like and mapping-like state) A list is not an iterator... Will backport to 2.6 and 2.5.
* #3640: Correct a crash in cPickle on 64bit platforms, in the case of deeply ↵Amaury Forgeot d'Arc2008-09-111-64/+117
| | | | | | nested lists or dicts. Reviewed by Martin von Loewis.
* Fix #2702, with a correct accounting of recursion.Facundo Batista2008-06-301-10/+14
|
* Reverting the patch from #3165, as it broke otherFacundo Batista2008-06-251-4/+0
| | | | | | | | | behaviours. I left the original test commented out (note that that test came from #2702, which seems to have a problem in FreeBSD and Windows, but not in Linux). I included a new test, to watch over the now-broken behaviour, I took it from #3179.
* Fix compilation on Windows.Thomas Heller2008-06-231-2/+4
|
* Fixing the problem stated in issue 2702 with the patch submittedFacundo Batista2008-06-221-0/+2
| | | | | in the issue 3165. Now cPickle does not fails with uncontrolled behaviour when pickling into a very deep nested structure.
* Issue 3164. Small fix to don't repeat a comparationFacundo Batista2008-06-221-0/+2
| | | | without necessity.
* Merge in release25-maint r60793:Gregory P. Smith2008-06-111-0/+16
| | | | | | Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code.
* This reverts r63675 based on the discussion in this thread:Gregory P. Smith2008-06-091-64/+64
| | | | | | | http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
* Renamed PyString to PyBytesChristian Heimes2008-05-261-64/+64
|
* Revert copy_reg -> copyreg rename.Georg Brandl2008-05-201-7/+7
|
* Added Python 3.0 warning to cPickle.Alexandre Vassalotti2008-05-161-0/+6
|
* Added module stub for copy_reg renaming in 3.0.Alexandre Vassalotti2008-05-111-16/+16
| | | | | | Renamed copy_reg to copyreg in the standard library, to avoid spurious warnings and ease later merging to py3k branch. Public documentation remains intact.
* Use the new PyFile_IncUseCount & PyFile_DecUseCount calls appropriatlyGregory P. Smith2008-04-071-0/+4
| | | | | within the standard library. These modules use PyFile_AsFile and later release the GIL while operating on the previously returned FILE*.
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵Christian Heimes2007-12-191-11/+11
| | | | Py_REFCNT. Macros for b/w compatibility are available.