summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Fix potential NULL pointer dereferencing in ast moduleChristian Heimes2013-07-241-1/+1
|\ | | | | | | CID 719690
| * Fix potential NULL pointer dereferencing in ast moduleChristian Heimes2013-07-241-1/+1
| | | | | | | | CID 719690
* | merge 3.3Benjamin Peterson2013-07-231-1/+2
|\ \ | |/
| * return NULL hereBenjamin Peterson2013-07-231-1/+2
| |
* | Issue #18520: Fix initstdio(), handle PySys_SetObject() failureVictor Stinner2013-07-221-2/+8
| |
* | Issue #18520: initsite() is a little bit more verbose when import site failsVictor Stinner2013-07-221-0/+1
| |
* | Issue #18520: Fix _PySys_Init(), handle PyDict_SetItemString() errorsVictor Stinner2013-07-221-17/+21
| |
* | Issue #18520: PyErr_NoMemory() now fails with a fatal error if it is calledVictor Stinner2013-07-221-0/+6
| | | | | | | | before PyExc_MemoryError has been initialized by _PyExc_Init()
* | Issue #18520: Add a new PyStructSequence_InitType2() function, same thanVictor Stinner2013-07-223-10/+22
| | | | | | | | | | | | | | | | 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
* | Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],Christian Heimes2013-07-221-3/+4
|\ \ | |/ | | | | prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
| * Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],Christian Heimes2013-07-221-3/+4
| | | | | | | | prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
* | merge 3.3Benjamin Peterson2013-07-211-1/+1
|\ \ | |/
| * fix spacingBenjamin Peterson2013-07-211-1/+1
| |
* | merge 3.3Benjamin Peterson2013-07-211-2/+2
|\ \ | |/
| * let's not return NULL from functions that should return intsBenjamin Peterson2013-07-211-2/+2
| |
* | Issue #18520: Fix initsigs(), handle PyOS_InitInterrupts() errorVictor Stinner2013-07-211-0/+3
| | | | | | | | PyOS_InitInterrupts() can raise error when importing the signal module
* | Check return value of lseek() in _Py_DisplaySourceLine().Christian Heimes2013-07-211-1/+7
|\ \ | |/ | | | | | | Also use portable SEEK_SET instead of 0. CID 1040639
| * Check return value of lseek() in _Py_DisplaySourceLine().Christian Heimes2013-07-211-1/+7
| | | | | | | | | | Also use portable SEEK_SET instead of 0. CID 1040639
* | Check return value of PyObject_AsFileDescriptor() in _Py_DisplaySourceLine() ↵Christian Heimes2013-07-201-0/+5
|\ \ | |/ | | | | | | | | for error CID 486768
| * Check return value of PyObject_AsFileDescriptor() in _Py_DisplaySourceLine() ↵Christian Heimes2013-07-201-0/+5
| | | | | | | | | | | | for error CID 486768
* | Check return value of fstat() in _PyImport_GetDynLoadFunc()Christian Heimes2013-07-201-1/+3
|\ \ | |/ | | | | CID 486250
| * Check return value of fstat() in _PyImport_GetDynLoadFunc()Christian Heimes2013-07-201-1/+3
| | | | | | | | CID 486250
* | Add missing check of PyDict_SetItem()'s return value in ↵Christian Heimes2013-07-201-1/+4
|\ \ | |/ | | | | | | | | _PyImport_FindExtensionObject() CID 486649
| * Add missing check of PyDict_SetItem()'s return value in ↵Christian Heimes2013-07-201-1/+4
| | | | | | | | | | | | _PyImport_FindExtensionObject() CID 486649
* | Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()Christian Heimes2013-07-201-1/+3
|\ \ | |/ | | | | CID 486647
| * Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()Christian Heimes2013-07-201-1/+3
| | | | | | | | CID 486647
* | Issue #18408: PyEval_EvalFrameEx() and PyEval_CallObjectWithKeywords() now failVictor Stinner2013-07-172-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Issue #18408: Fix PyErr_SetImportError(), handle PyDict_SetItemString() failureVictor Stinner2013-07-171-2/+5
| |
* | Issue #18408: Fix _PyImport_LoadDynamicModule(), handle ↵Victor Stinner2013-07-171-0/+2
| | | | | | | | PyUnicode_FromFormat() failure
* | Issue #18408: Fix ast_for_atom(), PyErr_Fetch(&type, &value, &tback) can set ↵Victor Stinner2013-07-171-1/+1
| | | | | | | | value to NULL
* | Close #18469: Replace PyDict_GetItemString() with _PyDict_GetItemId() in ↵Victor Stinner2013-07-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Issue #18408: Handle PyArena_AddPyObject() failure in ast.cVictor Stinner2013-07-161-5/+20
| | | | | | | | | | PyList_Append() (called by PyArena_AddPyObject()) can fail because of a MemoryError for example.
* | Issue #18408: Fix PyErr_NormalizeException(), handle PyObject_IsSubclass() ↵Victor Stinner2013-07-161-1/+10
| | | | | | | | | | | | failure PyObject_IsSubclass() can fail and raise a new exception!
* | Issue #18408: Fix Python-ast.c: handle init_types() failure (ex: MemoryError)Victor Stinner2013-07-161-3/+6
| |
* | Issue #18408: handle PySys_GetObject() failure, raise a RuntimeErrorVictor Stinner2013-07-162-6/+13
| |
* | Issue #18408: Fix show_warning(), clear also the exception raised byVictor Stinner2013-07-151-3/+3
| | | | | | | | | | | | | | | | _Py_DisplaySourceLine() For example, _PyGC_DumpShutdownStats() calls PyErr_WarnExplicitFormat() while the import machinery does not work anymore, _Py_DisplaySourceLine() fails when trying to import the io module.
* | Issue #18408: add more assertions on PyErr_Occurred() in ceval.c to detect bugsVictor Stinner2013-07-151-0/+4
| | | | | | | | earlier
* | Issue #18408: Fix _Py_DisplaySourceLine()Victor Stinner2013-07-151-1/+3
| | | | | | | | | | Report _Py_FindSourceFile() error, so the error is cleared; and clear io.open(filename) exception on failure.
* | Issue #18408: Fix PyEval_EvalFrameEx() for MemoryErrorVictor Stinner2013-07-151-1/+4
| | | | | | | | | | Don't pass a NULL traceback to PyException_SetTraceback(): pass Py_None. Passing NULL would raise a new exception.
* | Issue #18342: Use the repr of a module name for ``from ... importBrett Cannon2013-07-121-1/+1
| | | | | | | | | | | | | | | | ...`` when an ImportError occurs. Other cases had already been switched over to using the repr. Thanks to Tomasz Maćkowiak for the patch.
* | Issue #18415: Normalize what type of quotes are used with stringBrett Cannon2013-07-121-6/+6
| | | | | | | | | | | | | | constants in importlib._bootstrap. Along the way clean up from string interpolation to use the repr explicitly. Initial patch by Madison May.
* | Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() nowVictor Stinner2013-07-111-0/+1
| | | | | | | | fails with an assertion error
* | Issue #18408: ceval.c: in debug mode, convert the PyErr_Occurred() check onVictor Stinner2013-07-111-0/+4
| | | | | | | | exception (when getting NULL) to an assertion to detect bugs earlier
* | Issue #18408: normalizestring() now raises MemoryError on memory allocation ↵Victor Stinner2013-07-111-1/+1
| | | | | | | | failure
* | Issue #18408: Fix compiler_import() to handle PyUnicode_Substring() failure ↵Victor Stinner2013-07-111-1/+4
| | | | | | | | properly
* | Issue #18408: ste_new() initialize all attributes before handling errorVictor Stinner2013-07-111-13/+9
| | | | | | | | If an attribute is not initialized, the destructor can crash
* | 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
| |