[Python-checkins] gh-104190: fix ubsan crash (#104191)

kumaraditya303 webhook-mailer at python.org
Fri May 5 05:54:10 EDT 2023


https://github.com/python/cpython/commit/163034515a81f137d1dd7d289dc048eb0f1cd424
commit: 163034515a81f137d1dd7d289dc048eb0f1cd424
branch: main
author: sunmy2019 <59365878+sunmy2019 at users.noreply.github.com>
committer: kumaraditya303 <59607654+kumaraditya303 at users.noreply.github.com>
date: 2023-05-05T15:24:03+05:30
summary:

gh-104190: fix ubsan crash (#104191)

files:
M Modules/_testcapimodule.c

diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index ae70a33eb4d1..376f04f23e32 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -4221,7 +4221,7 @@ PyInit__testcapi(void)
         return NULL;
     }
     int ret = PyModule_AddType(m, (PyTypeObject*)ObjExtraData_Type);
-    Py_DECREF(&ObjExtraData_Type);
+    Py_DECREF(ObjExtraData_Type);
     if (ret < 0) {
         return NULL;
     }



More information about the Python-checkins mailing list