Kaydet (Commit) 9b4a1b1e authored tarafından Zackery Spytz's avatar Zackery Spytz Kaydeden (comit) Miss Islington (bot)

bpo-36374: Fix a possible null pointer dereference (GH-12449)



https://bugs.python.org/issue36374
üst fa153768
Fix a possible null pointer dereference in ``merge_consts_recursive()``.
Patch by Zackery Spytz.
......@@ -1210,7 +1210,7 @@ merge_consts_recursive(struct compiler *c, PyObject *o)
PyObject *t = PyDict_SetDefault(c->c_const_cache, key, key);
if (t != key) {
// o is registered in c_const_cache. Just use it.
Py_INCREF(t);
Py_XINCREF(t);
Py_DECREF(key);
return t;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment