Commit 10bc0f6e authored by Benjamin Peterson's avatar Benjamin Peterson

merge 3.3 (#27774)

parents 432ea4ff 3a27b085
...@@ -16,6 +16,8 @@ Library ...@@ -16,6 +16,8 @@ Library
- In the curses module, raise an error if window.getstr() or window.instr() is - In the curses module, raise an error if window.getstr() or window.instr() is
passed a negative value. passed a negative value.
- Issue #27774: Fix possible Py_DECREF on unowned object in _sre.
- Issue #27760: Fix possible integer overflow in binascii.b2a_qp. - Issue #27760: Fix possible integer overflow in binascii.b2a_qp.
- Issue #27758: Fix possible integer overflow in the _csv module for large record - Issue #27758: Fix possible integer overflow in the _csv module for large record
......
...@@ -2137,10 +2137,8 @@ match_groupdict(MatchObject* self, PyObject* args, PyObject* kw) ...@@ -2137,10 +2137,8 @@ match_groupdict(MatchObject* self, PyObject* args, PyObject* kw)
if (!key) if (!key)
goto failed; goto failed;
value = match_getslice(self, key, def); value = match_getslice(self, key, def);
if (!value) { if (!value)
Py_DECREF(key);
goto failed; goto failed;
}
status = PyDict_SetItem(result, key, value); status = PyDict_SetItem(result, key, value);
Py_DECREF(value); Py_DECREF(value);
if (status < 0) if (status < 0)
......
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