summaryrefslogtreecommitdiffstats
path: root/Python/marshal.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed memory leak in marshal.Serhiy Storchaka2015-01-281-1/+3
|
* Issue #22581: Use more "bytes-like object" throughout the docs and comments.Serhiy Storchaka2014-12-051-1/+1
|
* Fix compiler warning (on Windows 64-bit): explicit cast Py_ssize_t to unsignedVictor Stinner2013-11-151-2/+2
| | | | char, n is in range [0; 255] (a tuple cannot have a negative length)
* Issue #19437: Cleanup r_ref() of the marshal moduleVictor Stinner2013-10-311-5/+6
|
* Issue #19437: Fix r_object() of marshal module, handle PyDict_SetItem() failureVictor Stinner2013-10-311-3/+12
| | | | for TYPE_DICT and stop immedialty on first r_object() failure
* Issue #19437: Fix r_object() of marshal module, handle r_byte() failure forVictor Stinner2013-10-311-0/+2
| | | | TYPE_SMALL_TUPLE
* Issue #19437: Fix r_PyLong() of marshal module, stop immediatly at firstVictor Stinner2013-10-311-4/+11
| | | | failure, don't read any more data
* Issue #1772673: The type of `char*` arguments now changed to `const char*`.Serhiy Storchaka2013-10-191-3/+3
|
* Close #19260: remove outdated comment in marshal.cAntoine Pitrou2013-10-141-2/+0
|
* Catch a few extra error cases in marshal.cKristján Valur Jónsson2013-10-131-0/+4
|
* Issue #19219 Remove a lot of "retval = NULL" statements, now that retvalKristján Valur Jónsson2013-10-131-79/+22
| | | | is pre-initialized to that value. Test show a 5% speedup as a bonus.
* Issue #19219: retval may be used uninitialized valueChristian Heimes2013-10-131-1/+1
| | | | CID 486239: Uninitialized pointer read (UNINIT)
* Try to fix weird assertion error on the Fedora buildbot.Antoine Pitrou2013-10-121-3/+3
|
* Issue #19219: Speed up marshal.loads(), and make pyc files slightly (5% to ↵Antoine Pitrou2013-10-121-126/+266
| | | | 10%) smaller.
* Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-2/+2
|\ | | | | | | error messages and comments.
| * Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-2/+2
| | | | | | | | error messages and comments.
* | Issue #18722: Remove uses of the "register" keyword in C code.Antoine Pitrou2013-08-131-2/+2
| |
* | Issue #17872: Fix a segfault in marshal.load() when input stream returnsSerhiy Storchaka2013-07-111-15/+20
|\ \ | |/ | | | | more bytes than requested.
| * Issue #17872: Fix a segfault in marshal.load() when input stream returnsSerhiy Storchaka2013-07-111-15/+20
| | | | | | | | more bytes than requested.
* | Fix reference leaks introduced by the patch for issue #5308.Serhiy Storchaka2013-07-111-12/+11
|\ \ | |/
| * Fix reference leaks introduced by the patch for issue #5308.Serhiy Storchaka2013-07-111-12/+11
| |
* | Issue #18408: Fix marshal reader for Unicode strings: handleVictor Stinner2013-07-081-0/+4
| | | | | | | | PyUnicode_DecodeUTF8() failure (ex: MemoryError).
* | marshal: optimize parsing of empty Unicode stringsVictor Stinner2013-06-211-12/+17
| | | | | | | | | | Don't create a temporary buffer of zeroy byte nor call r_string() if the length is zero, create directly the empty string.
* | Issue #15480: Remove the deprecated and unused TYPE_INT64 code from marshal.Antoine Pitrou2013-04-131-46/+1
| | | | | | | | Initial patch by Daniel Riti.
* | Issue #16475 : Correctly handle the EOF when reading marshal streams.Kristján Valur Jónsson2013-03-201-9/+9
| |
* | Issue #16475: Simplify the interface to r_ref_allocate and improve comments.Kristján Valur Jónsson2013-03-201-26/+33
| |
* | fix compiler warningBenjamin Peterson2013-03-201-1/+1
| |
* | Backed out changeset 521232b05b97Benjamin Peterson2013-03-201-1/+1
| |
* | fix compiler warningBenjamin Peterson2013-03-201-1/+1
| |
* | Issue #16475: Support object instancing, recursion and interned stringsKristján Valur Jónsson2013-03-201-27/+245
|/ | | | in marshal
* Issue #5308: Raise ValueError when marshalling too large object (a sequenceSerhiy Storchaka2013-02-131-59/+59
|\ | | | | | | with size >= 2**31), instead of producing illegal marshal data.
| * Issue #5308: Raise ValueError when marshalling too large object (a sequenceSerhiy Storchaka2013-02-131-59/+59
| | | | | | | | with size >= 2**31), instead of producing illegal marshal data.
* | Issue #15466: Stop using TYPE_INT64 in marshal,Martin v. Löwis2012-07-281-11/+5
| | | | | | | | | | to make importlib.h (and other byte code files) equal between 32-bit and 64-bit systems.
* | - Issue #14177: marshal.loads() now raises TypeError when given an unicodeAntoine Pitrou2012-03-031-4/+4
|\ \ | |/ | | | | string. Patch by Guilherme Gonçalves.
| * Issue #14177: marshal.loads() now raises TypeError when given an unicode string.Antoine Pitrou2012-03-031-4/+4
| | | | | | | | Patch by Guilherme Gonçalves.
* | Simplify code in marshal.c.Antoine Pitrou2012-03-021-7/+1
| |
* | Issue #14172: Fix reference leak when marshalling a buffer-like object ↵Antoine Pitrou2012-03-021-4/+4
|\ \ | |/ | | | | (other than a bytes object).
| * Issue #14172: Fix reference leak when marshalling a buffer-like object ↵Antoine Pitrou2012-03-021-4/+4
| | | | | | | | (other than a bytes object).
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-3/+3
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-3/+8
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Implement PEP 393.Martin v. Löwis2011-09-281-3/+1
| |
* | Merge from 3.2 (#10318, #12255, #12043, #12417 and other fixes)Éric Araujo2011-07-291-3/+3
|\ \ | |/
| * Fix style in code added by edba722f3b02Éric Araujo2011-07-261-3/+3
| |
| * Removed some unused local variables.Vinay Sajip2011-07-021-2/+0
| |
* | Correct uninitialized data problem in marshal code.Vinay Sajip2011-07-021-0/+1
| |
* | Removed breaking typo accidentally introduced during merge with 3.2.Vinay Sajip2011-07-021-4/+0
| |
* | Closes #12291 for 3.3 - merged fix from 3.2.Vinay Sajip2011-07-021-59/+155
|\ \ | |/
| * Closes #12291: Fixed bug which was found when doing multiple loads from one ↵Vinay Sajip2011-07-021-60/+155
| | | | | | | | stream.
* | try to use the same str object for all code filenames when compiling or ↵Benjamin Peterson2011-05-271-0/+19
| | | | | | | | | | | | unmarshalling (#12190) This should reduce memory usage.
* | remove unused string WILFE attributeBenjamin Peterson2011-05-271-16/+0
|/