Newly introduced defects

List of Defects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:59: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c: scope_hint: In function ‘list_get_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/listobject.h:40:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘obj’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1075:39: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:12: note: in expansion of macro ‘Py_XNewRef’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:23: note: in expansion of macro ‘PyList_GET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:21:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:21:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:21:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:21:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1075:39: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:12: note: in expansion of macro ‘Py_XNewRef’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/listobject.h:25:5: note: in expansion of macro ‘PyType_FastSubclass’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/listobject.h:26:13: note: in expansion of macro ‘PyList_Check’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/listobject.h:40:37: note: in expansion of macro ‘_PyList_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:23: note: in expansion of macro ‘PyList_GET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1075:39: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:12: note: in expansion of macro ‘Py_XNewRef’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/listobject.h:40:37: note: in expansion of macro ‘_PyList_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:23: note: in expansion of macro ‘PyList_GET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1075:39: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:12: note: in expansion of macro ‘Py_XNewRef’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/listobject.h:40:37: note: in expansion of macro ‘_PyList_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:23: note: in expansion of macro ‘PyList_GET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1075:39: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:12: note: in expansion of macro ‘Py_XNewRef’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/listobject.h:40:37: note: in expansion of macro ‘_PyList_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:23: note: in expansion of macro ‘PyList_GET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1075:39: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:12: note: in expansion of macro ‘Py_XNewRef’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:23: note: in expansion of macro ‘PyList_GET_ITEM’
#   38|   #define PyList_GET_SIZE(op) PyList_GET_SIZE(_PyObject_CAST(op))
#   39|   
#   40|-> #define PyList_GET_ITEM(op, index) (_PyList_CAST(op)->ob_item[(index)])
#   41|   
#   42|   static inline void

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:19: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/parts.h:25: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:1: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/listobject.h: scope_hint: In function ‘PyList_SET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/listobject.h:46:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘list’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:2: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:34:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:34:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:34:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:34:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:35:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/listobject.h:48: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:85: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:36:5: note: in expansion of macro ‘PyList_SET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:36:5: note: in expansion of macro ‘PyList_SET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:36:5: note: in expansion of macro ‘PyList_SET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/listobject.h:44:26: note: in expansion of macro ‘_PyList_CAST’
#   44|       PyListObject *list = _PyList_CAST(op);
#   45|       assert(0 <= index);
#   46|->     assert(index < list->allocated);
#   47|       list->ob_item[index] = value;
#   48|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:19: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/parts.h:25: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:1: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/listobject.h: scope_hint: In function ‘PyList_SET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/listobject.h:46:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘op’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:2: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:34:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:34:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:34:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:34:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:34:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:35:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/listobject.h:48: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:85: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:36:5: note: in expansion of macro ‘PyList_SET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:36:5: note: in expansion of macro ‘PyList_SET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:36:5: note: in expansion of macro ‘PyList_SET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:36:5: note: in expansion of macro ‘PyList_SET_ITEM’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/listobject.h:44:26: note: in expansion of macro ‘_PyList_CAST’
#   44|       PyListObject *list = _PyList_CAST(op);
#   45|       assert(0 <= index);
#   46|->     assert(index < list->allocated);
#   47|       list->ob_item[index] = value;
#   48|   }

Error: COMPILER_WARNING: [#def4]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/pyatomic_gcc.h:359:18: warning[-Wstringop-overflow=]: ‘__atomic_load_8’ writing 8 bytes into a region of size 0 overflows the destination
#  359 | { return (void *)__atomic_load_n((void * const *)obj, __ATOMIC_RELAXED); }
#      |                  ^~~~~~~~~~~~~~~
cc1: note: destination object is likely at address zero
#  357|   static inline void *
#  358|   _Py_atomic_load_ptr_relaxed(const void *obj)
#  359|-> { return (void *)__atomic_load_n((void * const *)obj, __ATOMIC_RELAXED); }
#  360|   
#  361|   static inline unsigned long long

Error: CLANG_WARNING: [#def5]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/unicode.c:3: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/parts.h:25: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:75: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/unicodeobject.h:1014: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/unicodeobject.h:280:12: warning[core.NullDereference]: Access to field 'length' results in a dereference of a null pointer
#  278|   /* Returns the length of the unicode string. */
#  279|   static inline Py_ssize_t PyUnicode_GET_LENGTH(PyObject *op) {
#  280|->     return _PyASCIIObject_CAST(op)->length;
#  281|   }
#  282|   #define PyUnicode_GET_LENGTH(op) PyUnicode_GET_LENGTH(_PyObject_CAST(op))

Error: CLANG_WARNING: [#def6]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/longobject.c:9: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/internal/pycore_long.h:208:13: warning[core.NullDereference]: Dereference of null pointer
#  206|   _PyLong_IsZero(const PyLongObject *op)
#  207|   {
#  208|->     return (op->long_value.lv_tag & SIGN_MASK) == SIGN_ZERO;
#  209|   }
#  210|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:347:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/genericaliasobject.c: scope_hint: In function ‘_Py_subs_parameters’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/tupleobject.h:27:18: note: in expansion of macro ‘PyType_FastSubclass’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/genericaliasobject.c:464:20: note: in expansion of macro ‘PyTuple_Check’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/tupleobject.h:39: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:84: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/genericaliasobject.c:465:36: note: in expansion of macro ‘PyTuple_GET_SIZE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/genericaliasobject.c:465:36: note: in expansion of macro ‘PyTuple_GET_SIZE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/genericaliasobject.c:465:36: note: in expansion of macro ‘PyTuple_GET_SIZE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/tupleobject.h:23:12: note: in expansion of macro ‘Py_SIZE’
#  345|       assert(ob->ob_type != &PyLong_Type);
#  346|       assert(ob->ob_type != &PyBool_Type);
#  347|->     return  _PyVarObject_CAST(ob)->ob_size;
#  348|   }
#  349|   #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCData_item_type.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:2880:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stg_info’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘PyCData_item_type.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCData_item_type.part.0’
# 2878|           }
# 2879|           assert(stg_info);
# 2880|->         elem_type = stg_info->proto;
# 2881|           assert(elem_type);
# 2882|           return PyCData_item_type(st, elem_type);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘_PyCData_set.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:3269:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p1’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:68: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:103: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h:226:43: note: in expansion of macro ‘PyObject_TypeCheck’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:3255:9: note: in expansion of macro ‘PyCPointerTypeObject_Check’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘_PyCData_set.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘_PyCData_set.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘_PyCData_set.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘_PyCData_set.part.0’
# 3267|           assert(p2); /* Cannot be NULL for pointer types */
# 3268|   
# 3269|->         if (p1->proto != p2->proto) {
# 3270|               PyErr_Format(PyExc_TypeError,
# 3271|                            "incompatible types, %s instance instead of %s instance",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:3269:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p2’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h:226:43: note: in expansion of macro ‘PyObject_TypeCheck’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:3255:9: note: in expansion of macro ‘PyCPointerTypeObject_Check’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘_PyCData_set.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘_PyCData_set.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘_PyCData_set.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘_PyCData_set.part.0’
# 3267|           assert(p2); /* Cannot be NULL for pointer types */
# 3268|   
# 3269|->         if (p1->proto != p2->proto) {
# 3270|               PyErr_Format(PyExc_TypeError,
# 3271|                            "incompatible types, %s instance instead of %s instance",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def11]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCFuncPtr_get_restype.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:3441:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘PyCFuncPtr_get_restype.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCFuncPtr_get_restype.part.0’
# 3439|       }
# 3440|       assert(info); /* Cannot be NULL for PyCFuncPtrObject instances */
# 3441|->     if (info->restype) {
# 3442|           return Py_NewRef(info->restype);
# 3443|       } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCFuncPtr_get_argtypes.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:3480:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘PyCFuncPtr_get_argtypes.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCFuncPtr_get_argtypes.part.0’
# 3478|       }
# 3479|       assert(info); /* Cannot be NULL for PyCFuncPtrObject instances */
# 3480|->     if (info->argtypes) {
# 3481|           return Py_NewRef(info->argtypes);
# 3482|       } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCFuncPtr_call’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4267:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘PyCFuncPtr_call’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCFuncPtr_call’
# 4265|       assert(info); /* Cannot be NULL for PyCFuncPtrObject instances */
# 4266|   
# 4267|->     restype = self->restype ? self->restype : info->restype;
# 4268|       converters = self->converters ? self->converters : info->converters;
# 4269|       checker = self->checker ? self->checker : info->checker;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4268:54: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘PyCFuncPtr_call’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCFuncPtr_call’
# 4266|   
# 4267|       restype = self->restype ? self->restype : info->restype;
# 4268|->     converters = self->converters ? self->converters : info->converters;
# 4269|       checker = self->checker ? self->checker : info->checker;
# 4270|       argtypes = self->argtypes ? self->argtypes : info->argtypes;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4269:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘PyCFuncPtr_call’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCFuncPtr_call’
# 4267|       restype = self->restype ? self->restype : info->restype;
# 4268|       converters = self->converters ? self->converters : info->converters;
# 4269|->     checker = self->checker ? self->checker : info->checker;
# 4270|       argtypes = self->argtypes ? self->argtypes : info->argtypes;
# 4271|   /* later, we probably want to have an errcheck field in stginfo */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4270:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘PyCFuncPtr_call’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCFuncPtr_call’
# 4268|       converters = self->converters ? self->converters : info->converters;
# 4269|       checker = self->checker ? self->checker : info->checker;
# 4270|->     argtypes = self->argtypes ? self->argtypes : info->argtypes;
# 4271|   /* later, we probably want to have an errcheck field in stginfo */
# 4272|       errcheck = self->errcheck /* ? self->errcheck : info->errcheck */;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4319:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘PyCFuncPtr_call’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCFuncPtr_call’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4035:16: note: in expansion of macro ‘Py_NewRef’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1060:5: note: in expansion of macro ‘Py_INCREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCFuncPtr_call’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4035:16: note: in expansion of macro ‘Py_NewRef’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:59: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:16:47: note: in definition of macro ‘_Py_STATIC_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4314:24: note: in expansion of macro ‘Py_SAFE_DOWNCAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4314:41: note: in expansion of macro ‘PyTuple_GET_SIZE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/tupleobject.h:23:12: note: in expansion of macro ‘Py_SIZE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘PyCFuncPtr_call’
# 4317|                                         Py_ssize_t, int);
# 4318|   
# 4319|->         if ((info->flags & FUNCFLAG_CDECL) == FUNCFLAG_CDECL) {
# 4320|               /* For cdecl functions, we allow more actual arguments
# 4321|                  than the length of the argtypes tuple.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘_init_pos_args’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4516:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘baseinfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘_init_pos_args’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘_init_pos_args’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘_init_pos_args’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘_init_pos_args’
# 4514|   
# 4515|       for (i = index;
# 4516|->          i < info->length && i < PyTuple_GET_SIZE(args);
# 4517|            ++i) {
# 4518|           PyObject *pair = PySequence_GetItem(fields, i - index);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4516:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘_init_pos_args’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘_init_pos_args’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘_init_pos_args’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘_init_pos_args’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘_init_pos_args’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘_init_pos_args’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘_init_pos_args’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘_init_pos_args’
# 4514|   
# 4515|       for (i = index;
# 4516|->          i < info->length && i < PyTuple_GET_SIZE(args);
# 4517|            ++i) {
# 4518|           PyObject *pair = PySequence_GetItem(fields, i - index);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Array_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4663:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stginfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:337:31: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4654:48: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4654:56: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Array_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Array_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Array_item’
# 4661|          stginfo->proto's stginfo?
# 4662|       */
# 4663|->     size = stginfo->size / stginfo->length;
# 4664|       offset = index * size;
# 4665|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Array_subscript.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4701:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stginfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Array_subscript.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Array_subscript.part.0’
# 4699|           }
# 4700|           assert(stginfo); /* Cannot be NULL for array object instances */
# 4701|->         proto = stginfo->proto;
# 4702|           StgInfo *iteminfo;
# 4703|           if (PyStgInfo_FromType(st, proto, &iteminfo) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4709:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iteminfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Array_subscript.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Array_subscript.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Array_subscript.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Array_subscript.part.0’
# 4707|                                ctypes type, so this cannot be NULL */
# 4708|   
# 4709|->         if (iteminfo->getfunc == _ctypes_get_fielddesc("c")->getfunc) {
# 4710|               char *ptr = (char *)self->b_ptr;
# 4711|               char *dest;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Array_ass_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4803:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stginfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:337:31: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4796:48: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:4796:56: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Array_ass_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Array_ass_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Array_ass_item’
# 4801|       assert(stginfo); /* Cannot be NULL for array object instances */
# 4802|   
# 4803|->     if (index < 0 || index >= stginfo->length) {
# 4804|           PyErr_SetString(PyExc_IndexError,
# 4805|                           "invalid index");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Simple_set_value’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5012:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:337:31: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5004:48: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5004:56: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Simple_set_value’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Simple_set_value’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Simple_set_value’
# 5010|       assert(info->setfunc);
# 5011|   
# 5012|->     result = info->setfunc(self->b_ptr, value, info->size);
# 5013|       if (!result)
# 5014|           return -1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Simple_get_value’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5041:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘info’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Simple_get_value’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Simple_get_value’
# 5039|       assert(info); /* Cannot be NULL for CDataObject instances */
# 5040|       assert(info->getfunc);
# 5041|->     return info->getfunc(self->b_ptr, self->b_size);
# 5042|   }
# 5043|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5147:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stginfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:337:31: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5140:48: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5140:56: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Pointer_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_item’
# 5145|       assert(stginfo); /* Cannot be NULL for pointer object instances */
# 5146|   
# 5147|->     proto = stginfo->proto;
# 5148|       assert(proto);
# 5149|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5157:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iteminfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:337:31: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5140:48: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5140:56: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Pointer_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Pointer_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_item’
# 5155|                            type, so this cannot be NULL */
# 5156|   
# 5157|->     size = iteminfo->size;
# 5158|       offset = index * iteminfo->size;
# 5159|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_ass_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5191:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stginfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:337:31: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5184:48: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5184:56: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_ass_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Pointer_ass_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_ass_item’
# 5189|       assert(stginfo); /* Cannot be NULL for pointer instances */
# 5190|   
# 5191|->     proto = stginfo->proto;
# 5192|       assert(proto);
# 5193|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5201:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iteminfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:337:31: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5184:48: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5184:56: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_ass_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Pointer_ass_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_ass_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Pointer_ass_item’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_ass_item’
# 5199|                            is always a ctypes type */
# 5200|   
# 5201|->     size = iteminfo->size;
# 5202|       offset = index * iteminfo->size;
# 5203|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_get_contents’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5224:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stginfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:337:31: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5217:48: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5217:56: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_get_contents’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Pointer_get_contents’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_get_contents’
# 5222|       assert(stginfo); /* Cannot be NULL for pointer instances */
# 5223|   
# 5224|->     return PyCData_FromBaseObj(st, stginfo->proto,
# 5225|                                (PyObject *)self, 0,
# 5226|                                *(void **)self->b_ptr);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_set_contents’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5248:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stginfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:337:31: note: in expansion of macro ‘_PyObject_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5240:48: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5240:56: note: in expansion of macro ‘Py_TYPE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_set_contents’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Pointer_set_contents’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_set_contents’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h:205:40: note: in expansion of macro ‘PyObject_TypeCheck’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5247:10: note: in expansion of macro ‘CDataObject_Check’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_set_contents’
# 5246|       assert(stginfo->proto);
# 5247|       if (!CDataObject_Check(st, value)) {
# 5248|->         int res = PyObject_IsInstance(value, stginfo->proto);
# 5249|           if (res == -1)
# 5250|               return -1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_subscript.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5388:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘stginfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Pointer_subscript.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_subscript.part.0’
# 5386|           }
# 5387|           assert(stginfo); /* Cannot be NULL for pointer instances */
# 5388|->         proto = stginfo->proto;
# 5389|           assert(proto);
# 5390|           StgInfo *iteminfo;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c:5395:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iteminfo’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Pointer_subscript.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_subscript.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/ctypes.h: scope_hint: In function ‘Pointer_subscript.part.0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_ctypes/_ctypes.c: scope_hint: In function ‘Pointer_subscript.part.0’
# 5393|           }
# 5394|           assert(iteminfo);
# 5395|->         if (iteminfo->getfunc == _ctypes_get_fielddesc("c")->getfunc) {
# 5396|               char *ptr = *(char **)self->b_ptr;
# 5397|               char *dest;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘delta_to_microseconds’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2077:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2072:26: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2072:26: note: in expansion of macro ‘GET_CURRENT_STATE’
# 2075|       if (x1 == NULL)
# 2076|           goto Done;
# 2077|->     x2 = PyNumber_Multiply(x1, CONST_SEC_PER_DAY(st));        /* days in seconds */
# 2078|       if (x2 == NULL)
# 2079|           goto Done;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2153:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2072:26: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2072:26: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:68: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:14: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2080:5: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2089:5: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2097:5: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2107:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1044:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2107:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2108:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1044:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2108:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2109:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2109:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2072:26: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2072:26: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2080:5: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2089:5: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2097:5: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2107:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1044:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2107:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2108:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1044:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘microseconds_to_delta_ex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2108:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2109:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2109:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2592:17: note: in expansion of macro ‘microseconds_to_delta’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2592:17: note: in expansion of macro ‘microseconds_to_delta’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2151:26: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2151:26: note: in expansion of macro ‘GET_CURRENT_STATE’
# 2151|       datetime_state *st = GET_CURRENT_STATE(current_mod);
# 2152|   
# 2153|->     tuple = checked_divmod(pyus, CONST_US_PER_SECOND(st));
# 2154|       if (tuple == NULL) {
# 2155|           goto Done;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘delta_total_seconds’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2956:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:6667:30: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘delta_total_seconds’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:6667:30: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2072:26: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘delta_total_seconds’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2072:26: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2080:5: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘delta_total_seconds’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2089:5: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘delta_total_seconds’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2097:5: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘delta_total_seconds’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2107:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1044:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘delta_total_seconds’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2107:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2108:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:1044:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/object.h:946:9: note: in expansion of macro ‘_Py_IsImmortal’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/pyport.h:19:38: note: in definition of macro ‘_Py_CAST’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘delta_total_seconds’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2108:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2109:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2109:5: note: in expansion of macro ‘Py_XDECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2954:26: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:2954:26: note: in expansion of macro ‘GET_CURRENT_STATE’
# 2954|       datetime_state *st = GET_CURRENT_STATE(current_mod);
# 2955|   
# 2956|->     total_seconds = PyNumber_TrueDivide(total_microseconds, CONST_US_PER_SECOND(st));
# 2957|   
# 2958|       RELEASE_CURRENT_STATE(st, current_mod);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘local_timezone’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:6428:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:6426:26: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:6426:26: note: in expansion of macro ‘GET_CURRENT_STATE’
# 6426|       datetime_state *st = GET_CURRENT_STATE(current_mod);
# 6427|   
# 6428|->     delta = datetime_subtract((PyObject *)utc_time, CONST_EPOCH(st));
# 6429|       RELEASE_CURRENT_STATE(st, current_mod);
# 6430|       if (delta == NULL)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c: scope_hint: In function ‘datetime_timestamp’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:6670:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:6667:30: note: in expansion of macro ‘GET_CURRENT_STATE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_datetimemodule.c:6667:30: note: in expansion of macro ‘GET_CURRENT_STATE’
# 6668|   
# 6669|           PyObject *delta;
# 6670|->         delta = datetime_subtract((PyObject *)self, CONST_EPOCH(st));
# 6671|           RELEASE_CURRENT_STATE(st, current_mod);
# 6672|           if (delta == NULL)

Error: COMPILER_WARNING: [#def39]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_interpchannelsmodule.c: scope_hint: In function ‘PyInit__interpchannels’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_interpchannelsmodule.c:3381:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/_interpchannelsmodule.gcda’ profile count data file not found
# 3379|   {
# 3380|       return PyModuleDef_Init(&moduledef);
# 3381|-> }

Error: COMPILER_WARNING: [#def40]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_interpqueuesmodule.c: scope_hint: In function ‘PyInit__interpqueues’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_interpqueuesmodule.c:1882:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/_interpqueuesmodule.gcda’ profile count data file not found
# 1880|   {
# 1881|       return PyModuleDef_Init(&moduledef);
# 1882|-> }

Error: COMPILER_WARNING: [#def41]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_interpretersmodule.c: scope_hint: In function ‘PyInit__interpreters’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_interpretersmodule.c:1568:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/_interpretersmodule.gcda’ profile count data file not found
# 1566|   {
# 1567|       return PyModuleDef_Init(&moduledef);
# 1568|-> }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:1405:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c: scope_hint: In function ‘prepare_s’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c: scope_hint: In function ‘prepare_s’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:60: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/pyctype.h:27:41: note: in expansion of macro ‘Py_CHARMASK’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:1516:13: note: in expansion of macro ‘Py_ISSPACE’
# 1403|       Py_ssize_t extra;
# 1404|   
# 1405|->     if (e->format == c) {
# 1406|           if (e->alignment && size > 0) {
# 1407|               extra = (e->alignment - 1) - (size - 1) % (e->alignment);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c: scope_hint: In function ‘Struct_unpack_impl’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:1713:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c: scope_hint: In function ‘Struct_unpack_impl’
# 1711|       _structmodulestate *state = get_struct_state_structinst(self);
# 1712|       assert(self->s_codes != NULL);
# 1713|->     if (buffer->len != self->s_size) {
# 1714|           PyErr_Format(state->StructError,
# 1715|                        "unpack requires a buffer of %zd bytes",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c: scope_hint: In function ‘Struct_unpack_from_impl’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:1765:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c: scope_hint: In function ‘Struct_unpack_from_impl’
# 1763|       }
# 1764|   
# 1765|->     if ((buffer->len - offset) < self->s_size) {
# 1766|           PyErr_Format(state->StructError,
# 1767|                        "unpack_from requires a buffer of at least %zu bytes for "

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c: scope_hint: In function ‘Struct_iter_unpack’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:1890:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c: scope_hint: In function ‘Struct_iter_unpack’
# 1888|       assert(self->s_codes != NULL);
# 1889|   
# 1890|->     if (self->s_size == 0) {
# 1891|           PyErr_Format(state->StructError,
# 1892|                        "cannot iteratively unpack with a struct of length 0");

Error: CLANG_WARNING: [#def46]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2026:12: warning[core.NullDereference]: Access to field 's_codes' results in a dereference of a null pointer (loaded from variable 'soself')
# 2024|       soself = (PyStructObject *)self;
# 2025|       assert(PyStruct_Check(self, state));
# 2026|->     assert(soself->s_codes != NULL);
# 2027|       if (nargs != soself->s_len)
# 2028|       {

Error: CLANG_WARNING: [#def47]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2027:18: warning[core.NullDereference]: Access to field 's_len' results in a dereference of a null pointer (loaded from variable 'soself')
# 2025|       assert(PyStruct_Check(self, state));
# 2026|       assert(soself->s_codes != NULL);
# 2027|->     if (nargs != soself->s_len)
# 2028|       {
# 2029|           PyErr_Format(state->StructError,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c: scope_hint: In function ‘s_pack’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2027:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
# 2025|       assert(PyStruct_Check(self, state));
# 2026|       assert(soself->s_codes != NULL);
# 2027|->     if (nargs != soself->s_len)
# 2028|       {
# 2029|           PyErr_Format(state->StructError,

Error: CLANG_WARNING: [#def49]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2071:12: warning[core.NullDereference]: Access to field 's_codes' results in a dereference of a null pointer (loaded from variable 'soself')
# 2069|       soself = (PyStructObject *)self;
# 2070|       assert(PyStruct_Check(self, state));
# 2071|->     assert(soself->s_codes != NULL);
# 2072|       if (nargs != (soself->s_len + 2))
# 2073|       {

Error: CLANG_WARNING: [#def50]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2072:19: warning[core.NullDereference]: Access to field 's_len' results in a dereference of a null pointer (loaded from variable 'soself')
# 2070|       assert(PyStruct_Check(self, state));
# 2071|       assert(soself->s_codes != NULL);
# 2072|->     if (nargs != (soself->s_len + 2))
# 2073|       {
# 2074|           if (nargs == 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c: scope_hint: In function ‘s_pack_into’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2072:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘self’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/cpython/object.h:332:9: note: in expansion of macro ‘Py_DECREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_struct.c:2260:9: note: in expansion of macro ‘Py_SETREF’
# 2070|       assert(PyStruct_Check(self, state));
# 2071|       assert(soself->s_codes != NULL);
# 2072|->     if (nargs != (soself->s_len + 2))
# 2073|       {
# 2074|           if (nargs == 0) {

Error: CLANG_WARNING: [#def52]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/list.c:22:23: warning[core.NullDereference]: Access to field 'ob_item' results in a dereference of a null pointer
#   20|       }
#   21|       NULLABLE(obj);
#   22|->     return Py_XNewRef(PyList_GET_ITEM(obj, i));
#   23|   }
#   24|   

Error: COMPILER_WARNING: [#def53]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/monitoring.c: scope_hint: In function ‘_PyTestCapi_Init_Monitoring’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/monitoring.c:508:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/monitoring.gcda’ profile count data file not found
#  506|       }
#  507|       return 0;
#  508|-> }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c: scope_hint: In function ‘run_fileexflags’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c:71:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c:3: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c:63:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c:63:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c:64:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c:64:5: note: in expansion of macro ‘NULLABLE’
#   69|       }
#   70|   
#   71|->     fp = fopen(filename, "r");
#   72|       if (fp == NULL) {
#   73|           PyErr_SetFromErrnoWithFilename(PyExc_OSError, filename);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c:71:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c:63:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c:63:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c:64:5: note: in expansion of macro ‘NULLABLE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c:64:5: note: in expansion of macro ‘NULLABLE’
#   69|       }
#   70|   
#   71|->     fp = fopen(filename, "r");
#   72|       if (fp == NULL) {
#   73|           PyErr_SetFromErrnoWithFilename(PyExc_OSError, filename);

Error: COMPILER_WARNING: [#def56]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c: scope_hint: In function ‘_PyTestCapi_Init_Run’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testcapi/run.c:113:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/run.gcda’ profile count data file not found
#  111|       }
#  112|       return 0;
#  113|-> }

Error: COMPILER_WARNING: [#def57]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/bytes.c: scope_hint: In function ‘_PyTestLimitedCAPI_Init_Bytes’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/bytes.c:255:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/bytes.gcda’ profile count data file not found
#  253|   
#  254|       return 0;
#  255|-> }

Error: COMPILER_WARNING: [#def58]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/complex.c: scope_hint: In function ‘_PyTestLimitedCAPI_Init_Complex’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/complex.c:79:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/complex.gcda’ profile count data file not found
#   77|   
#   78|       return 0;
#   79|-> }

Error: COMPILER_WARNING: [#def59]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/dict.c: scope_hint: In function ‘_PyTestLimitedCAPI_Init_Dict’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/dict.c:291:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/dict.gcda’ profile count data file not found
#  289|   
#  290|       return 0;
#  291|-> }

Error: COMPILER_WARNING: [#def60]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/float.c: scope_hint: In function ‘_PyTestLimitedCAPI_Init_Float’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/float.c:91:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/float.gcda’ profile count data file not found
#   89|   
#   90|       return 0;
#   91|-> }

Error: COMPILER_WARNING: [#def61]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/list.c: scope_hint: In function ‘_PyTestLimitedCAPI_Init_List’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/list.c:175:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/list.gcda’ profile count data file not found
#  173|   
#  174|       return 0;
#  175|-> }

Error: CPPCHECK_WARNING: [#def62]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/long.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING: [#def63]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/long.c: scope_hint: In function ‘_PyTestLimitedCAPI_Init_Long’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/long.c:798:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/long.gcda’ profile count data file not found
#  796|       }
#  797|       return 0;
#  798|-> }

Error: COMPILER_WARNING: [#def64]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/object.c: scope_hint: In function ‘_PyTestLimitedCAPI_Init_Object’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/object.c:80:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/object.gcda’ profile count data file not found
#   78|   
#   79|       return 0;
#   80|-> }

Error: COMPILER_WARNING: [#def65]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/set.c: scope_hint: In function ‘_PyTestLimitedCAPI_Init_Set’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/set.c:189:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/set.gcda’ profile count data file not found
#  187|   
#  188|       return 0;
#  189|-> }

Error: CPPCHECK_WARNING: [#def66]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/_testlimitedcapi/unicode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def67]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/arraymodule.c: scope_hint: In function ‘array_concat’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/arraymodule.c:942:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:68: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/arraymodule.c:10: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/arraymodule.c:128:32: note: in expansion of macro ‘PyObject_TypeCheck’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/arraymodule.c:922:10: note: in expansion of macro ‘array_Check’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/arraymodule.c: scope_hint: In function ‘array_concat’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/arraymodule.c:933:9: note: in expansion of macro ‘Py_SIZE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/arraymodule.c: scope_hint: In function ‘array_concat’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/arraymodule.c:941:9: note: in expansion of macro ‘Py_SIZE’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/arraymodule.c: scope_hint: In function ‘array_concat’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  940|       }
#  941|       if (Py_SIZE(a) > 0) {
#  942|->         memcpy(np->ob_item, a->ob_item, Py_SIZE(a)*a->ob_descr->itemsize);
#  943|       }
#  944|       if (Py_SIZE(b) > 0) {

Error: CPPCHECK_WARNING: [#def68]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/fcntlmodule.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-688): [#def69]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/posixmodule.c: scope_hint: In function ‘os_pathconf_impl’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/posixmodule.c:13675:17: warning[-Wanalyzer-null-argument]: use of NULL ‘path.narrow’ where non-null expected
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/posixmodule.c:1248:5: note: in expansion of macro ‘Py_CLEAR’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/posixmodule.c:1249:5: note: in expansion of macro ‘Py_CLEAR’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/posixmodule.c:1249:5: note: in expansion of macro ‘Py_CLEAR’
/usr/include/unistd.h:633:17: note: argument 1 of ‘pathconf’ must be non-null
#13673|       else
#13674|   #endif
#13675|->         limit = pathconf(path->narrow, name);
#13676|       if (limit == -1 && errno != 0) {
#13677|           if (errno == EINVAL)

Error: CPPCHECK_WARNING: [#def70]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/pwdmodule.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def71]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Modules/termios.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c: scope_hint: In function ‘reftotal_add’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:84:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tstate_impl’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:68: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:4: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:2852:5: note: in expansion of macro ‘Py_XINCREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:2852:5: note: in expansion of macro ‘Py_XINCREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:2854:5: note: in expansion of macro ‘Py_INCREF’
#   82|       _PyThreadStateImpl *tstate_impl = (_PyThreadStateImpl *)tstate;
#   83|       // relaxed store to avoid data race with read in get_reftotal()
#   84|->     Py_ssize_t reftotal = tstate_impl->reftotal + n;
#   85|       _Py_atomic_store_ssize_relaxed(&tstate_impl->reftotal, reftotal);
#   86|   #else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c: scope_hint: In function ‘reftotal_add’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:87:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘tstate’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:76:5: note: in definition of macro ‘REFTOTAL’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/Python.h:68: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:4: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:2852:5: note: in expansion of macro ‘Py_XINCREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:2852:5: note: in expansion of macro ‘Py_XINCREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:2854:5: note: in expansion of macro ‘Py_INCREF’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:76:5: note: in definition of macro ‘REFTOTAL’
#   85|       _Py_atomic_store_ssize_relaxed(&tstate_impl->reftotal, reftotal);
#   86|   #else
#   87|->     REFTOTAL(tstate->interp) += n;
#   88|   #endif
#   89|   }

Error: COMPILER_WARNING: [#def74]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c: scope_hint: In function ‘Py_GetConstantBorrowed’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/object.c:3015:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/object.gcda’ profile count data file not found
# 3013|       // All constants are immortal
# 3014|       return Py_GetConstant(constant_id);
# 3015|-> }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/weakrefobject.c:353:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newref’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/weakrefobject.c: scope_hint: In function ‘insert_weakref’
#  351|   is_basic_ref(PyWeakReference *ref)
#  352|   {
#  353|->     return (ref->wr_callback == NULL) && PyWeakref_CheckRefExact(ref);
#  354|   }
#  355|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/weakrefobject.c: scope_hint: In function ‘is_basic_ref’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/weakrefobject.c:353:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ref’
/usr/include/dlfcn.h:24: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/internal/pycore_import.h:107: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/internal/pycore_runtime.h:16: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/internal/pycore_pystate.h:12: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Include/internal/pycore_critical_section.h:9: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Objects/weakrefobject.c:2: included_from: Included from here.
#  351|   is_basic_ref(PyWeakReference *ref)
#  352|   {
#  353|->     return (ref->wr_callback == NULL) && PyWeakref_CheckRefExact(ref);
#  354|   }
#  355|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/flowgraph.c: scope_hint: In function ‘label_exception_targets’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/flowgraph.c:870:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘entryblock’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/flowgraph.c:19:10: note: in definition of macro ‘RETURN_IF_ERROR’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/flowgraph.c:19:10: note: in definition of macro ‘RETURN_IF_ERROR’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/flowgraph.c:2490:5: note: in expansion of macro ‘RETURN_IF_ERROR’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/flowgraph.c:19:10: note: in definition of macro ‘RETURN_IF_ERROR’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/flowgraph.c:19:10: note: in definition of macro ‘RETURN_IF_ERROR’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/flowgraph.c: scope_hint: In function ‘label_exception_targets’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/flowgraph.c:19:10: note: in definition of macro ‘RETURN_IF_ERROR’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/flowgraph.c:19:10: note: in definition of macro ‘RETURN_IF_ERROR’
#  868|       except_stack->depth = 0;
#  869|       todo_stack[0] = entryblock;
#  870|->     entryblock->b_visited = 1;
#  871|       entryblock->b_exceptstack = except_stack;
#  872|       basicblock **todo = &todo_stack[1];

Error: CLANG_WARNING: [#def78]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/ceval.c:794: included_from: Included from here.
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/generated_cases.c.h:737:13: warning[deadcode.DeadStores]: Value stored to 'next_instr' is never read
#  735|           TARGET(CACHE) {
#  736|               frame->instr_ptr = next_instr;
#  737|->             next_instr += 1;
#  738|               INSTRUCTION_STATS(CACHE);
#  739|               assert(0 && "Executing a cache.");

Error: CLANG_WARNING: [#def79]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/generated_cases.c.h:2660:13: warning[deadcode.DeadStores]: Value stored to 'next_instr' is never read
# 2658|               _Py_CODEUNIT *this_instr = frame->instr_ptr = next_instr;
# 2659|               (void)this_instr;
# 2660|->             next_instr += 1;
# 2661|               INSTRUCTION_STATS(ENTER_EXECUTOR);
# 2662|               #ifdef _Py_TIER2

Error: CLANG_WARNING: [#def80]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/generated_cases.c.h:3567:13: warning[deadcode.DeadStores]: Value stored to 'next_instr' is never read
# 3565|           TARGET(INTERPRETER_EXIT) {
# 3566|               frame->instr_ptr = next_instr;
# 3567|->             next_instr += 1;
# 3568|               INSTRUCTION_STATS(INTERPRETER_EXIT);
# 3569|               PyObject *retval;

Error: CLANG_WARNING: [#def81]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/generated_cases.c.h:5119:13: warning[deadcode.DeadStores]: Value stored to 'next_instr' is never read
# 5117|           TARGET(RESERVED) {
# 5118|               frame->instr_ptr = next_instr;
# 5119|->             next_instr += 1;
# 5120|               INSTRUCTION_STATS(RESERVED);
# 5121|               assert(0 && "Executing RESERVED instruction.");

Error: CLANG_WARNING: [#def82]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/generated_cases.c.h:5181:13: warning[deadcode.DeadStores]: Value stored to 'next_instr' is never read
# 5179|           TARGET(RETURN_CONST) {
# 5180|               frame->instr_ptr = next_instr;
# 5181|->             next_instr += 1;
# 5182|               INSTRUCTION_STATS(RETURN_CONST);
# 5183|               PyObject *value;

Error: CLANG_WARNING: [#def83]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/generated_cases.c.h:5245:13: warning[deadcode.DeadStores]: Value stored to 'next_instr' is never read
# 5243|           TARGET(RETURN_VALUE) {
# 5244|               frame->instr_ptr = next_instr;
# 5245|->             next_instr += 1;
# 5246|               INSTRUCTION_STATS(RETURN_VALUE);
# 5247|               PyObject *retval;

Error: CLANG_WARNING: [#def84]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/generated_cases.c.h:6212:13: warning[deadcode.DeadStores]: Value stored to 'next_instr' is never read
# 6210|           TARGET(YIELD_VALUE) {
# 6211|               frame->instr_ptr = next_instr;
# 6212|->             next_instr += 1;
# 6213|               INSTRUCTION_STATS(YIELD_VALUE);
# 6214|               PyObject *retval;

Error: CLANG_WARNING: [#def85]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/import.c:993:12: warning[core.NullDereference]: Access to field 'm_index' results in a dereference of a null pointer (loaded from variable 'cached')
#  991|   {
#  992|       assert(cached->m_index > 0);
#  993|->     return cached->m_index;
#  994|   }
#  995|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/import.c:993:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cached’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/import.c: scope_hint: In function ‘finish_singlephase_extension’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/import.c: scope_hint: In function ‘finish_singlephase_extension’
#  991|   {
#  992|       assert(cached->m_index > 0);
#  993|->     return cached->m_index;
#  994|   }
#  995|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/import.c: scope_hint: In function ‘reload_singlephase_extension’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/import.c:1734:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘cached’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/import.c: scope_hint: In function ‘reload_singlephase_extension’
# 1732|                                struct _Py_ext_module_loader_info *info)
# 1733|   {
# 1734|->     PyModuleDef *def = cached->def;
# 1735|       assert(def != NULL);
# 1736|       assert_singlephase(cached);

Error: CLANG_WARNING: [#def88]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/import.c:1734:24: warning[core.NullDereference]: Access to field 'def' results in a dereference of a null pointer (loaded from variable 'cached')
# 1732|                                struct _Py_ext_module_loader_info *info)
# 1733|   {
# 1734|->     PyModuleDef *def = cached->def;
# 1735|       assert(def != NULL);
# 1736|       assert_singlephase(cached);

Error: COMPILER_WARNING: [#def89]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/instruction_sequence.c: scope_hint: In function ‘inst_seq_clear’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/instruction_sequence.c:453:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/instruction_sequence.gcda’ profile count data file not found
#  451|       0,                                      /* tp_alloc */
#  452|       inst_seq_new,                           /* tp_new */
#  453|-> };

Error: COMPILER_WARNING: [#def90]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/interpconfig.c: scope_hint: In function ‘_PyInterpreterConfig_InitFromState’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/interpconfig.c:268:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/interpconfig.gcda’ profile count data file not found
#  266|       };
#  267|       return 0;
#  268|-> }

Error: CLANG_WARNING: [#def91]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/jit.c:453:5: warning[deadcode.DeadStores]: Value stored to 'code' is never read
#  451|       group = &stencil_groups[_FATAL_ERROR];
#  452|       group->emit(code, data, executor, NULL, instruction_starts);
#  453|->     code += group->code_size;
#  454|       data += group->data_size;
#  455|       assert(code == memory + code_size);

Error: CLANG_WARNING: [#def92]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/jit.c:454:5: warning[deadcode.DeadStores]: Value stored to 'data' is never read
#  452|       group->emit(code, data, executor, NULL, instruction_starts);
#  453|       code += group->code_size;
#  454|->     data += group->data_size;
#  455|       assert(code == memory + code_size);
#  456|       assert(data == memory + code_size + data_size);

Error: COMPILER_WARNING: [#def93]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/jit.c: scope_hint: In function ‘_PyJIT_Free’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/jit.c:480:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/jit.gcda’ profile count data file not found
#  478|           }
#  479|       }
#  480|-> }
#  481|   
#  482|   #endif  // _Py_JIT

Error: COMPILER_WARNING: [#def94]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/perf_jit_trampoline.c: scope_hint: In function ‘perf_map_jit_fini’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/perf_jit_trampoline.c:614:1: warning[-Wmissing-profile]: ‘/builddir/build/BUILD/python3.13-3.13.0_b3-build/Python-3.13.0b3/build/optimized/perf_jit_trampoline.gcda’ profile count data file not found
#  612|       &perf_map_jit_write_entry,
#  613|       &perf_map_jit_fini,
#  614|-> };
#  615|   
#  616|   #endif

Error: GCC_ANALYZER_WARNING (CWE-465): [#def95]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/perf_trampoline.c: scope_hint: In function ‘compile_trampoline’
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/perf_trampoline.c:369:8: warning[-Wanalyzer-deref-before-check]: check of ‘_PyRuntime.ceval.perf.code_arena’ for NULL after already dereferencing it
#  367|   {
#  368|       size_t total_code_size = round_up(perf_code_arena->code_size + trampoline_api.code_padding, 16);
#  369|->     if ((perf_code_arena == NULL) ||
#  370|           (perf_code_arena->size_left <= total_code_size)) {
#  371|           if (new_code_arena() < 0) {

Error: CLANG_WARNING: [#def96]
python3.13-3.13.0_b3-build/Python-3.13.0b3/Python/symtable.c:2298:27: warning[core.NullDereference]: Access to field 'ste_can_see_class_scope' results in a dereference of a null pointer (loaded from field 'st_cur')
# 2296|   {
# 2297|       if (e) {
# 2298|->         int is_in_class = st->st_cur->ste_can_see_class_scope;
# 2299|           if (!symtable_enter_block(st, name, TypeVariableBlock, key, LOCATION(e)))
# 2300|               return 0;

Scan Properties

analyzer-version-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-clang18.1.7
diffbase-analyzer-version-cppcheck2.14.2
diffbase-analyzer-version-gcc14.1.1
diffbase-analyzer-version-gcc-analyzer14.1.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-enabled-pluginsclang, cppcheck, gcc, shellcheck
diffbase-exit-code0
diffbase-hostip-172-16-1-36.us-west-2.compute.internal
diffbase-mock-configfedora-41-x86_64
diffbase-project-namepython3.13-3.13.0~a5-2.fc40
diffbase-store-results-to/tmp/tmp9fn_e49n/python3.13-3.13.0~a5-2.fc40.tar.xz
diffbase-time-created2024-07-03 17:31:49
diffbase-time-finished2024-07-03 18:49:44
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmp9fn_e49n/python3.13-3.13.0~a5-2.fc40.tar.xz' '--gcc-analyze' '/tmp/tmp9fn_e49n/python3.13-3.13.0~a5-2.fc40.src.rpm'
diffbase-tool-versioncsmock-3.5.3-1.el9
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-36.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namepython3.13-3.13.0~b3-2.fc41
store-results-to/tmp/tmpsb2mm_cw/python3.13-3.13.0~b3-2.fc41.tar.xz
time-created2024-07-03 18:50:06
time-finished2024-07-03 20:14:41
titleNewly introduced defects
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpsb2mm_cw/python3.13-3.13.0~b3-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpsb2mm_cw/python3.13-3.13.0~b3-2.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9