Commit Graph

81509 Commits

Author SHA1 Message Date
Victor Stinner 68b674c9d4 Issue #19437: Fix _PyUnicode_New() (constructor of legacy string), set all
attributes before checking for error. The destructor expects all attributes to
be set. It is now safe to call Py_DECREF(unicode) in the constructor.
2013-10-29 19:31:43 +01:00
Victor Stinner 0b0c867178 Issue #19437: Fix PyObject_CallFunction(), handle Py_VaBuildValue() and
PyTuple_New() failure
2013-10-29 19:29:52 +01:00
Victor Stinner f38a5c28e0 Cleanup locale.localeconv(): move Py_DECREF() closer to the error 2013-10-29 19:28:20 +01:00
Victor Stinner 1ce3f840be Issue #19437: Fix convert_op_cmp() of decimal.Decimal rich comparator, handle
PyObject_IsInstance() failure
2013-10-29 19:26:11 +01:00
Victor Stinner 6decccdafe Issue #19437: Fix Array_subscript() of ctypes, handle Array_item() failure 2013-10-29 16:05:14 +01:00
Christian Heimes db816d6546 Issue #19420: Fix reference leak in module initalization code of _hashopenssl.c 2013-10-29 12:14:55 +01:00
Victor Stinner fa3ba4c3bc Issue #18609: Add a fast-path for "iso8859-1" encoding
On AIX, the locale encoding may be "iso8859-1", which was not a known syntax of
the legacy ISO 8859-1 encoding.

Using a C codec instead of a Python codec is faster but also avoids tricky
issues during Python startup or complex code.
2013-10-29 11:34:05 +01:00
Victor Stinner bebba5059c fix indent 2013-10-29 10:56:34 +01:00
Georg Brandl 3a19a89eac merge with 3.3 2013-10-29 08:17:08 +01:00
Georg Brandl 3d596fa90b Clarify sentence. 2013-10-29 08:16:56 +01:00
Georg Brandl 21527bf72f Closes #19416: fix references in the nntplib docs. 2013-10-29 08:14:51 +01:00
Georg Brandl 1ed80b09ed Fix wrong signature for two-argument newwin(). Found by Jacqueline Leykam on docs@. 2013-10-29 08:10:36 +01:00
Georg Brandl ad3215362c Fix typo: js_JP is not a valid locale. 2013-10-29 08:05:10 +01:00
Victor Stinner dd371b92c4 Issue #18408: Fix PyCStructUnionType_update_stgdict(), handle
_ctypes_alloc_format_string() failure
2013-10-29 03:50:45 +01:00
Victor Stinner 68f6adca6d Issue #18408: Fix _ctypes_alloc_format_string(), raise MemoryError on memory
allocation failure
2013-10-29 03:50:21 +01:00
Victor Stinner cc64eb5b9f Issue #18408: Fix bytearrayiter.partition()/rpartition(), handle
PyByteArray_FromStringAndSize() failure (ex: on memory allocation failure)
2013-10-29 03:15:37 +01:00
Victor Stinner 986e224d5a Issue #18408: Fix error handling in PyBytes_FromObject()
_PyBytes_Resize(&new) sets new to NULL on error, don't call Py_DECREF() with NULL.
2013-10-29 03:14:22 +01:00
Victor Stinner cc024d1820 Issue #18408: Fix iobase_readline(), handle PyByteArray_Resize() failure 2013-10-29 02:23:46 +01:00
Victor Stinner af8b7e8233 Issue #18408: Fix zipimport, handle PyUnicode_Substring() and get_subname() failures 2013-10-29 01:46:24 +01:00
Victor Stinner 73660af6af Issue #19428: zipimport now handles errors when reading truncated or invalid
ZIP archive.
2013-10-29 01:43:44 +01:00
Victor Stinner a5afb58986 Issue #18408: Fix PyUnicode_AsUTF8AndSize(), raise MemoryError exception on
memory allocation failure
2013-10-29 01:28:23 +01:00
Victor Stinner 41bb43a71e Issue #18408: Add a new PyFrame_FastToLocalsWithError() function to handle
exceptions when merging fast locals into f_locals of a frame.
PyEval_GetLocals() now raises an exception and return NULL on failure.
2013-10-29 01:19:37 +01:00
Victor Stinner 28c63f7ffb CJK codecs: less magical macros, semicolon is now explicit 2013-10-29 00:59:44 +01:00
Victor Stinner 14c9fea60a CJK codecs: less magic macros, require explicit semicolon 2013-10-29 00:19:27 +01:00
Richard Oudkerk e90cedb711 Issue #19425 -- a pickling error should not cause pool to hang. 2013-10-28 23:11:58 +00:00
Victor Stinner 146a2ed0f2 CJK codecs: add newlines for readability 2013-10-29 00:09:41 +01:00
Victor Stinner bd97ac35f7 CJK codecs: use less magic and more readable macros, write explicit if 2013-10-28 23:54:13 +01:00
Victor Stinner 0a6e2c59d3 CJK codecs: remove unused TRYMAP_ENC_MPLANE macro 2013-10-28 23:47:26 +01:00
Victor Stinner 11bdf91a5f Issue #18509: handle PyUnicode_Writer() error 2013-10-28 23:18:39 +01:00
Richard Oudkerk 33aaa73cad Merge. 2013-10-28 23:23:04 +00:00
Nadeem Vawda e6514f533e #19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).
The underlying C libraries provide no mechanism for serializing compressor and
decompressor objects, so actually pickling these classes is impractical.
Previously, these objects would be pickled without error, but attempting to use
a deserialized instance would segfault the interpreter.
2013-10-28 21:41:24 +01:00
Nadeem Vawda 3797065ac5 #19395: Raise exception when pickling a (BZ2|LZMA)(Compressor|Decompressor).
The underlying C libraries provide no mechanism for serializing compressor and
decompressor objects, so actually pickling these classes is impractical.
Previously, these objects would be pickled without error, but attempting to use
a deserialized instance would segfault the interpreter.
2013-10-28 21:35:23 +01:00
Victor Stinner d1b48998e5 Issue #19421: add an unit test for warnings.warn() during finalization 2013-10-28 19:16:21 +01:00
Victor Stinner ce5f4fba11 Issue #19421: fix a check in warnings.warn() to be able to use it during Python
finalization.

sys.argv is set to None during Python finalization: add PyList_Check() to avoid
a crash in PyList_Size().
2013-10-28 18:47:22 +01:00
Georg Brandl 1df788acd4 null merge with 3.3 2013-10-28 08:08:09 +01:00
Georg Brandl ba4e58a021 Add NEWS header for 3.3.4. 2013-10-28 08:05:26 +01:00
Ned Deily f20ee9391c Issue #19373: merge from 3.3 2013-10-27 19:50:34 -07:00
Ned Deily 94764b24aa Issue #19373: Apply upstream change to Tk 8.5.15 fixing OS X 10.9
screen refresh problem.
2013-10-27 19:49:29 -07:00
Tim Golden bb4b0aa51b Issue 15792 Correct build options on Win64. Patch by Jeremy Kloth. 2013-10-27 20:04:12 +00:00
Serhiy Storchaka 8797dcd9d5 Fixed merge test for Tcl/Tk <8.5 (issue #18964). 2013-10-27 12:38:01 +02:00
Georg Brandl d2d6beaa69 Added tag v3.3.3rc1 for changeset fd53c500f8b8 2013-10-27 09:49:33 +01:00
Georg Brandl 78abc9dcc2 Skip overzealous test for existence of the online license.html for pre-release versions. 2013-10-27 09:41:57 +01:00
Georg Brandl 2d34f41bee Bump to 3.3.3rc1. 2013-10-27 09:22:59 +01:00
Georg Brandl 325a1c2f37 Fix markup errors in the docs and amend suspicious ignores. 2013-10-27 09:16:01 +01:00
Georg Brandl c9d597a46d Update pydoc topics. 2013-10-27 09:08:16 +01:00
Georg Brandl 81be27d53e Issue #19227: Try to fix deadlocks caused by re-seeding then OpenSSL
pseudo-random number generator on fork().
2013-10-27 07:56:11 +01:00
Georg Brandl 045ee06ae9 merge 2013-10-27 07:39:36 +01:00
Georg Brandl bf3f8eb960 Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more than
100 headers are read.  Adapted from patch by Jyrki Pulliainen.
2013-10-27 07:34:48 +01:00
Georg Brandl 28e78414f9 Issue #16040: CVE-2013-1752: nntplib: Limit maximum line lengths to 2048 to
prevent readline() calls from consuming too much memory.  Patch by Jyrki
Pulliainen.
2013-10-27 07:29:47 +01:00
Georg Brandl 7e27abbb39 Issue #16041: CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to
prevent readline() calls from consuming too much memory.  Patch by Jyrki
Pulliainen.
2013-10-27 07:23:53 +01:00