From: Tim Peters Date: Mon, 12 Aug 2002 22:10:00 +0000 (+0000) Subject: k_lopsided_mul(): This allocated more space for bslice than necessary. X-Git-Tag: v2.3c1~4515 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=120340374383e4f246fe71e7013a7711104bb8a9;p=thirdparty%2FPython%2Fcpython.git k_lopsided_mul(): This allocated more space for bslice than necessary. --- diff --git a/Objects/longobject.c b/Objects/longobject.c index 3cc6f138e18d..bb02c9c9134b 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -1785,7 +1785,7 @@ k_lopsided_mul(PyLongObject *a, PyLongObject *b) memset(ret->ob_digit, 0, ret->ob_size * sizeof(digit)); /* Successive slices of b are copied into bslice. */ - bslice = _PyLong_New(bsize); + bslice = _PyLong_New(asize); if (bslice == NULL) goto fail;