This is a summary of errors seen when compiling with an experimental static analysis tool
Raw build logs can be seen here
The triager didn't know how to classify these ones
plpython.c | PLy_output | passing uninitialized data (o.278) as argument 1 to function at plpython.c:4236 |
Code paths that will lead to a segmentatation fault
plpython.c | get_source_line | dereferencing NULL (*s) at plpython.c:4569 |
Code paths in which the reference count of an object is left too low. This could lead to the object being deallocated too early, triggering segfaults when later accessed. Over repeated calls, these errors could accumulate, increasing the likelihood of a segfault.
plpython.c | PLy_init_interp | ob_refcnt of '*PLy_interp_globals' is 1 too low |
Code paths in which the reference count of an object is too low, but within an initialization routine, and thus likely to only happen once
plpython.c | PLy_generate_spi_exceptions | ob_refcnt of '*exc' is 1 too low |
Code paths in which the reference count of an object is left too high, but within an initialization routine, and thus likely to only happen once
Code paths in error-handling that will lead to a segmentatation fault (e.g. under low memory conditions)
Code paths in which the reference count of an object might too large - but in which the reference in question came from a function not known to the analyzer.
The analyzer assumes such references are new references, but if the function returns a borrowed reference instead, it's probably not a bug
plpython.c | PLy_spi_execute_query | ob_refcnt of '*ret' is 1 too high |
These messages are often false-positives: the analysis tool has no knowledge about internal API calls that can lead to an exception being set
The following "Py" functions were used but aren't yet explicitly handled by gcc-with-cpychecker
PyDict_Copy
PyDict_DelItemString
PyDict_Keys
PyErr_Clear
PyErr_Fetch
PyEval_EvalCode
PyFloat_FromDouble
PyIter_Next
PyList_GetSlice
PyList_SetSlice
PyMapping_GetItemString
PySequence_Check
PySequence_Size
PyUnicodeUCS4_AsEncodedString