mirror of https://github.com/python/cpython.git
My last fix left n used unitialized in tha a==b case.
Fix, by not using n at all in that case. Needs to be applied to release23-maint, too.
This commit is contained in:
parent
465fa3dac4
commit
da0a0673b1
|
@ -475,7 +475,7 @@ list_ass_slice(PyListObject *a, int ilow, int ihigh, PyObject *v)
|
||||||
if (a == b) {
|
if (a == b) {
|
||||||
/* Special case "a[i:j] = a" -- copy b first */
|
/* Special case "a[i:j] = a" -- copy b first */
|
||||||
int ret;
|
int ret;
|
||||||
v = list_slice(b, 0, n);
|
v = list_slice(b, 0, b->ob_size);
|
||||||
if (v == NULL)
|
if (v == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
ret = list_ass_slice(a, ilow, ihigh, v);
|
ret = list_ass_slice(a, ilow, ihigh, v);
|
||||||
|
|
Loading…
Reference in New Issue