File: | plpython.c |
Function: | PLyUnicode_AsString |
Error: | calling PyString_AsString with NULL as argument 1 (o) at plpython.c:4875 |
4871 static char *
4872 PLyUnicode_AsString(PyObject *unicode)
4873 {
4874 PyObject *o = PLyUnicode_Bytes(unicode);
when PLyUnicode_Bytes() fails
4875 char *rv = pstrdup(PyBytes_AsString(o));
calling PyString_AsString with NULL as argument 1 (o) at plpython.c:4875
PyString_AsString() invokes Py_TYPE() on the pointer via the PyString_Check() macro, thus accessing (NULL)->ob_type
4876
4877 Py_XDECREF(o);
4878 return rv;
4879 }