Closed
Description
In file _winapi.c
We can see code:
size = PyUnicode_AsWideChar(key, NULL, 0);
Py_ssize_t PyUnicode_AsWideChar(PyObject *unicode, wchar_t *wstr, Py_ssize_t size)
But the doc say "Copies the Unicode Object contents into the wchar_t buffer w. At most size wchar_t characters are copied.".I think we miss the situation when size is 0.