Task #132612 - python-pycdio-2.1.1-14.fc45/scan-results.err
back to task #132612download
Error: GCC_ANALYZER_WARNING (CWE-476):
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):
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):
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):
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:
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:
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:
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):
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):
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):
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):
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):
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):
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)) {