We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 640b326 commit 613d2a1Copy full SHA for 613d2a1
Objects/longobject.c
@@ -188,6 +188,9 @@ long_alloc(Py_ssize_t size)
188
_PyLong_InitTag(result);
189
}
190
_PyLong_SetSignAndDigitCount(result, size != 0, size);
191
+ /* The digit has to be initialized explicitly to avoid
192
+ * use-of-uninitialized-value. */
193
+ result->long_value.ob_digit[0] = 0;
194
return result;
195
196
0 commit comments