Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Bug description:
whence+1 could lead to overflow for large value ofwhence. I thinkchanging type fromint toPy_ssize_t could fix the problem (remain isinput parameter):
staticintpmerge(PyObject*acc,PyObject**to_merge,Py_ssize_tto_merge_size){...remain=PyMem_New(Py_ssize_t,to_merge_size);
CPython versions tested on:
3.11
Operating systems tested on:
Linux
Linked PRs
- gh-126862: Use
Py_ssize_tinstead ofintwhen processing the number of super-classes #127523 - [3.13] gh-126862: Use
Py_ssize_tinstead ofintwhen processing the number of super-classes (GH-127523) #128699 - [3.12] gh-126862: Use
Py_ssize_tinstead ofintwhen processing the number of super-classes (GH-127523) #128700