From: Michael W. Hudson Date: Fri, 15 Aug 2003 12:06:41 +0000 (+0000) Subject: My last fix left n used unitialized in tha a==b case. X-Git-Tag: v2.4a1~1738 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da0a0673b18014559d321faae19f755a33c23d2a;p=python 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. --- diff --git a/Objects/listobject.c b/Objects/listobject.c index ed2820093c..727c9e6d69 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -475,7 +475,7 @@ list_ass_slice(PyListObject *a, int ilow, int ihigh, PyObject *v) if (a == b) { /* Special case "a[i:j] = a" -- copy b first */ int ret; - v = list_slice(b, 0, n); + v = list_slice(b, 0, b->ob_size); if (v == NULL) return -1; ret = list_ass_slice(a, ilow, ihigh, v);