python-pycdio-2.1.1-2.fc42

List of Findings

Error: COMPILER_WARNING: [#def1]
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pycdio_wrap.c: scope_hint: In function ‘get_hwinfo’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pycdio_wrap.c:4026:5: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 8 bytes from a string of length 8
# 4026 |     strncpy(vendor, hw_info.psz_vendor, CDIO_MMC_HW_VENDOR_LEN);
#      |     ^
# 4024|   
# 4025|     if (b_got_hwinfo) {
# 4026|->     strncpy(vendor, hw_info.psz_vendor, CDIO_MMC_HW_VENDOR_LEN);
# 4027|       strncpy(model, hw_info.psz_model, CDIO_MMC_HW_MODEL_LEN);
# 4028|       strncpy(revision, hw_info.psz_revision, CDIO_MMC_HW_REVISION_LEN);

Error: COMPILER_WARNING: [#def2]
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pycdio_wrap.c:4027:5: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 16 bytes from a string of length 16
# 4027 |     strncpy(model, hw_info.psz_model, CDIO_MMC_HW_MODEL_LEN);
#      |     ^
# 4025|     if (b_got_hwinfo) {
# 4026|       strncpy(vendor, hw_info.psz_vendor, CDIO_MMC_HW_VENDOR_LEN);
# 4027|->     strncpy(model, hw_info.psz_model, CDIO_MMC_HW_MODEL_LEN);
# 4028|       strncpy(revision, hw_info.psz_revision, CDIO_MMC_HW_REVISION_LEN);
# 4029|     }

Error: COMPILER_WARNING: [#def3]
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pycdio_wrap.c:4028:5: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 4 bytes from a string of length 4
# 4028 |     strncpy(revision, hw_info.psz_revision, CDIO_MMC_HW_REVISION_LEN);
#      |     ^
# 4026|       strncpy(vendor, hw_info.psz_vendor, CDIO_MMC_HW_VENDOR_LEN);
# 4027|       strncpy(model, hw_info.psz_model, CDIO_MMC_HW_MODEL_LEN);
# 4028|->     strncpy(revision, hw_info.psz_revision, CDIO_MMC_HW_REVISION_LEN);
# 4029|     }
# 4030|   

Error: COMPILER_WARNING (CWE-704): [#def4]
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pycdio_wrap.c: scope_hint: In function ‘_wrap_cdtext_list_languages_v2’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pycdio_wrap.c:5554:54: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘cdtext_list_languages_v2’ discards ‘const’ qualifier from pointer target type
# 5554 |   result = (cdtext_lang_t *)cdtext_list_languages_v2((cdtext_t const *)arg1);
#      |                                                      ^~~~~~~~~~~~~~~~~~~~~~
/usr/include/cdio/cdio.h:59: included_from: Included from here.
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pycdio_wrap.c:3251: included_from: Included from here.
/usr/include/cdio/cdtext.h:395:51: note: expected ‘cdtext_t *’ {aka ‘struct cdtext_s *’} but argument is of type ‘const cdtext_t *’ {aka ‘const struct cdtext_s *’}
#  395 | cdtext_lang_t *cdtext_list_languages_v2(cdtext_t *p_cdtext);
#      |                                         ~~~~~~~~~~^~~~~~~~
# 5552|     }
# 5553|     arg1 = (cdtext_t *)(argp1);
# 5554|->   result = (cdtext_lang_t *)cdtext_list_languages_v2((cdtext_t const *)arg1);
# 5555|     resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 |  0 );
# 5556|     return resultobj;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_MangledTypeQueryModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:639:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1161:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6069:10: note: in expansion of macro ‘SWIG_ConvertPtr’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1161:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6069:10: note: in expansion of macro ‘SWIG_ConvertPtr’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1161:57: note: in expansion of macro ‘SWIG_Python_ConvertPtr’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6069:10: note: in expansion of macro ‘SWIG_ConvertPtr’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:3508:12: note: in expansion of macro ‘SWIG_TypeQuery’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:3508:12: note: in expansion of macro ‘SWIG_TypeQuery’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:3012:37: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:3012:37: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:3012:37: note: in expansion of macro ‘SWIG_GetModule’
#  637|     swig_module_info *iter = start;
#  638|     do {
#  639|->     if (iter->size) {
#  640|         size_t l = 0;
#  641|         size_t r = iter->size - 1;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def6]
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1170:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6925:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:7007:1: note: in expansion of macro ‘SWIG_init’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6747:17: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6747:17: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:7126:3: note: in expansion of macro ‘SWIG_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:921:25: note: in expansion of macro ‘Py_INCREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1637:3: note: in expansion of macro ‘SWIG_Py_INCREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:923:25: note: in expansion of macro ‘Py_DECREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6936:9: note: in expansion of macro ‘SWIG_Py_DECREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6925:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1170:57: note: read of 8 bytes from after the end of ‘swig_const_table’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6925:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1170:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6925:15: note: in expansion of macro ‘SWIG_InternalNewPointerObj’
# 1168|   #endif
# 1169|   
# 1170|-> #define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
# 1171|   
# 1172|   #define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty) 

Error: GCC_ANALYZER_WARNING (CWE-126): [#def7]
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1178:57: warning[-Wanalyzer-out-of-bounds]: buffer over-read
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:7007:1: note: in expansion of macro ‘SWIG_init’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6747:17: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6747:17: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:7126:3: note: in expansion of macro ‘SWIG_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:921:25: note: in expansion of macro ‘Py_INCREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1637:3: note: in expansion of macro ‘SWIG_Py_INCREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:923:25: note: in expansion of macro ‘Py_DECREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6936:9: note: in expansion of macro ‘SWIG_Py_DECREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1178:57: note: read of 8 bytes from after the end of ‘swig_const_table’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1178:57: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
# 1176|   /* for raw packed data */
# 1177|   #define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
# 1178|-> #define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)
# 1179|   
# 1180|   /* for class or struct pointers */

Error: GCC_ANALYZER_WARNING (CWE-126): [#def8]
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6922:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:7007:1: note: in expansion of macro ‘SWIG_init’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6747:17: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6747:17: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:7126:3: note: in expansion of macro ‘SWIG_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
/usr/include/python3.13/Python.h:72: included_from: Included from here.
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:203: included_from: Included from here.
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:921:25: note: in expansion of macro ‘Py_INCREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1637:3: note: in expansion of macro ‘SWIG_Py_INCREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:923:25: note: in expansion of macro ‘Py_DECREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6936:9: note: in expansion of macro ‘SWIG_Py_DECREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6922:29: note: read of 4 bytes from after the end of ‘swig_const_table’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6922:29: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
# 6920|       PyObject *obj = 0;
# 6921|       size_t i;
# 6922|->     for (i = 0; constants[i].type; ++i) {
# 6923|         switch(constants[i].type) {
# 6924|         case SWIG_PY_POINTER:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def9]
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6925:78: warning[-Wanalyzer-out-of-bounds]: buffer over-read
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1170:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:7007:1: note: in expansion of macro ‘SWIG_init’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6747:17: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6747:17: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:7126:3: note: in expansion of macro ‘SWIG_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:921:25: note: in expansion of macro ‘Py_INCREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1637:3: note: in expansion of macro ‘SWIG_Py_INCREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:923:25: note: in expansion of macro ‘Py_DECREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6936:9: note: in expansion of macro ‘SWIG_Py_DECREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1170:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6925:78: note: read of 8 bytes from after the end of ‘swig_const_table’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1170:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6925:78: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1170:94: note: in definition of macro ‘SWIG_InternalNewPointerObj’
# 6923|         switch(constants[i].type) {
# 6924|         case SWIG_PY_POINTER:
# 6925|->         obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
# 6926|           break;
# 6927|         case SWIG_PY_BINARY:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def10]
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:66: warning[-Wanalyzer-out-of-bounds]: buffer over-read
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1178:87: note: in definition of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:7007:1: note: in expansion of macro ‘SWIG_init’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6747:17: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6747:17: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:7126:3: note: in expansion of macro ‘SWIG_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:921:25: note: in expansion of macro ‘Py_INCREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1637:3: note: in expansion of macro ‘SWIG_Py_INCREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:923:25: note: in expansion of macro ‘Py_DECREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6936:9: note: in expansion of macro ‘SWIG_Py_DECREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1178:87: note: in definition of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:66: note: read of 8 bytes from after the end of ‘swig_const_table’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1178:87: note: in definition of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:66: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1178:87: note: in definition of macro ‘SWIG_NewPackedObj’
# 6926|           break;
# 6927|         case SWIG_PY_BINARY:
# 6928|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
# 6929|           break;
# 6930|         default:

Error: GCC_ANALYZER_WARNING (CWE-126): [#def11]
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:89: warning[-Wanalyzer-out-of-bounds]: buffer over-read
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1178:91: note: in definition of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:7007:1: note: in expansion of macro ‘SWIG_init’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6747:17: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6747:17: note: in expansion of macro ‘SWIG_GetModule’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:7126:3: note: in expansion of macro ‘SWIG_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:921:25: note: in expansion of macro ‘Py_INCREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1637:3: note: in expansion of macro ‘SWIG_Py_INCREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:15: note: in expansion of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:923:25: note: in expansion of macro ‘Py_DECREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6936:9: note: in expansion of macro ‘SWIG_Py_DECREF’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c: scope_hint: In function ‘SWIG_Python_InstallConstants’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1178:91: note: in definition of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:89: note: read of 8 bytes from after the end of ‘swig_const_table’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1178:91: note: in definition of macro ‘SWIG_NewPackedObj’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:6928:89: note: valid subscripts for ‘swig_const_table’ are ‘[0]’ to ‘[0]’
python-pycdio-2.1.1-build/pycdio-2.1.1/swig/pyiso9660_wrap.c:1178:91: note: in definition of macro ‘SWIG_NewPackedObj’
# 6926|           break;
# 6927|         case SWIG_PY_BINARY:
# 6928|->         obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
# 6929|           break;
# 6930|         default:

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-160.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namepython-pycdio-2.1.1-2.fc42
store-results-to/tmp/tmpllaczcrb/python-pycdio-2.1.1-2.fc42.tar.xz
time-created2024-11-13 02:47:19
time-finished2024-11-13 02:49:15
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpllaczcrb/python-pycdio-2.1.1-2.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpllaczcrb/python-pycdio-2.1.1-2.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9