You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Modules/clinic/_testclinic.c.h, the generated wrapper initializes c to "c" and declares Py_ssize_t c_length; without an initializer. When c is omitted, the parser writes neither variable; for c the C initializer covers it. The wrapper then passes the uninitialized length to str_converter_impl(), which uses it in PyUnicode_FromStringAndSize().
Argument Clinic should initialize the length alongside the pointer default. For this wrapper, the generated declaration should be Py_ssize_t c_length = 1;.
Activity