Bug fix: Allow output buffer size to be larger than 2GB
Using unsigned int for output buffer size avoids size over 2GB being
considered as negative, which making PyMem_Malloc() calls fail.
Fixes
@@ -782,7 +782,7 @@ _create_context (PyObject * Py_UNUSED (self), PyObject * args, PyObject * kwds)
Py_buffer dict = { NULL, NULL, };
int status = 0;
- int total_size = 0;
+ unsigned int total_size = 0;
uint32_t store_max_size;
static char * argnames[] = {
