python-gssapi-1.7.3-9.fc41

List of Defects

Error: CLANG_WARNING: [#def1]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/chan_bindings.c:2987:7: warning[unix.Malloc]: Potential leak of memory pointed to by '__pyx_v_res'
# 2985|    */
# 2986|       if (unlikely(__pyx_v_self->initiator_address == Py_None)) {
# 2987|->       PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
# 2988|         __PYX_ERR(0, 38, __pyx_L1_error)
# 2989|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/chan_bindings.c: scope_hint: In function ‘__Pyx_MergeVtables’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/chan_bindings.c:7416:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘base_vtables’
# 7414|       }
# 7415|       base_vtables = (void**) malloc(sizeof(void*) * (size_t)(base_depth + 1));
# 7416|->     base_vtables[0] = unknown;
# 7417|       for (i = 1; i < PyTuple_GET_SIZE(bases); i++) {
# 7418|           void* base_vtable = __Pyx_GetVtable(((PyTypeObject*)PyTuple_GET_ITEM(bases, i)));

Error: CLANG_WARNING: [#def3]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/chan_bindings.c:8479:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 8477|       case 1:
# 8478|           self = args[0];
# 8479|->         args += 1;
# 8480|           nargs -= 1;
# 8481|           break;

Error: CLANG_WARNING: [#def4]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:5750:28: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 5748|    *             rn = None
# 5749|    */
# 5750|->       __pyx_v_rn->raw_name = __pyx_v_res_name;
# 5751|   
# 5752|         /* "gssapi/raw/creds.pyx":222

Error: CLANG_WARNING: [#def5]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:5802:38: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 5800|    *             elif res_usage == GSS_C_ACCEPT:
# 5801|    */
# 5802|->       __pyx_t_1 = (__pyx_v_res_usage == GSS_C_INITIATE);
# 5803|         if (__pyx_t_1) {
# 5804|   

Error: CLANG_WARNING: [#def6]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:5921:19: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 5919|    *         py_mechs = None
# 5920|    */
# 5921|->       __pyx_t_2 = __pyx_f_6gssapi_3raw_17cython_converters_c_c_ttl_to_py(__pyx_v_res_ttl); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 239, __pyx_L1_error)
# 5922|         __Pyx_GOTREF(__pyx_t_2);
# 5923|         __Pyx_DECREF_SET(__pyx_v_py_ttl, __pyx_t_2);

Error: CLANG_WARNING: [#def7]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:5962:19: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 5960|    *         return InquireCredResult(rn, py_ttl, py_usage, py_mechs)
# 5961|    */
# 5962|->       __pyx_t_2 = __pyx_f_6gssapi_3raw_17cython_converters_c_create_oid_set(__pyx_v_res_mechs, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 243, __pyx_L1_error)
# 5963|         __Pyx_GOTREF(__pyx_t_2);
# 5964|         __Pyx_DECREF_SET(__pyx_v_py_mechs, __pyx_t_2);

Error: CLANG_WARNING: [#def8]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:6523:28: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 6521|    *             rn = None
# 6522|    */
# 6523|->       __pyx_v_rn->raw_name = __pyx_v_res_name;
# 6524|   
# 6525|         /* "gssapi/raw/creds.pyx":281

Error: CLANG_WARNING: [#def9]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:8374:21: warning[core.NullDereference]: Array access (from variable 'kwvalues') results in a null pointer dereference
# 8372|               if (!key) goto bad;
# 8373|   #endif
# 8374|->             value = kwvalues[pos];
# 8375|               pos++;
# 8376|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c: scope_hint: In function ‘__Pyx_ParseOptionalKeywords’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:8374:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘kwvalues’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:1452:43: note: in definition of macro ‘unlikely’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:1452:43: note: in definition of macro ‘unlikely’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:1452:43: note: in definition of macro ‘unlikely’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:1452:43: note: in definition of macro ‘unlikely’
/usr/include/python3.13/Python.h:68: included_from: Included from here.
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:43: included_from: Included from here.
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:8354:9: note: in expansion of macro ‘Py_XDECREF’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:8354:9: note: in expansion of macro ‘Py_XDECREF’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:8355:9: note: in expansion of macro ‘Py_XDECREF’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:8355:9: note: in expansion of macro ‘Py_XDECREF’
/usr/include/python3.13/tupleobject.h:39: included_from: Included from here.
/usr/include/python3.13/Python.h:84: included_from: Included from here.
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:8359:20: note: in expansion of macro ‘PyTuple_GET_SIZE’
/usr/include/python3.13/cpython/tupleobject.h:23:12: note: in expansion of macro ‘Py_SIZE’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c: scope_hint: In function ‘__Pyx_ParseOptionalKeywords’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:8369:19: note: in expansion of macro ‘PyTuple_GET_ITEM’
# 8372|               if (!key) goto bad;
# 8373|   #endif
# 8374|->             value = kwvalues[pos];
# 8375|               pos++;
# 8376|           }

Error: CLANG_WARNING: [#def11]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/creds.c:10865:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
#10863|       case 1:
#10864|           self = args[0];
#10865|->         args += 1;
#10866|           nargs -= 1;
#10867|           break;

Error: CLANG_WARNING: [#def12]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_cred_imp_exp.c:6274:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 6272|       case 1:
# 6273|           self = args[0];
# 6274|->         args += 1;
# 6275|           nargs -= 1;
# 6276|           break;

Error: CLANG_WARNING: [#def13]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_cred_store.c:3168:5: warning[unix.Malloc]: Potential leak of memory pointed to by '__pyx_v_res'
# 3166|    */
# 3167|     if (unlikely(__pyx_v_values == Py_None)) {
# 3168|->     PyErr_SetString(PyExc_TypeError, "object of type 'NoneType' has no len()");
# 3169|       __PYX_ERR(0, 75, __pyx_L1_error)
# 3170|     }

Error: CLANG_WARNING: [#def14]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_cred_store.c:3622:8: warning[core.NullDereference]: Access to field 'elements' results in a dereference of a null pointer (loaded from variable '__pyx_v_kvset')
# 3620|    * 
# 3621|    */
# 3622|->   free(__pyx_v_kvset->elements);
# 3623|   
# 3624|     /* "gssapi/raw/ext_cred_store.pyx":101

Error: COMPILER_WARNING (CWE-704): [#def15]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_cred_store.c: scope_hint: In function ‘__pyx_pf_6gssapi_3raw_14ext_cred_store_acquire_cred_from’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_cred_store.c:4120:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 4118|    */
# 4119|     /*else*/ {
# 4120|->     __pyx_v_c_store = GSS_C_NO_CRED_STORE;
# 4121|     }
# 4122|     __pyx_L6:;

Error: COMPILER_WARNING (CWE-704): [#def16]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_cred_store.c: scope_hint: In function ‘__pyx_pf_6gssapi_3raw_14ext_cred_store_2add_cred_from’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_cred_store.c:4888:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 4886|    */
# 4887|     /*else*/ {
# 4888|->     __pyx_v_c_store = GSS_C_NO_CRED_STORE;
# 4889|     }
# 4890|     __pyx_L5:;

Error: COMPILER_WARNING (CWE-704): [#def17]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_cred_store.c: scope_hint: In function ‘__pyx_pf_6gssapi_3raw_14ext_cred_store_4store_cred_into’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_cred_store.c:5581:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
# 5579|    */
# 5580|     /*else*/ {
# 5581|->     __pyx_v_c_store = GSS_C_NO_CRED_STORE;
# 5582|     }
# 5583|     __pyx_L5:;

Error: CLANG_WARNING: [#def18]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_cred_store.c:9340:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 9338|       case 1:
# 9339|           self = args[0];
# 9340|->         args += 1;
# 9341|           nargs -= 1;
# 9342|           break;

Error: CLANG_WARNING: [#def19]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_dce.c:14561:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
#14559|       case 1:
#14560|           self = args[0];
#14561|->         args += 1;
#14562|           nargs -= 1;
#14563|           break;

Error: CLANG_WARNING: [#def20]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_dce_aead.c:6356:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 6354|       case 1:
# 6355|           self = args[0];
# 6356|->         args += 1;
# 6357|           nargs -= 1;
# 6358|           break;

Error: CLANG_WARNING: [#def21]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_ggf.c:6680:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 6678|       case 1:
# 6679|           self = args[0];
# 6680|->         args += 1;
# 6681|           nargs -= 1;
# 6682|           break;

Error: CLANG_WARNING: [#def22]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_iov_mic.c:6477:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 6475|       case 1:
# 6476|           self = args[0];
# 6477|->         args += 1;
# 6478|           nargs -= 1;
# 6479|           break;

Error: CLANG_WARNING: [#def23]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_password.c:6468:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 6466|       case 1:
# 6467|           self = args[0];
# 6468|->         args += 1;
# 6469|           nargs -= 1;
# 6470|           break;

Error: CLANG_WARNING: [#def24]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_password_add.c:6472:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 6470|       case 1:
# 6471|           self = args[0];
# 6472|->         args += 1;
# 6473|           nargs -= 1;
# 6474|           break;

Error: CLANG_WARNING: [#def25]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_rfc4178.c:5820:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 5818|       case 1:
# 5819|           self = args[0];
# 5820|->         args += 1;
# 5821|           nargs -= 1;
# 5822|           break;

Error: CLANG_WARNING: [#def26]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_rfc5587.c:6898:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 6896|       case 1:
# 6897|           self = args[0];
# 6898|->         args += 1;
# 6899|           nargs -= 1;
# 6900|           break;

Error: CLANG_WARNING: [#def27]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_rfc5588.c:6439:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 6437|       case 1:
# 6438|           self = args[0];
# 6439|->         args += 1;
# 6440|           nargs -= 1;
# 6441|           break;

Error: CLANG_WARNING: [#def28]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_rfc5801.c:6262:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 6260|       case 1:
# 6261|           self = args[0];
# 6262|->         args += 1;
# 6263|           nargs -= 1;
# 6264|           break;

Error: COMPILER_WARNING (CWE-195): [#def29]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_rfc6680.c: scope_hint: In function ‘__pyx_pf_6gssapi_3raw_11ext_rfc6680_2inquire_name’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_rfc6680.c:3296:37: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
# 3296 |       for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
#      |                                     ^
# 3294|         __pyx_t_3 = __pyx_v_attr_names->count;
# 3295|         __pyx_t_4 = __pyx_t_3;
# 3296|->       for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
# 3297|           __pyx_v_i = __pyx_t_5;
# 3298|   

Error: COMPILER_WARNING (CWE-457): [#def30]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_rfc6680.c:3816:15: warning[-Wmaybe-uninitialized]: ‘__pyx_v_i’ may be used uninitialized
# 3816 |     __pyx_v_i = (__pyx_v_i + 1);
#      |     ~~~~~~~~~~^~~~~~~~~~~~~~~~~
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_rfc6680.c: scope_hint: In function ‘__pyx_pw_6gssapi_3raw_11ext_rfc6680_5set_name_attribute’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_rfc6680.c:3689:10: note: ‘__pyx_v_i’ was declared here
# 3689 |   size_t __pyx_v_i;
#      |          ^~~~~~~~~
# 3814|    *             maj_stat = gss_set_name_attribute(&min_stat, name.raw_name,
# 3815|    */
# 3816|->     __pyx_v_i = (__pyx_v_i + 1);
# 3817|   
# 3818|       /* "gssapi/raw/ext_rfc6680.pyx":111

Error: CLANG_WARNING: [#def31]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_rfc6680.c:3816:28: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
# 3814|    *             maj_stat = gss_set_name_attribute(&min_stat, name.raw_name,
# 3815|    */
# 3816|->     __pyx_v_i = (__pyx_v_i + 1);
# 3817|   
# 3818|       /* "gssapi/raw/ext_rfc6680.pyx":111

Error: CLANG_WARNING: [#def32]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_rfc6680.c:7997:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 7995|       case 1:
# 7996|           self = args[0];
# 7997|->         args += 1;
# 7998|           nargs -= 1;
# 7999|           break;

Error: CLANG_WARNING: [#def33]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_s4u.c:7234:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 7232|       case 1:
# 7233|           self = args[0];
# 7234|->         args += 1;
# 7235|           nargs -= 1;
# 7236|           break;

Error: CLANG_WARNING: [#def34]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/ext_set_cred_opt.c:5688:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 5686|       case 1:
# 5687|           self = args[0];
# 5688|->         args += 1;
# 5689|           nargs -= 1;
# 5690|           break;

Error: CLANG_WARNING: [#def35]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/message.c:7399:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 7397|       case 1:
# 7398|           self = args[0];
# 7399|->         args += 1;
# 7400|           nargs -= 1;
# 7401|           break;

Error: CLANG_WARNING: [#def36]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/misc.c:11512:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
#11510|       case 1:
#11511|           self = args[0];
#11512|->         args += 1;
#11513|           nargs -= 1;
#11514|           break;

Error: CLANG_WARNING: [#def37]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:3953:45: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value
# 3951|    *                 py_name_type = None
# 3952|    */
# 3953|->       __pyx_t_2 = (__pyx_v_output_name_type == GSS_C_NO_OID);
# 3954|         if (__pyx_t_2) {
# 3955|   

Error: CLANG_WARNING: [#def38]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:6965:21: warning[core.NullDereference]: Array access (from variable 'kwvalues') results in a null pointer dereference
# 6963|               if (!key) goto bad;
# 6964|   #endif
# 6965|->             value = kwvalues[pos];
# 6966|               pos++;
# 6967|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c: scope_hint: In function ‘__Pyx_ParseOptionalKeywords’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:6965:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘kwvalues’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:1451:43: note: in definition of macro ‘unlikely’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:1451:43: note: in definition of macro ‘unlikely’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:1451:43: note: in definition of macro ‘unlikely’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:1451:43: note: in definition of macro ‘unlikely’
/usr/include/python3.13/Python.h:68: included_from: Included from here.
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:43: included_from: Included from here.
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:6945:9: note: in expansion of macro ‘Py_XDECREF’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:6945:9: note: in expansion of macro ‘Py_XDECREF’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:6946:9: note: in expansion of macro ‘Py_XDECREF’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:6946:9: note: in expansion of macro ‘Py_XDECREF’
/usr/include/python3.13/tupleobject.h:39: included_from: Included from here.
/usr/include/python3.13/Python.h:84: included_from: Included from here.
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:6950:20: note: in expansion of macro ‘PyTuple_GET_SIZE’
/usr/include/python3.13/cpython/tupleobject.h:23:12: note: in expansion of macro ‘Py_SIZE’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c: scope_hint: In function ‘__Pyx_ParseOptionalKeywords’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:6960:19: note: in expansion of macro ‘PyTuple_GET_ITEM’
# 6963|               if (!key) goto bad;
# 6964|   #endif
# 6965|->             value = kwvalues[pos];
# 6966|               pos++;
# 6967|           }

Error: CLANG_WARNING: [#def40]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/names.c:9387:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
# 9385|       case 1:
# 9386|           self = args[0];
# 9387|->         args += 1;
# 9388|           nargs -= 1;
# 9389|           break;

Error: CLANG_WARNING: [#def41]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/oids.c:7276:21: warning[core.NullDereference]: Array access (from variable 'kwvalues') results in a null pointer dereference
# 7274|               if (!key) goto bad;
# 7275|   #endif
# 7276|->             value = kwvalues[pos];
# 7277|               pos++;
# 7278|           }

Error: CLANG_WARNING: [#def42]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/oids.c:7352:32: warning[core.NullDereference]: Dereference of null pointer
# 7350|                   PyObject*** argname = argnames;
# 7351|                   while (argname != first_kw_arg) {
# 7352|->                     int cmp = (**argname == key) ? 0 :
# 7353|                       #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
# 7354|                           (__Pyx_PyUnicode_GET_LENGTH(**argname) != __Pyx_PyUnicode_GET_LENGTH(key)) ? 1 :

Error: CLANG_WARNING: [#def43]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/oids.c:7906:26: warning[deadcode.DeadStores]: Value stored to 'digits' during its initialization is never read
# 7904|               a = __Pyx_PyLong_CompactValue(op1);
# 7905|           } else {
# 7906|->             const digit* digits = __Pyx_PyLong_Digits(op1);
# 7907|               const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(op1);
# 7908|               switch (size) {

Error: CLANG_WARNING: [#def44]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/oids.c:10974:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
#10972|       case 1:
#10973|           self = args[0];
#10974|->         args += 1;
#10975|           nargs -= 1;
#10976|           break;

Error: CLANG_WARNING: [#def45]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:6392:28: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 6390|    *             sn = None
# 6391|    */
# 6392|->       __pyx_v_sn->raw_name = __pyx_v_output_init_name;
# 6393|   
# 6394|         /* "gssapi/raw/sec_contexts.pyx":322

Error: CLANG_WARNING: [#def46]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:6430:45: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 6428|         goto __pyx_L13_bool_binop_done;
# 6429|       }
# 6430|->     __pyx_t_3 = (__pyx_v_output_target_name != GSS_C_NO_NAME);
# 6431|       __pyx_t_1 = __pyx_t_3;
# 6432|       __pyx_L13_bool_binop_done:;

Error: CLANG_WARNING: [#def47]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:6508:39: warning[core.NullDereference]: Array access (from variable '__pyx_v_output_mech_type') results in an undefined pointer dereference
# 6506|    *             py_mech_type = None
# 6507|    */
# 6508|->       __pyx_v_py_mech_type->raw_oid = (__pyx_v_output_mech_type[0]);
# 6509|   
# 6510|         /* "gssapi/raw/sec_contexts.pyx":334

Error: CLANG_WARNING: [#def48]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:6546:30: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 6544|         goto __pyx_L17_bool_binop_done;
# 6545|       }
# 6546|->     __pyx_t_3 = (__pyx_v_ttl != GSS_C_INDEFINITE);
# 6547|       __pyx_t_1 = __pyx_t_3;
# 6548|       __pyx_L17_bool_binop_done:;

Error: CLANG_WARNING: [#def49]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:6607:19: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 6605|         __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_n_s_RequirementFlag); if (unlikely(!__pyx_t_5)) __PYX_ERR(2, 346, __pyx_L1_error)
# 6606|         __Pyx_GOTREF(__pyx_t_5);
# 6607|->       __pyx_t_6 = __Pyx_PyInt_From_uint32_t(__pyx_v_output_flags); if (unlikely(!__pyx_t_6)) __PYX_ERR(2, 346, __pyx_L1_error)
# 6608|         __Pyx_GOTREF(__pyx_t_6);
# 6609|         __pyx_t_7 = NULL;

Error: CLANG_WARNING: [#def50]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:6676:70: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 6674|    *             py_locally_init = None
# 6675|    */
# 6676|->       __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_v_output_locally_init != 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 351, __pyx_L1_error)
# 6677|         __Pyx_GOTREF(__pyx_t_2);
# 6678|         __pyx_v_py_locally_init = __pyx_t_2;

Error: CLANG_WARNING: [#def51]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:6721:62: warning[core.UndefinedBinaryOperatorResult]: The left operand of '!=' is a garbage value
# 6719|    *             py_complete = None
# 6720|    */
# 6721|->       __pyx_t_2 = __Pyx_PyBool_FromLong((__pyx_v_is_complete != 0)); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 356, __pyx_L1_error)
# 6722|         __Pyx_GOTREF(__pyx_t_2);
# 6723|         __pyx_v_py_complete = __pyx_t_2;

Error: CLANG_WARNING: [#def52]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:9951:21: warning[core.NullDereference]: Array access (from variable 'kwvalues') results in a null pointer dereference
# 9949|               if (!key) goto bad;
# 9950|   #endif
# 9951|->             value = kwvalues[pos];
# 9952|               pos++;
# 9953|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c: scope_hint: In function ‘__Pyx_ParseOptionalKeywords’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:9951:29: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘kwvalues’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:1453:43: note: in definition of macro ‘unlikely’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:1453:43: note: in definition of macro ‘unlikely’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:1453:43: note: in definition of macro ‘unlikely’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:1453:43: note: in definition of macro ‘unlikely’
/usr/include/python3.13/Python.h:68: included_from: Included from here.
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:43: included_from: Included from here.
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:9931:9: note: in expansion of macro ‘Py_XDECREF’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:9931:9: note: in expansion of macro ‘Py_XDECREF’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:9932:9: note: in expansion of macro ‘Py_XDECREF’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:9932:9: note: in expansion of macro ‘Py_XDECREF’
/usr/include/python3.13/tupleobject.h:39: included_from: Included from here.
/usr/include/python3.13/Python.h:84: included_from: Included from here.
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:9936:20: note: in expansion of macro ‘PyTuple_GET_SIZE’
/usr/include/python3.13/cpython/tupleobject.h:23:12: note: in expansion of macro ‘Py_SIZE’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c: scope_hint: In function ‘__Pyx_ParseOptionalKeywords’
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:9946:19: note: in expansion of macro ‘PyTuple_GET_ITEM’
# 9949|               if (!key) goto bad;
# 9950|   #endif
# 9951|->             value = kwvalues[pos];
# 9952|               pos++;
# 9953|           }

Error: CLANG_WARNING: [#def54]
python-gssapi-1.7.3-build/python-gssapi-1.7.3/gssapi/raw/sec_contexts.c:12373:9: warning[deadcode.DeadStores]: Value stored to 'args' is never read
#12371|       case 1:
#12372|           self = args[0];
#12373|->         args += 1;
#12374|           nargs -= 1;
#12375|           break;

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
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-240.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namepython-gssapi-1.7.3-9.fc41
store-results-to/tmp/tmpdsetm_0o/python-gssapi-1.7.3-9.fc41.tar.xz
time-created2024-07-03 17:24:40
time-finished2024-07-03 17:32:09
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpdsetm_0o/python-gssapi-1.7.3-9.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpdsetm_0o/python-gssapi-1.7.3-9.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9