• Georg Brandl's avatar
    Fix segfaults when running test_exceptions with coverage tracing, caused by... · ca7864d3
    Georg Brandl authored
    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.
    ca7864d3
NEWS 27.3 KB