Victor Stinner
da2cbb4fc8
Issue #15893 : Remove dead code
13 years ago
Victor Stinner
36577e4e8c
Issue #15893 : frozenmain.c now handles PyMem_Malloc() failure
13 years ago
Christian Heimes
70c94e7896
Issue #18552 : Check return value of PyArena_AddPyObject() in obj2ast_object().
13 years ago
Victor Stinner
1acc129d48
Parser/asdl_c.py: use Py_CLEAR()
13 years ago
Victor Stinner
ce72e1ce6c
According to the PEP 7, C code must "use 4-space indents"
Replace 8 spaces with 4.
13 years ago
Christian Heimes
704e2d374f
Issue #18560 : Fix potential NULL pointer dereference in sum()
13 years ago
Christian Heimes
72f562f719
Fix potential NULL pointer dereferencing in ast module
CID 719690
13 years ago
Benjamin Peterson
7d28b6b379
return NULL here
13 years ago
Christian Heimes
60a6067709
Issue #15905 : Fix theoretical buffer overflow in handling of sys.argv[0],
prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
13 years ago
Benjamin Peterson
0f9b7d32c7
fix spacing
13 years ago
Benjamin Peterson
04b01dc8f7
let's not return NULL from functions that should return ints
13 years ago
Christian Heimes
1f34729f42
Check return value of lseek() in _Py_DisplaySourceLine().
Also use portable SEEK_SET instead of 0.
CID 1040639
13 years ago
Christian Heimes
8c077bc03e
Check return value of PyObject_AsFileDescriptor() in _Py_DisplaySourceLine() for error
CID 486768
13 years ago
Christian Heimes
27c4c3ec79
Check return value of fstat() in _PyImport_GetDynLoadFunc()
CID 486250
13 years ago
Christian Heimes
09ca794afe
Add missing check of PyDict_SetItem()'s return value in _PyImport_FindExtensionObject()
CID 486649
13 years ago
Christian Heimes
0bd447f847
Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()
CID 486647
13 years ago
Serhiy Storchaka
3641a74e1c
Issue #17872 : Fix a segfault in marshal.load() when input stream returns
more bytes than requested.
13 years ago
Serhiy Storchaka
dfde2151ed
Fix reference leaks introduced by the patch for issue #5308 .
13 years ago
Christian Heimes
7ce57d67c9
Issue #18426 : improve exception message. Courtesy of Amaury
13 years ago
Christian Heimes
848ee099f5
Issue #18426 : Fix NULL pointer dereference in C extension import when
PyModule_GetDef() returns an error.
13 years ago
R David Murray
87ead1138d
#18424 : PEP8ify the tense of the sum docstring.
13 years ago
Brett Cannon
a53cca3fea
Issue #18351 : Fix various issues with
importlib._bootstrap._get_sourcefile().
Thanks to its only use by the C API, it was never properly tested
until now.
Thanks to Neal Norwitz for discovering the bug and Madison May for the patch.
13 years ago
Christian Heimes
b9dbc7d6e1
Issue #18328 : Reorder ops in PyThreadState_Delete*() functions. Now the
tstate is first removed from TLS and then deallocated.
CID 1019639 (#1 of 1): Use after free (USE_AFTER_FREE)
use_after_free: Using freed pointer tstate.
13 years ago
Victor Stinner
2f084ecfe7
Issue #18137 : Detect integer overflow on precision in float.__format__() and
complex.__format__().
13 years ago
Antoine Pitrou
9a00e0a41c
Issue #18256 : Compilation fix for recent AIX releases. Patch by David Edelsohn.
13 years ago
Brett Cannon
1d75382e81
Fix a misnaming of a method and an argument
13 years ago
Richard Oudkerk
409f90237c
Issue #18180 : Fix ref leak in _PyImport_GetDynLoadWindows().
13 years ago
Benjamin Peterson
e2135c6158
move definition to top of block
13 years ago
Benjamin Peterson
1e93b06007
complain about "global __class__" in a class body ( closes #17983 )
13 years ago
Benjamin Peterson
e1b4cbc422
when arguments are cells clear the locals slot (backport of #17927 )
13 years ago
Antoine Pitrou
fd417cc54b
Fix crash caused by 8c1385205a35
(thanks Arfrever for reporting).
13 years ago
Antoine Pitrou
957a23b088
Issue #17408 : Avoid using an obsolete instance of the copyreg module when the interpreter is shutdown and then started again.
13 years ago
Benjamin Peterson
fe1b22af0a
ignore errors when trying to fetch sys.stdin.encoding ( closes #17863 )
13 years ago
Benjamin Peterson
7d110042c5
raise an ImportError (rather than fatal) when __import__ is not found in __builtins__ ( closes #17867 )
13 years ago
R David Murray
3583761bcd
#17413 : make sure settrace funcs get passed exception instances for 'value'.
Patch by Ingrid Cheung and Brendan McLoughlin.
13 years ago
Ezio Melotti
1b6424fc4b
Fix indentation.
13 years ago
Serhiy Storchaka
278d03bd66
Revert a premature patch for issue #14010 (changeset aaaf36026511).
13 years ago
Antoine Pitrou
55bff89190
Issue #17645 : convert an assert() into a proper exception in _Py_Mangle().
13 years ago
Serhiy Storchaka
e8f706eda7
Issue #14010 : Fix a crash when iterating or deleting deeply nested filters
(builting and in itertools module, i.e. map(), itertools.chain(), etc).
13 years ago
Richard Oudkerk
614c578dec
Issue #17619 : Make input() check for Ctrl-C correctly on Windows.
13 years ago
Brett Cannon
f8ffec0617
Issue #17357 : Add missing verbosity messages when running under
-v/-vv that were lost in the transition to importlib.
13 years ago
Gregory P. Smith
b803c6c4b8
Fixes issue4653 - Correctly specify the buffer size to FormatMessageW and
correctly check for errors on two CreateFileMapping calls.
13 years ago
Georg Brandl
a7d2f0061f
Copyright update to 2013.
13 years ago
Kristján Valur Jónsson
dc32d18d11
Issue #15038 : Fixing the condition broadcast and docs.
13 years ago
Ezio Melotti
795c10b3b6
Rebuild importlib.h after the changes introduced in 0f65bf6063ca.
13 years ago
Ezio Melotti
b19ed57d8d
#17178 : update any()/all() docstrings to document their behavior with empty iterables. Patch by Ankur Ankan.
13 years ago
Ezio Melotti
94bf697b01
#17178 : update any()/all() docstrings to document their behavior with empty iterables. Patch by Ankur Ankan.
13 years ago
Serhiy Storchaka
7e0191170e
Issue #5308 : Raise ValueError when marshalling too large object (a sequence
with size >= 2**31), instead of producing illegal marshal data.
13 years ago
Serhiy Storchaka
34fe1b7a3d
Issue #5308 : Raise ValueError when marshalling too large object (a sequence
with size >= 2**31), instead of producing illegal marshal data.
13 years ago
Serhiy Storchaka
5e61f14c6d
Issue #12983 : Bytes literals with invalid \x escape now raise a SyntaxError
and a full traceback including line number.
13 years ago