Error: GCC_ANALYZER_WARNING (CWE-476): [#def1] pycdio-2.1.1/swig/pycdio_wrap.c:724:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’ pycdio-2.1.1/swig/pycdio_wrap.c:7044:22: enter_function: entry to ‘_wrap_get_mcn’ pycdio-2.1.1/swig/pycdio_wrap.c:7047:9: release_memory: ‘argp1’ is NULL pycdio-2.1.1/swig/pycdio_wrap.c:7053:6: branch_false: following ‘false’ branch (when ‘args’ is non-NULL)... pycdio-2.1.1/swig/pycdio_wrap.c:7055:10: branch_false: ...to here pycdio-2.1.1/swig/pycdio_wrap.c:7055:10: call_function: calling ‘SWIG_Python_ConvertPtrAndOwn’ from ‘_wrap_get_mcn’ pycdio-2.1.1/swig/pycdio_wrap.c:7055:10: return_function: returning to ‘_wrap_get_mcn’ from ‘SWIG_Python_ConvertPtrAndOwn’ pycdio-2.1.1/swig/pycdio_wrap.c:7056:6: branch_false: following ‘false’ branch... pycdio-2.1.1/swig/pycdio_wrap.c:7059:3: branch_false: ...to here pycdio-2.1.1/swig/pycdio_wrap.c:7059:3: release_memory: ‘argp1’ is NULL pycdio-2.1.1/swig/pycdio_wrap.c:7062:8: branch_true: following ‘true’ branch... pycdio-2.1.1/swig/pycdio_wrap.c:7062:5: branch_true: ...to here pycdio-2.1.1/swig/pycdio_wrap.c:7067:15: call_function: calling ‘SWIG_FromCharPtr’ from ‘_wrap_get_mcn’ # 722| swig_module_info *iter = start; # 723| do { # 724|-> if (iter->size) { # 725| size_t l = 0; # 726| size_t r = iter->size - 1; Error: CPPCHECK_WARNING (CWE-457): [#def2] pycdio-2.1.1/swig/pycdio_wrap.c:872: warning[uninitvar]: Uninitialized variable: buff # 870| *r = 0; # 871| } # 872|-> return buff; # 873| } # 874| Error: CPPCHECK_WARNING (CWE-476): [#def3] pycdio-2.1.1/swig/pycdio_wrap.c:1901: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data # 1899| SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); # 1900| /* the klass element */ # 1901|-> data->klass = obj; # 1902| SWIG_Py_INCREF(data->klass); # 1903| /* the newraw method and newargs arguments used to create a new raw instance */ Error: CPPCHECK_WARNING (CWE-476): [#def4] pycdio-2.1.1/swig/pycdio_wrap.c:1902: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data # 1900| /* the klass element */ # 1901| data->klass = obj; # 1902|-> SWIG_Py_INCREF(data->klass); # 1903| /* the newraw method and newargs arguments used to create a new raw instance */ # 1904| if (PyClass_Check(obj)) { Error: COMPILER_WARNING: [#def5] pycdio-2.1.1/swig/pycdio_wrap.c: scope_hint: In function ‘get_hwinfo’ pycdio-2.1.1/swig/pycdio_wrap.c:4263:5: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 8 bytes from a string of length 8 # 4263 | strncpy(vendor, hw_info.psz_vendor, CDIO_MMC_HW_VENDOR_LEN); # | ^ # 4261| # 4262| if (b_got_hwinfo) { # 4263|-> strncpy(vendor, hw_info.psz_vendor, CDIO_MMC_HW_VENDOR_LEN); # 4264| strncpy(model, hw_info.psz_model, CDIO_MMC_HW_MODEL_LEN); # 4265| strncpy(revision, hw_info.psz_revision, CDIO_MMC_HW_REVISION_LEN); Error: COMPILER_WARNING: [#def6] pycdio-2.1.1/swig/pycdio_wrap.c:4264:5: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 16 bytes from a string of length 16 # 4264 | strncpy(model, hw_info.psz_model, CDIO_MMC_HW_MODEL_LEN); # | ^ # 4262| if (b_got_hwinfo) { # 4263| strncpy(vendor, hw_info.psz_vendor, CDIO_MMC_HW_VENDOR_LEN); # 4264|-> strncpy(model, hw_info.psz_model, CDIO_MMC_HW_MODEL_LEN); # 4265| strncpy(revision, hw_info.psz_revision, CDIO_MMC_HW_REVISION_LEN); # 4266| } Error: COMPILER_WARNING: [#def7] pycdio-2.1.1/swig/pycdio_wrap.c:4265:5: warning[-Wstringop-truncation]: ‘strncpy’ output may be truncated copying 4 bytes from a string of length 4 # 4265 | strncpy(revision, hw_info.psz_revision, CDIO_MMC_HW_REVISION_LEN); # | ^ # 4263| strncpy(vendor, hw_info.psz_vendor, CDIO_MMC_HW_VENDOR_LEN); # 4264| strncpy(model, hw_info.psz_model, CDIO_MMC_HW_MODEL_LEN); # 4265|-> strncpy(revision, hw_info.psz_revision, CDIO_MMC_HW_REVISION_LEN); # 4266| } # 4267| Error: COMPILER_WARNING (CWE-704): [#def8] pycdio-2.1.1/swig/pycdio_wrap.c: scope_hint: In function ‘_wrap_cdtext_list_languages_v2’ pycdio-2.1.1/swig/pycdio_wrap.c:5791:54: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘cdtext_list_languages_v2’ discards ‘const’ qualifier from pointer target type # 5791 | result = (cdtext_lang_t *)cdtext_list_languages_v2((cdtext_t const *)arg1); # | ^~~~~~~~~~~~~~~~~~~~~~ /usr/include/cdio/cdio.h:59: included_from: Included from here. pycdio-2.1.1/swig/pycdio_wrap.c:3485: 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); # | ~~~~~~~~~~^~~~~~~~ # 5789| } # 5790| arg1 = (cdtext_t *)(argp1); # 5791|-> result = (cdtext_lang_t *)cdtext_list_languages_v2((cdtext_t const *)arg1); # 5792| resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); # 5793| return resultobj; Error: COMPILER_WARNING (CWE-704): [#def9] pycdio-2.1.1/swig/pycdio_wrap.c:5791:54: warning[-Wdiscarded-qualifiers]: passing argument 1 of ‘cdtext_list_languages_v2’ discards ‘const’ qualifier from pointer target type # 5789| } # 5790| arg1 = (cdtext_t *)(argp1); # 5791|-> result = (cdtext_lang_t *)cdtext_list_languages_v2((cdtext_t const *)arg1); # 5792| resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 ); # 5793| return resultobj; Error: GCC_ANALYZER_WARNING (CWE-476): [#def10] pycdio-2.1.1/swig/pyiso9660_wrap.c:724:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘iter’ pycdio-2.1.1/swig/pyiso9660_wrap.c:6435:22: enter_function: entry to ‘_wrap_pathtable_m_add_entry’ pycdio-2.1.1/swig/pyiso9660_wrap.c:6437:9: release_memory: ‘arg1’ is NULL pycdio-2.1.1/swig/pyiso9660_wrap.c:6453:8: call_function: calling ‘SWIG_Python_UnpackTuple’ from ‘_wrap_pathtable_m_add_entry’ pycdio-2.1.1/swig/pyiso9660_wrap.c:6453:8: return_function: returning to ‘_wrap_pathtable_m_add_entry’ from ‘SWIG_Python_UnpackTuple’ pycdio-2.1.1/swig/pyiso9660_wrap.c:6453:6: branch_false: following ‘false’ branch... pycdio-2.1.1/swig/pyiso9660_wrap.c:6454:10: branch_false: ...to here pycdio-2.1.1/swig/pyiso9660_wrap.c:6454:10: call_function: calling ‘SWIG_Python_ConvertPtrAndOwn’ from ‘_wrap_pathtable_m_add_entry’ pycdio-2.1.1/swig/pyiso9660_wrap.c:6454:10: return_function: returning to ‘_wrap_pathtable_m_add_entry’ from ‘SWIG_Python_ConvertPtrAndOwn’ pycdio-2.1.1/swig/pyiso9660_wrap.c:6455:6: branch_false: following ‘false’ branch... pycdio-2.1.1/swig/pyiso9660_wrap.c:6458:10: branch_false: ...to here pycdio-2.1.1/swig/pyiso9660_wrap.c:6458:10: call_function: calling ‘SWIG_AsCharPtrAndSize’ from ‘_wrap_pathtable_m_add_entry’ # 722| swig_module_info *iter = start; # 723| do { # 724|-> if (iter->size) { # 725| size_t l = 0; # 726| size_t r = iter->size - 1; Error: CPPCHECK_WARNING (CWE-457): [#def11] pycdio-2.1.1/swig/pyiso9660_wrap.c:872: warning[uninitvar]: Uninitialized variable: buff # 870| *r = 0; # 871| } # 872|-> return buff; # 873| } # 874| Error: CPPCHECK_WARNING (CWE-476): [#def12] pycdio-2.1.1/swig/pyiso9660_wrap.c:1901: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data # 1899| SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData)); # 1900| /* the klass element */ # 1901|-> data->klass = obj; # 1902| SWIG_Py_INCREF(data->klass); # 1903| /* the newraw method and newargs arguments used to create a new raw instance */ Error: CPPCHECK_WARNING (CWE-476): [#def13] pycdio-2.1.1/swig/pyiso9660_wrap.c:1902: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data # 1900| /* the klass element */ # 1901| data->klass = obj; # 1902|-> SWIG_Py_INCREF(data->klass); # 1903| /* the newraw method and newargs arguments used to create a new raw instance */ # 1904| if (PyClass_Check(obj)) {
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-145.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | python-pycdio-2.1.1-14.fc45 |
| store-results-to | /tmp/tmpzwi23r6b/python-pycdio-2.1.1-14.fc45.tar.xz |
| time-created | 2026-08-03 20:14:58 |
| time-finished | 2026-08-03 20:16:30 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpzwi23r6b/python-pycdio-2.1.1-14.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpzwi23r6b/python-pycdio-2.1.1-14.fc45.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |