]>
granicus.if.org Git - python/log
Christian Heimes [Mon, 22 Jul 2013 10:54:21 +0000 (12:54 +0200)]
Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],
prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
Christian Heimes [Mon, 22 Jul 2013 10:53:32 +0000 (12:53 +0200)]
Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],
prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
Christian Heimes [Mon, 22 Jul 2013 08:38:04 +0000 (10:38 +0200)]
merge
Christian Heimes [Mon, 22 Jul 2013 08:37:41 +0000 (10:37 +0200)]
merge
Christian Heimes [Mon, 22 Jul 2013 08:30:45 +0000 (10:30 +0200)]
Add sanity check to PyGrammar_LabelRepr() in order to catch invalid tokens when debugging
a new grammar.
CID 715360
Christian Heimes [Mon, 22 Jul 2013 08:30:14 +0000 (10:30 +0200)]
Add sanity check to PyGrammar_LabelRepr() in order to catch invalid tokens when debugging
a new grammar.
CID 715360
Victor Stinner [Mon, 22 Jul 2013 06:34:32 +0000 (08:34 +0200)]
Issue #18488: Fix _pysqlite_final_callback()
Restore behaviour of Python 3.3: print the finalizer() error if
sqlite3.enable_callback_tracebacks() has been called, clear the error
otherwise.
But keep (save/restore) also the AttributeError raised in
_pysqlite_step_callback().
Terry Jan Reedy [Mon, 22 Jul 2013 00:58:15 +0000 (20:58 -0400)]
Merge with 3.3
Terry Jan Reedy [Mon, 22 Jul 2013 00:57:44 +0000 (20:57 -0400)]
Issue #18439: Make patchcheck work on Windows for ACKS, NEWS.
Christian Heimes [Sun, 21 Jul 2013 21:05:11 +0000 (23:05 +0200)]
Now all error paths of _freeze_importlib use 'goto error' and the error label cleans up all used resources.
Christian Heimes [Sun, 21 Jul 2013 21:05:04 +0000 (23:05 +0200)]
Now all error paths of _freeze_importlib use 'goto error' and the error label cleans up all used resources.
Benjamin Peterson [Sun, 21 Jul 2013 20:29:42 +0000 (13:29 -0700)]
merge 3.3
Benjamin Peterson [Sun, 21 Jul 2013 20:29:37 +0000 (13:29 -0700)]
fix spacing
Benjamin Peterson [Sun, 21 Jul 2013 20:26:27 +0000 (13:26 -0700)]
merge 3.3
Benjamin Peterson [Sun, 21 Jul 2013 20:26:13 +0000 (13:26 -0700)]
let's not return NULL from functions that should return ints
Christian Heimes [Sun, 21 Jul 2013 14:25:30 +0000 (16:25 +0200)]
Issue #18514: Fix unreachable Py_DECREF() call in PyCData_FromBaseObj()
Christian Heimes [Sun, 21 Jul 2013 14:24:51 +0000 (16:24 +0200)]
Issue #18514: Fix unreachable Py_DECREF() call in PyCData_FromBaseObj()
Christian Heimes [Sun, 21 Jul 2013 14:19:16 +0000 (16:19 +0200)]
Fix reference and memory leaks in _freeze_importlib
Christian Heimes [Sun, 21 Jul 2013 14:19:02 +0000 (16:19 +0200)]
Fix reference and memory leaks in _freeze_importlib
Victor Stinner [Sun, 21 Jul 2013 11:25:51 +0000 (13:25 +0200)]
Issue #18520: Fix initsigs(), handle PyOS_InitInterrupts() error
PyOS_InitInterrupts() can raise error when importing the signal module
Victor Stinner [Sun, 21 Jul 2013 11:05:38 +0000 (13:05 +0200)]
Issue #18519, #18408: Fix sqlite authorizer callback
If a previous call to the authorizer callback failed and raised an exception,
don't call the Python authorizer callback, but just return SQLITE_DENY.
Raymond Hettinger [Sun, 21 Jul 2013 08:51:07 +0000 (01:51 -0700)]
Minor code simplification by eliminating an unnecessary temporary variable.
Christian Heimes [Sun, 21 Jul 2013 00:12:44 +0000 (02:12 +0200)]
Check return value of lseek() in _Py_DisplaySourceLine().
Also use portable SEEK_SET instead of 0.
CID
1040639
Christian Heimes [Sun, 21 Jul 2013 00:12:35 +0000 (02:12 +0200)]
Check return value of lseek() in _Py_DisplaySourceLine().
Also use portable SEEK_SET instead of 0.
CID
1040639
Christian Heimes [Sun, 21 Jul 2013 00:04:44 +0000 (02:04 +0200)]
Propagate error when PyByteArray_Resize() fails in bytearray_translate()
CID 715334
Christian Heimes [Sun, 21 Jul 2013 00:04:35 +0000 (02:04 +0200)]
Propagate error when PyByteArray_Resize() fails in bytearray_translate()
CID 715334
Christian Heimes [Sat, 20 Jul 2013 23:54:36 +0000 (01:54 +0200)]
merge
Christian Heimes [Sat, 20 Jul 2013 23:54:26 +0000 (01:54 +0200)]
merge
Christian Heimes [Sat, 20 Jul 2013 23:54:15 +0000 (01:54 +0200)]
merge
Christian Heimes [Sat, 20 Jul 2013 23:53:18 +0000 (01:53 +0200)]
Check return value of PyObject_AsFileDescriptor() in _Py_DisplaySourceLine() for error
CID 486768
Christian Heimes [Sat, 20 Jul 2013 23:53:10 +0000 (01:53 +0200)]
Check return value of PyObject_AsFileDescriptor() in _Py_DisplaySourceLine() for error
CID 486768
Ned Deily [Sat, 20 Jul 2013 22:08:22 +0000 (15:08 -0700)]
Issue #17532: merge from 3.3
Ned Deily [Sat, 20 Jul 2013 22:06:26 +0000 (15:06 -0700)]
Issue #17532: Prevent exception when changing key sets if Options menu is empty.
Christian Heimes [Sat, 20 Jul 2013 20:54:39 +0000 (22:54 +0200)]
Check return value of PyEval_GetGlobals() for NULL
CID 486814
Christian Heimes [Sat, 20 Jul 2013 20:54:25 +0000 (22:54 +0200)]
Check return value of PyEval_GetGlobals() for NULL
CID 486814
Christian Heimes [Sat, 20 Jul 2013 20:42:06 +0000 (22:42 +0200)]
Check return value of flush_character_buffer()
CID 486663
Christian Heimes [Sat, 20 Jul 2013 20:41:58 +0000 (22:41 +0200)]
Check return value of flush_character_buffer()
CID 486663
Christian Heimes [Sat, 20 Jul 2013 20:18:19 +0000 (22:18 +0200)]
Check return value of fstat() in _PyImport_GetDynLoadFunc()
CID 486250
Christian Heimes [Sat, 20 Jul 2013 20:17:55 +0000 (22:17 +0200)]
Check return value of fstat() in _PyImport_GetDynLoadFunc()
CID 486250
Antoine Pitrou [Sat, 20 Jul 2013 17:36:15 +0000 (19:36 +0200)]
test_ssl: use a bytestring here
Antoine Pitrou [Sat, 20 Jul 2013 17:35:16 +0000 (19:35 +0200)]
Issue #9177: Calling read() or write() now raises ValueError, not AttributeError, on a closed SSL socket.
Patch by Senko Rasic.
Mark Dickinson [Sat, 20 Jul 2013 17:00:06 +0000 (18:00 +0100)]
Issue #18513: Add workaround for OS X 10.8 cexp bug that leads to wrong cmath.rect(0.0,-0.0) results.
Mark Dickinson [Sat, 20 Jul 2013 16:59:13 +0000 (17:59 +0100)]
Issue #18513: Add workaround for OS X 10.8 cexp bug that leads to wrong cmath.rect(0.0,-0.0) results.
Christian Heimes [Sat, 20 Jul 2013 13:12:19 +0000 (15:12 +0200)]
Add missing check of PyDict_Update()'s return value in _elementtree.c
CID 719637
Christian Heimes [Sat, 20 Jul 2013 13:12:09 +0000 (15:12 +0200)]
Add missing check of PyDict_Update()'s return value in _elementtree.c
CID 719637
Christian Heimes [Sat, 20 Jul 2013 13:01:36 +0000 (15:01 +0200)]
Add missing check of PyDict_SetItem()'s return value
CID 486659
Christian Heimes [Sat, 20 Jul 2013 13:01:26 +0000 (15:01 +0200)]
Add missing check of PyDict_SetItem()'s return value
CID 486659
Christian Heimes [Sat, 20 Jul 2013 12:57:28 +0000 (14:57 +0200)]
Check return value of PyType_Ready(&EncodingMapType)
CID 486654
Christian Heimes [Sat, 20 Jul 2013 12:57:16 +0000 (14:57 +0200)]
Check return value of PyType_Ready(&EncodingMapType)
CID 486654
Christian Heimes [Sat, 20 Jul 2013 12:52:18 +0000 (14:52 +0200)]
Add missing check of PyDict_SetItem()'s return value in _PyImport_FindExtensionObject()
CID 486649
Christian Heimes [Sat, 20 Jul 2013 12:51:53 +0000 (14:51 +0200)]
Add missing check of PyDict_SetItem()'s return value in _PyImport_FindExtensionObject()
CID 486649
Christian Heimes [Sat, 20 Jul 2013 12:48:21 +0000 (14:48 +0200)]
Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()
CID 486647
Christian Heimes [Sat, 20 Jul 2013 12:48:10 +0000 (14:48 +0200)]
Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()
CID 486647
Christian Heimes [Sat, 20 Jul 2013 12:19:46 +0000 (14:19 +0200)]
Issue #18327: Fix argument order in call to compatible_for_assignment(oldto, newto, attr).
The fix only affects the error message of __class__ assignment. CID 983564
Christian Heimes [Sat, 20 Jul 2013 12:11:52 +0000 (14:11 +0200)]
Fix fishy sizeof(Py_ssize_t *).
sizeof(Py_ssize_t *) == sizeof(Py_ssize_t) but it's not a portable assumption.
CID 486403
Christian Heimes [Sat, 20 Jul 2013 12:11:28 +0000 (14:11 +0200)]
Use strncat() instead of strcat() to silence some warnings.
CID 486616, CID 486617, CID 486615
Raymond Hettinger [Sat, 20 Jul 2013 02:52:04 +0000 (19:52 -0700)]
Make the GCC-4.8 compiler happy by moving declarations to the top of the function.
Ethan Furman [Sat, 20 Jul 2013 02:47:21 +0000 (19:47 -0700)]
Change _names to _names_ since the latter is reserved for Enum use.
Before this change only the methods were _single_underscored_; now
the attributes are as well.
Ethan Furman [Sat, 20 Jul 2013 02:35:56 +0000 (19:35 -0700)]
Close #18508 -- fix _value2member_map to always have the member's value
Richard Oudkerk [Fri, 19 Jul 2013 21:54:37 +0000 (22:54 +0100)]
Merge.
Richard Oudkerk [Fri, 19 Jul 2013 21:53:42 +0000 (22:53 +0100)]
Prevent dangling threads/process warning for test_multiprocessing.
Victor Stinner [Fri, 19 Jul 2013 21:06:21 +0000 (23:06 +0200)]
Issue #18408: Fix list_ass_slice(), handle list_resize() failure
I tested the patch manually by injecting a fault using gdb: list items are
correctly restored on failure.
Vinay Sajip [Fri, 19 Jul 2013 10:03:55 +0000 (11:03 +0100)]
Closes #18479: Changed venv Activate.ps1 to make deactivate a function, and removed Deactivate.ps1.
Ronald Oussoren [Fri, 19 Jul 2013 09:14:05 +0000 (11:14 +0200)]
(3.3->default): #18480: Add missing PyType_Ready call to _elementtree extension
Ronald Oussoren [Fri, 19 Jul 2013 09:11:25 +0000 (11:11 +0200)]
#18480: Add missing PyType_Ready call to _elementtree extension
Ethan Furman [Fri, 19 Jul 2013 00:05:39 +0000 (17:05 -0700)]
closes issue18042 -- a `unique` decorator is added to enum.py
The docs also clarify the 'Interesting Example' duplicate-free enum is for
demonstration purposes.
Victor Stinner [Thu, 18 Jul 2013 21:58:08 +0000 (23:58 +0200)]
(Merge 3.3) Fix posix_chflags(): return_value was uninitialized when
follow_symlinks=False whereas the fchmodat() function is not avaialble.
Victor Stinner [Thu, 18 Jul 2013 21:57:35 +0000 (23:57 +0200)]
Fix posix_chflags(): return_value was uninitialized when follow_symlinks=False
whereas the fchmodat() function is not avaialble.
Victor Stinner [Thu, 18 Jul 2013 21:17:01 +0000 (23:17 +0200)]
Issue #18501, #18408: Fix expat handlers in pyexpat, don't call Python
functions if a Python exception was raised
Victor Stinner [Thu, 18 Jul 2013 20:46:14 +0000 (22:46 +0200)]
Issue #18408: Fix _elementtree.c, don't call Python function from an expat
handler if a Python exception is set
Victor Stinner [Thu, 18 Jul 2013 00:43:47 +0000 (02:43 +0200)]
Fix a compiler warning on FreeBSD
Modules/python.c:40: warning: ISO C90 forbids mixed declarations and code
Victor Stinner [Thu, 18 Jul 2013 00:31:21 +0000 (02:31 +0200)]
Issue #18408: Fix PyInit__curses_panel(), handle import_curses() failure
Don't call PyErr_NewException() if an exception is set, or type_call() would
fail with an assertion error.
Victor Stinner [Wed, 17 Jul 2013 23:49:30 +0000 (01:49 +0200)]
Issue #18408: PyObject_Str(), PyObject_Repr() and type_call() now fail with an
assertion error if they are called with an exception set (PyErr_Occurred()).
As PyEval_EvalFrameEx(), they may clear the current exception and so the caller
looses its exception.
Victor Stinner [Wed, 17 Jul 2013 23:54:37 +0000 (01:54 +0200)]
Issue #18408: Fix _pysqlite_fetch_one_row(), in debug mode, don't call
type_call() with an exception set
Victor Stinner [Wed, 17 Jul 2013 23:41:08 +0000 (01:41 +0200)]
Issue #18408: PyEval_EvalFrameEx() and PyEval_CallObjectWithKeywords() now fail
with an assertion error if they are called with an exception set
(PyErr_Occurred()).
If these functions are called with an exception set, the exception may be
cleared and so the caller looses its exception.
Add also assertions to PyEval_CallObjectWithKeywords() and call_function() to
check if the function succeed with no exception set, or the function failed
with an exception set.
Victor Stinner [Wed, 17 Jul 2013 23:42:04 +0000 (01:42 +0200)]
Issue #18488: _pysqlite_final_callback() should not clear the exception set by
the last call to the step() method of a user function
Victor Stinner [Wed, 17 Jul 2013 23:00:45 +0000 (01:00 +0200)]
Issue #18408: Fix dict_repr(), don't call PyObject_Repr() with an exception set
PyObject_Repr() can removes the current exception. For example, module_repr()
calls PyErr_Clear() if calling loader.module_repr(mod) failed.
Victor Stinner [Wed, 17 Jul 2013 23:12:35 +0000 (01:12 +0200)]
Issue #18408: Fix array_tolist(), handle PyList_SetItem() failure
Victor Stinner [Wed, 17 Jul 2013 21:01:30 +0000 (23:01 +0200)]
Issue #18408: Fix array_index(), handle getarrayitem() failure
Victor Stinner [Wed, 17 Jul 2013 20:33:42 +0000 (22:33 +0200)]
longobject.c: add an assertion to ensure that MEDIUM_VALUE() is only called on
small integers (0 or 1 digit)
Victor Stinner [Wed, 17 Jul 2013 20:31:17 +0000 (22:31 +0200)]
Issue #18408: Rewrite NEGATE() macro in longobject.c to handle PyLong_FromLong() failure
Victor Stinner [Wed, 17 Jul 2013 20:01:37 +0000 (22:01 +0200)]
Issue #18408: Fix PyType_Ready(), handle _PyDict_SetItemId() failure
Victor Stinner [Wed, 17 Jul 2013 19:58:41 +0000 (21:58 +0200)]
Issue #18408: Fix Py_ReprEnter(), handle PyList_Append() failure
Victor Stinner [Wed, 17 Jul 2013 19:58:01 +0000 (21:58 +0200)]
Issue #18408: Fix listpop(), handle list_ass_slice() failure
Victor Stinner [Wed, 17 Jul 2013 19:54:25 +0000 (21:54 +0200)]
Issue #18408: Fix PyErr_SetImportError(), handle PyDict_SetItemString() failure
Victor Stinner [Wed, 17 Jul 2013 19:53:23 +0000 (21:53 +0200)]
Issue #18408: Fix _PyImport_LoadDynamicModule(), handle PyUnicode_FromFormat() failure
Victor Stinner [Wed, 17 Jul 2013 19:51:42 +0000 (21:51 +0200)]
Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set value to NULL
Victor Stinner [Wed, 17 Jul 2013 19:50:21 +0000 (21:50 +0200)]
Issue #18408: Fix heapq.heappop(), handle PyList_SetSlice() failure
Victor Stinner [Wed, 17 Jul 2013 19:42:45 +0000 (21:42 +0200)]
Issue #18408: Fix time.tzset(), detect exception when calling PyInit_timezone()
Victor Stinner [Wed, 17 Jul 2013 11:41:39 +0000 (13:41 +0200)]
Issue #18408: Fix structseq_reduce(), handle PyDict_SetItemString() failure
Serhiy Storchaka [Wed, 17 Jul 2013 10:44:17 +0000 (13:44 +0300)]
Issue #18266: test_largefile now works with unittest test discovery and
supports running only selected tests. Patch by Zachary Ware.
Serhiy Storchaka [Wed, 17 Jul 2013 10:42:24 +0000 (13:42 +0300)]
Issue #18266: test_largefile now works with unittest test discovery and
supports running only selected tests. Patch by Zachary Ware.
Serhiy Storchaka [Wed, 17 Jul 2013 10:26:48 +0000 (13:26 +0300)]
Issue #17767: test_locale now works with unittest test discovery.
Original patch by Zachary Ware.
Serhiy Storchaka [Wed, 17 Jul 2013 10:23:45 +0000 (13:23 +0300)]
Issue #17767: test_locale now works with unittest test discovery.
Original patch by Zachary Ware.
Victor Stinner [Tue, 16 Jul 2013 23:22:45 +0000 (01:22 +0200)]
Close #18469: Replace PyDict_GetItemString() with _PyDict_GetItemId() in structseq.c
_PyDict_GetItemId() is more efficient: it only builds the Unicode string once.
Identifiers (dictionary keys) are now created at Python initialization, and if
the creation failed, Python does exit with a fatal error.
Before, PyDict_GetItemString() failure was not handled: structseq_new() could
call PyObject_GC_NewVar() with a negative size, and structseq_dealloc() could
also crash.
Victor Stinner [Tue, 16 Jul 2013 23:10:04 +0000 (01:10 +0200)]
Issue #18408: Mention changes in Misc/NEWS
Victor Stinner [Tue, 16 Jul 2013 22:57:58 +0000 (00:57 +0200)]
Issue #18408: Handle PyArena_AddPyObject() failure in ast.c
PyList_Append() (called by PyArena_AddPyObject()) can fail because of a
MemoryError for example.
Victor Stinner [Tue, 16 Jul 2013 22:55:57 +0000 (00:55 +0200)]
Issue #18408: Fix locale.localeconv(), handle PyDict_SetItemString() failure
Victor Stinner [Tue, 16 Jul 2013 22:44:53 +0000 (00:44 +0200)]
Issue #18408: Fix PyErr_NormalizeException(), handle PyObject_IsSubclass() failure
PyObject_IsSubclass() can fail and raise a new exception!
Victor Stinner [Tue, 16 Jul 2013 22:17:15 +0000 (00:17 +0200)]
Issue #18408: Fix Python-ast.c: handle init_types() failure (ex: MemoryError)