]>
granicus.if.org Git - python/log
Christian Heimes [Fri, 26 Jul 2013 13:51:35 +0000 (15:51 +0200)]
Check return value of PyLong_FromLong(X509_get_version()). It might be NULL if
X509_get_version() grows beyond our small int cache.
CID
1058279
Christian Heimes [Fri, 26 Jul 2013 13:51:18 +0000 (15:51 +0200)]
Check return value of PyLong_FromLong(X509_get_version()). It might be NULL if
X509_get_version() grows beyond our small int cache.
CID
1058279
Christian Heimes [Fri, 26 Jul 2013 13:26:26 +0000 (15:26 +0200)]
remove surplus and wrong Py_DECREF() introduced in
33891989c9cf
Christian Heimes [Fri, 26 Jul 2013 13:26:18 +0000 (15:26 +0200)]
remove surplus and wrong Py_DECREF() introduced in
33891989c9cf
Christian Heimes [Fri, 26 Jul 2013 13:07:34 +0000 (15:07 +0200)]
Fix memory leaks and add checks for failing malloc() calls to testcapi module
CID
1058288
Fix declaration-after-statement of
d49f65ff4f3c
Christian Heimes [Fri, 26 Jul 2013 13:06:48 +0000 (15:06 +0200)]
Fix declaration-after-statement of
d49f65ff4f3c
Christian Heimes [Fri, 26 Jul 2013 13:03:50 +0000 (15:03 +0200)]
Fix memory leaks and add checks for failing malloc() calls to testcapi module
CID
1058288
Christian Heimes [Fri, 26 Jul 2013 12:52:26 +0000 (14:52 +0200)]
Fix possible NULL pointer dereferences in testcapi module
CID
1058280
CID
1058282
CID
1058284
Christian Heimes [Fri, 26 Jul 2013 12:52:18 +0000 (14:52 +0200)]
Fix possible NULL pointer dereferences in testcapi module
CID
1058280
CID
1058282
CID
1058284
Christian Heimes [Fri, 26 Jul 2013 12:46:02 +0000 (14:46 +0200)]
Fix possible NULL pointer dereference in PyCurses_Start_Color()
CID
1058276
Christian Heimes [Fri, 26 Jul 2013 12:45:37 +0000 (14:45 +0200)]
Fix possible NULL pointer dereference in PyCurses_Start_Color()
CID
1058276
Brett Cannon [Thu, 25 Jul 2013 21:36:15 +0000 (17:36 -0400)]
merge for issue #18556
Brett Cannon [Thu, 25 Jul 2013 21:34:00 +0000 (17:34 -0400)]
Issue #18556: Check the return value for PyUnicode_AsWideChar() in
U_set() from ctypes.
CID #486657
Ethan Furman [Thu, 25 Jul 2013 20:50:45 +0000 (13:50 -0700)]
Close #18545: now only executes member_type if no _value_ is assigned in __new__.
R David Murray [Thu, 25 Jul 2013 20:12:01 +0000 (16:12 -0400)]
#17818: aifc.getparams now returns a namedtuple.
Patch by Claudiu Popa.
Guido van Rossum [Thu, 25 Jul 2013 18:55:41 +0000 (11:55 -0700)]
Fix typo on MutableSequence docstring.
R David Murray [Thu, 25 Jul 2013 17:24:40 +0000 (13:24 -0400)]
Merge #15130: remove repeat of abstract paragraph from socket howto body.
R David Murray [Thu, 25 Jul 2013 17:24:15 +0000 (13:24 -0400)]
#15130: remove repeat of abstract paragraph from socket howto body.
Patch by Tshepang Lekhonkhobe.
R David Murray [Thu, 25 Jul 2013 16:15:28 +0000 (12:15 -0400)]
#18503: small cleanups in test_email.
Patch by Vajrasky Kok.
R David Murray [Thu, 25 Jul 2013 16:11:55 +0000 (12:11 -0400)]
#18503: small cleanups in test_email.
Patch by Vajrasky Kok.
Vinay Sajip [Thu, 25 Jul 2013 10:20:55 +0000 (11:20 +0100)]
Closes #18491: Added script-wrapper functionality to launcher source (but not to executable).
Christian Heimes [Thu, 25 Jul 2013 09:47:25 +0000 (11:47 +0200)]
Issue #18549: Eliminate dead code in socket_ntohl().
CID 982369
Christian Heimes [Thu, 25 Jul 2013 09:46:10 +0000 (11:46 +0200)]
Issue #18549: Eliminate dead code in socket_ntohl().
CID 982369
Ezio Melotti [Thu, 25 Jul 2013 03:24:47 +0000 (05:24 +0200)]
#14853: merge with 3.3.
Ezio Melotti [Thu, 25 Jul 2013 03:21:00 +0000 (05:21 +0200)]
#14853: remove test that was making too many assumptions about stdin. Patch by Elena Oat.
Ezio Melotti [Thu, 25 Jul 2013 03:04:50 +0000 (05:04 +0200)]
#16937: merge with 3.3.
Ezio Melotti [Thu, 25 Jul 2013 03:04:02 +0000 (05:04 +0200)]
#16937: document that stdin is always buffered, even when -u is used. Patch by Elena Oat.
Christian Heimes [Wed, 24 Jul 2013 19:02:50 +0000 (21:02 +0200)]
Fix potential NULL pointer dereferencing in ast module
CID 719690
Christian Heimes [Wed, 24 Jul 2013 19:02:17 +0000 (21:02 +0200)]
Fix potential NULL pointer dereferencing in ast module
CID 719690
Vinay Sajip [Wed, 24 Jul 2013 16:52:58 +0000 (17:52 +0100)]
Closes #18541: merged update from 3.3.
Vinay Sajip [Wed, 24 Jul 2013 16:52:01 +0000 (17:52 +0100)]
Issue #18541: simplified LoggerAdapter example.
Benjamin Peterson [Tue, 23 Jul 2013 05:08:17 +0000 (22:08 -0700)]
merge 3.3
Benjamin Peterson [Tue, 23 Jul 2013 05:08:09 +0000 (22:08 -0700)]
return NULL here
Brian Curtin [Tue, 23 Jul 2013 00:05:48 +0000 (19:05 -0500)]
Add in a comment that was removed in
240adc564539 (requested by Victor Stinner)
Christian Heimes [Tue, 23 Jul 2013 00:01:33 +0000 (02:01 +0200)]
Remove duplicate entry for sdigit.
I fixed it before the checkin but forgot to save... :wq
Christian Heimes [Mon, 22 Jul 2013 23:31:15 +0000 (01:31 +0200)]
Add modeling file for Coverity Scan.
The modeling file avoids false positive reports.
Victor Stinner [Mon, 22 Jul 2013 21:55:19 +0000 (23:55 +0200)]
Issue #18520: Fix initstdio(), handle PySys_SetObject() failure
Victor Stinner [Mon, 22 Jul 2013 21:50:57 +0000 (23:50 +0200)]
Issue #18520: Fix _PyDict_GetItemId(), suppress _PyUnicode_FromId() error
As PyDict_GetItem(), _PyDict_GetItemId() suppresses all errors that may occur,
for historical reasons.
Victor Stinner [Mon, 22 Jul 2013 21:04:55 +0000 (23:04 +0200)]
Issue #18520: Fix PyFunction_NewWithQualName() error handling
Victor Stinner [Mon, 22 Jul 2013 21:02:05 +0000 (23:02 +0200)]
Reindent PyFunction_NewWithQualName()
Victor Stinner [Mon, 22 Jul 2013 20:53:28 +0000 (22:53 +0200)]
Issue #18520: initsite() is a little bit more verbose when import site fails
Victor Stinner [Mon, 22 Jul 2013 20:40:00 +0000 (22:40 +0200)]
Issue #18520: Fix _PySys_Init(), handle PyDict_SetItemString() errors
Victor Stinner [Mon, 22 Jul 2013 20:28:37 +0000 (22:28 +0200)]
Issue #18520: PyErr_NoMemory() now fails with a fatal error if it is called
before PyExc_MemoryError has been initialized by _PyExc_Init()
Victor Stinner [Mon, 22 Jul 2013 20:24:54 +0000 (22:24 +0200)]
Issue #18520: Add a new PyStructSequence_InitType2() function, same than
PyStructSequence_InitType() except that it has a return value (0 on success,
-1 on error).
* PyStructSequence_InitType2() now raises MemoryError on memory allocation failure
* Fix also some calls to PyDict_SetItemString(): handle error
Brian Curtin [Mon, 22 Jul 2013 18:08:21 +0000 (13:08 -0500)]
Merge
Brian Curtin [Mon, 22 Jul 2013 18:07:52 +0000 (13:07 -0500)]
Fix #18530. Remove extra stat call from posixpath.ismount
Serhiy Storchaka [Mon, 22 Jul 2013 18:02:14 +0000 (21:02 +0300)]
Issue #17944: test_zipfile now discoverable and uses subclassing to
generate tests for different compression types. Fixed a bug with skipping
some tests due to use of exhausted iterators.
Serhiy Storchaka [Mon, 22 Jul 2013 18:00:11 +0000 (21:00 +0300)]
Issue #17944: test_zipfile now discoverable and uses subclassing to
generate tests for different compression types. Fixed a bug with skipping
some tests due to use of exhausted iterators.
Christian Heimes [Mon, 22 Jul 2013 14:34:28 +0000 (16:34 +0200)]
Some compilers complain about 'control reaches end of non-void function'
because they don't understand that Py_FatalError() terminates the program.
Christian Heimes [Mon, 22 Jul 2013 14:34:13 +0000 (16:34 +0200)]
Some compilers complain about 'control reaches end of non-void function'
because they don't understand that Py_FatalError() terminates the program.
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