diff options
author | Georg Brandl <georg@python.org> | 2009-03-31 04:16:10 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-03-31 04:16:10 (GMT) |
commit | ab6f2f6eb680c40750f05de4bc7cf8964b733b74 (patch) | |
tree | 77f3d4c83191b1cc077683af03a94681ce917cdb /Misc | |
parent | 71095ea4ce1b8584d89047f2256b183d40cc9d35 (diff) | |
download | cpython-ab6f2f6eb680c40750f05de4bc7cf8964b733b74.zip cpython-ab6f2f6eb680c40750f05de4bc7cf8964b733b74.tar.gz cpython-ab6f2f6eb680c40750f05de4bc7cf8964b733b74.tar.bz2 |
Fix segfaults when running test_exceptions with coverage tracing, caused by wrongly defining Exception.__context__ as a T_OBJECT structmember which does not set the member to NULL on None assignment, and generally does not do type checks. This could be used to crash the interpreter by setting any object to __context__. The same applies to __cause__. Also document the PyException_* functions.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,5 @@ -+++++++++++ Python News ++++++++++++ +Python News +++++++++++ (editors: check NEWS.help for information about editing NEWS using ReST.) @@ -11,6 +12,9 @@ What's New in Python 3.1 alpha 2? Core and Builtins ----------------- +- Fix a segfault when running test_exceptions with coverage, caused by + insufficient checks in accessors of Exception.__context__. + - Issue #5604: non-ASCII characters in module name passed to imp.find_module() were converted to UTF-8 while the path is converted to the default filesystem encoding, causing nonsense. |