python3-netsnmp icon indicating copy to clipboard operation
python3-netsnmp copied to clipboard

Fixing Segfault for Py >= 3.10 due to PY_SSIZE_T_CLEAN

Open Cleric-K opened this issue 1 year ago • 0 comments

When using s# formats with Py_BuildValue, since 3.10 PY_SSIZE_T_CLEAN has to be defined before including Python.h. Otherwise Py_BuildValue returns 0 which results in Segfault.

See https://bugs.python.org/issue36381

Cleric-K avatar Jan 18 '24 12:01 Cleric-K