mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +00:00
Patch (by Andrew Kuchling of course) to prevent named back references
in the pattern to wear out the reference count on small integers.
This commit is contained in:
parent
f0413d4841
commit
1eadb41036
1 changed files with 1 additions and 1 deletions
|
|
@ -1832,7 +1832,7 @@ for (;; ptr++)
|
||||||
}
|
}
|
||||||
|
|
||||||
refnum = PyInt_AsLong(intobj);
|
refnum = PyInt_AsLong(intobj);
|
||||||
Py_DECREF(string); Py_DECREF(intobj);
|
Py_DECREF(string);
|
||||||
*code++ = OP_REF;
|
*code++ = OP_REF;
|
||||||
*code++ = refnum;
|
*code++ = refnum;
|
||||||
/* The continue will cause the top-level for() loop to
|
/* The continue will cause the top-level for() loop to
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue