This is a summary of errors seen when compiling with an experimental static analysis tool
Raw build logs can be seen here
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.
netifaces.c | add_to_family | ob_refcnt of '*dict' is 1 too low |
Code paths in which the reference count of an object is left too high, leading to memory leaks
netifaces.c | ifaddrs | ob_refcnt of '*dict' is 1 too high |
netifaces.c | add_to_family | ob_refcnt of '*py_family' is 1 too high |
Code paths in error-handling that will lead to a segmentatation fault (e.g. under low memory conditions)
netifaces.c | add_to_family | calling PyDict_GetItem with NULL as argument 2 (py_family) at netifaces.c:331 |
These messages are often false-positives: the analysis tool has no knowledge about internal API calls that can lead to an exception being set
netifaces.c | ifaddrs | returning (PyObject*)NULL without setting an exception |
The following "Py" functions were used but aren't yet explicitly handled by gcc-with-cpychecker
PySequence_Contains