From 120340374383e4f246fe71e7013a7711104bb8a9 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 12 Aug 2002 22:10:00 +0000 Subject: [PATCH] k_lopsided_mul(): This allocated more space for bslice than necessary. --- Objects/longobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/longobject.c b/Objects/longobject.c index 3cc6f138e1..bb02c9c913 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; -- 2.50.1