mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-111178: fix UBSan failures for RemoteUnwinderObject
(#135539)
This commit is contained in:
parent
076f87468a
commit
54e29ea4eb
1 changed files with 4 additions and 1 deletions
|
@ -214,6 +214,8 @@ typedef struct {
|
|||
#endif
|
||||
} RemoteUnwinderObject;
|
||||
|
||||
#define RemoteUnwinder_CAST(op) ((RemoteUnwinderObject *)(op))
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int lineno;
|
||||
|
@ -2913,8 +2915,9 @@ static PyMethodDef RemoteUnwinder_methods[] = {
|
|||
};
|
||||
|
||||
static void
|
||||
RemoteUnwinder_dealloc(RemoteUnwinderObject *self)
|
||||
RemoteUnwinder_dealloc(PyObject *op)
|
||||
{
|
||||
RemoteUnwinderObject *self = RemoteUnwinder_CAST(op);
|
||||
PyTypeObject *tp = Py_TYPE(self);
|
||||
if (self->code_object_cache) {
|
||||
_Py_hashtable_destroy(self->code_object_cache);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue