2025-12-15 03:09 ftp://ftp.de.debian.org/debian/pool/main/libr/librepo/librepo_1.20.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=libcurl --library=openssl --library=python --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j90 platform: Linux-6.8.0-88-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.18.0 head-info: 9dfee85 (2025-12-14 20:14:30 +0100) count: 274 405 elapsed-time: 0.1 0.3 head-timing-info: old-timing-info: head results: librepo-1.20.0/examples/c/download_low_level_api.c:26:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_ERROR [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/download_packages.c:27:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_ERROR [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/download_repo.c:52:39: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] librepo-1.20.0/examples/c/download_repo_with_callback.c:26:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/download_repo_with_callback.c:69:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/fastestmirror.c:22:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_ERROR [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/cleanup.h:67:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] librepo-1.20.0/examples/c/download_repos_parallel.c:23:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/fastestmirror_with_callback.c:87:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/download_repos_parallel.c:95:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/mirrorlist.c:47:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lr_free [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/mirrorlist.c:66:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/globalstate-py.h:64:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gil_hack_lock [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/exception-py.c:90:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_IOError [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/globalstate-py.h:88:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gil_hack_lock [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/downloader-py.c:68:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/lrmirrorlist.c:100:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/logging.c:62:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logfiledata_list_lock [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/lrmirrorlist.c:131:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/logging.c:79:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/metadatadownloader-py.c:40:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyList_Type [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/lrmirrorlist.c:175:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/logging.c:102:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_IOError [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/logging.c:145:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logfiledata_list_lock [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/packagedownloader-py.c:45:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyList_Type [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/result-py.c:41:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/result-py.c:190:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_ValueError [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/result-py.c:204:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/fixtures.c:54:5: warning: Assert statement calls a function which may have desired side effects: 'va_arg'. [assertWithSideEffect] librepo-1.20.0/tests/fixtures.c:36:39: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] librepo-1.20.0/librepo/repoutil_yum.c:57:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LRO_URLS [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/repoutil_yum.c:95:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/download_low_level_api.c:12:25: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'log_handler_cb' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/examples/c/download_low_level_api.c:30:23: note: You might need to cast the function pointer here librepo-1.20.0/examples/c/download_low_level_api.c:12:25: note: Parameter 'user_data' can be declared as pointer to const librepo-1.20.0/examples/c/download_packages.c:86:26: style: Local variable 'target' shadows outer variable [shadowVariable] librepo-1.20.0/examples/c/download_packages.c:22:22: note: Shadowed declaration librepo-1.20.0/examples/c/download_packages.c:86:26: note: Shadow variable librepo-1.20.0/librepo/gpg_gpgme.c:131:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_gpgme.c:163:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPGME_PROTOCOL_OpenPGP [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_gpgme.c:226:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPG_ERR_NO_ERROR [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/fastestmirror.c:10:25: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'log_handler_cb' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/examples/c/fastestmirror.c:26:23: note: You might need to cast the function pointer here librepo-1.20.0/examples/c/fastestmirror.c:10:25: note: Parameter 'user_data' can be declared as pointer to const librepo-1.20.0/librepo/gpg.c:58:28: style:inconclusive: Function 'lr_gpg_keys_free' argument 1 names different: declaration 'key_array' definition 'keys'. [funcArgNamesDifferent] librepo-1.20.0/librepo/gpg.h:161:28: note: Function 'lr_gpg_keys_free' argument 1 names different: declaration 'key_array' definition 'keys'. librepo-1.20.0/librepo/gpg.c:58:28: note: Function 'lr_gpg_keys_free' argument 1 names different: declaration 'key_array' definition 'keys'. librepo-1.20.0/librepo/gpg_gpgme.c:309:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/download_packages.c:10:25: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'log_handler_cb' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/examples/c/download_packages.c:31:23: note: You might need to cast the function pointer here librepo-1.20.0/examples/c/download_packages.c:10:25: note: Parameter 'user_data' can be declared as pointer to const librepo-1.20.0/examples/c/fastestmirror.c:45:16: style: Variable 'url' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/gpg_gpgme.c:350:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPG_ERR_NO_ERROR [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_gpgme.c:388:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPG_ERR_NO_ERROR [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_gpgme.c:419:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_gpgme.c:448:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPG_ERR_NO_ERROR [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_main.c:49:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_gpg.c:137:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_main.c:80:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_package_downloader.c:47:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CHECKSUM_SHA384 [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_gpg.c:254:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_gpg_check_signature [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_package_downloader.c:75:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_package_downloader_new_and_free [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/fastestmirror_with_callback.c:18:24: style: Parameter 'clientp' can be declared as pointer to const. However it seems that 'cb' is a callback function, if 'clientp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/examples/c/fastestmirror_with_callback.c:71:52: note: You might need to cast the function pointer here librepo-1.20.0/examples/c/fastestmirror_with_callback.c:18:24: note: Parameter 'clientp' can be declared as pointer to const librepo-1.20.0/tests/test_repo_zck.c:27:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/fastestmirror_with_callback.c:18:68: style: Parameter 'ptr' can be declared as pointer to const. However it seems that 'cb' is a callback function, if 'ptr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/examples/c/fastestmirror_with_callback.c:71:52: note: You might need to cast the function pointer here librepo-1.20.0/examples/c/fastestmirror_with_callback.c:18:68: note: Parameter 'ptr' can be declared as pointer to const librepo-1.20.0/tests/test_handle.c:32:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LRO_URLS [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repo_zck.c:53:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_repo_zck_parsing [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/fastestmirror_with_callback.c:88:16: style: Variable 'url' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/metadatatarget-py.c:49:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_handle.c:78:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LRI_UPDATE [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/metadatatarget-py.c:82:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CB_OK [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_handle.c:172:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_handle [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/metadatatarget-py.c:123:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CB_OK [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_mirrorlist.c:37:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/metadatatarget-py.c:174:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CB_OK [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_mirrorlist.c:70:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/metadatatarget-py.c:255:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_mirrorlist.c:94:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/download_repos_parallel.c:10:36: style: Parameter 'data' can be declared as pointer to const. However it seems that 'progress_callback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/examples/c/download_repos_parallel.c:86:51: note: You might need to cast the function pointer here librepo-1.20.0/examples/c/download_repos_parallel.c:10:36: note: Parameter 'data' can be declared as pointer to const librepo-1.20.0/librepo/python/metadatatarget-py.c:336:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_mirrorlist.c:113:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_mirrorlist_init [valueFlowBailoutIncompleteVar] librepo-1.20.0/examples/c/download_repos_parallel.c:27:31: style: Parameter 'data' can be declared as pointer to const. However it seems that 'end_callback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/examples/c/download_repos_parallel.c:87:44: note: You might need to cast the function pointer here librepo-1.20.0/examples/c/download_repos_parallel.c:27:31: note: Parameter 'data' can be declared as pointer to const librepo-1.20.0/examples/c/download_repos_parallel.c:32:31: style: Parameter 'data' can be declared as pointer to const. However it seems that 'hmf_callback' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/examples/c/download_repos_parallel.c:87:30: note: You might need to cast the function pointer here librepo-1.20.0/examples/c/download_repos_parallel.c:32:31: note: Parameter 'data' can be declared as pointer to const librepo-1.20.0/librepo/python/typeconversion.c:29:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/typeconversion.c:68:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/typeconversion.c:103:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/typeconversion.c:143:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/typeconversion.c:180:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/typeconversion.c:243:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/typeconversion.c:308:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repomd.c:27:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repomd.c:62:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_repomd_parsing [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/xmlparser.c:135:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_MAXINT64 [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/fixtures.c:23:12: style: Variable 'level' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/xmlparser.c:170:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_version.c:25:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_VERSION_PATCH [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_version.c:38:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_version_check_macro [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/packagetarget-py.c:52:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/packagetarget-py.c:75:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CB_OK [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_lrmirrorlist.c:69:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_PROTOCOL_HTTP [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/packagetarget-py.c:120:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CB_OK [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_lrmirrorlist.c:145:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_PROTOCOL_HTTP [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/packagetarget-py.c:168:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CB_OK [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_lrmirrorlist.c:204:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_PROTOCOL_HTTP [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/packagetarget-py.c:280:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/result-py.c:85:44: style: Parameter 'args' can be declared as pointer to const. However it seems that 'result_init' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/result-py.c:250:16: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/result-py.c:85:44: note: Parameter 'args' can be declared as pointer to const librepo-1.20.0/tests/test_lrmirrorlist.c:244:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_lrmirrorlist_append_url [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/packagetarget-py.c:401:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/result-py.c:85:60: style: Parameter 'kwds' can be declared as pointer to const. However it seems that 'result_init' is a callback function, if 'kwds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/result-py.c:250:16: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/result-py.c:85:60: note: Parameter 'kwds' can be declared as pointer to const librepo-1.20.0/librepo/python/packagetarget-py.c:413:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/result-py.c:87:11: style: Variable 'kwlist' can be declared as const array [constVariable] librepo-1.20.0/tests/test_checksum.c:54:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_checksum.c:73:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CHECKSUM_MD5 [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_checksum.c:105:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XATTR_CHKSUM_PREFIX [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/metalink.c:201:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_XML_WARNING_UNKNOWNTAG [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_checksum.c:193:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XATTR_CHKSUM_PREFIX [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_url_substitution.c:154:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_urlvars_set [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_checksum.c:248:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XATTR_CHKSUM_PREFIX [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_checksum.c:302:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_checksum_fd [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/lrmirrorlist.c:101:15: style: Variable 'url' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/lrmirrorlist.c:176:27: style: Variable 'oth' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/url_substitution.c:55:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/url_substitution.c:87:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/url_substitution.c:129:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_downloader.c:74:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_downloader.c:117:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_downloader.c:183:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_downloader.c:263:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_downloader.c:335:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CHECKSUM_SHA512 [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_downloader.c:381:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_downloader_no_list [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/librepomodule.c:65:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/librepomodule.c:86:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/librepomodule.c:227:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_VERSION_MAJOR [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_util.c:121:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_util.c:276:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_malloc [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_package_downloader.c:49:35: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] librepo-1.20.0/tests/test_package_downloader.c:60:38: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] librepo-1.20.0/librepo/gpg_rpm.c:60:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:87:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:117:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:132:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:147:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:175:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:195:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGPTAG_PUBLIC_KEY [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:248:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:295:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:346:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:391:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:402:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:413:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:529:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:628:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_rpm.c:649:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_autofree [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/repomd.c:131:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/repomd.c:154:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/repomd.c:243:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_XML_WARNING_UNKNOWNTAG [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/repomd.c:414:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_XML_WARNING_MISSINGVAL [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/librepomodule.c:190:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] librepo-1.20.0/librepo/python/librepomodule.c:198:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] librepo-1.20.0/librepo/python/librepomodule.c:204:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] librepo-1.20.0/tests/test_metalink.c:50:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/librepomodule.c:210:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] librepo-1.20.0/tests/test_metalink.c:162:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/librepomodule.c:216:5: warning: Return value of function PyModule_AddObject() is not used. [ignoredReturnValue] librepo-1.20.0/tests/test_metalink.c:208:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_metalink.c:236:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CB_RET_OK [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_metalink.c:252:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_metalink.c:373:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_metalink.c:397:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_metalink.c:421:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_metalink.c:445:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_metalink.c:472:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_metalink.c:519:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_metalink_init [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:26:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:49:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:65:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:83:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:100:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:117:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:134:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:152:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:184:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_checksum.c:89:5: warning: Assert statement calls a function which may have desired side effects: 'remove'. [assertWithSideEffect] librepo-1.20.0/tests/test_repoconf.c:199:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:215:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:240:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:255:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:270:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:285:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_error_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:301:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:420:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_free_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:496:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _cleanup_fd_close_ [valueFlowBailoutIncompleteVar] librepo-1.20.0/tests/test_repoconf.c:690:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_parse_repoconf_minimal [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/handle-py.c:55:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PyExc_TypeError [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/handle-py.c:86:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CB_OK [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/handle-py.c:139:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/handle-py.c:174:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CB_OK [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/handle-py.c:321:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/handle-py.c:957:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/handle-py.c:1093:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Py_None [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/python/handle-py.c:1151:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LRE_INTERRUPTED [valueFlowBailoutIncompleteVar] librepo-1.20.0/librepo/gpg_gpgme.c:353:9: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] librepo-1.20.0/librepo/gpg_gpgme.c:466:9: error: Memory leak: lr_subkey.id [memleak] librepo-1.20.0/tests/test_downloader.c:75:31: style: Variable 'dtarget' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/gpg_gpgme.c:466:9: error: Memory leak: lr_subkey.fingerprint [memleak] librepo-1.20.0/tests/test_downloader.c:118:31: style: Variable 'dtarget' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/tests/test_downloader.c:184:31: style: Variable 'dtarget' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/tests/test_downloader.c:264:31: style: Variable 'dtarget' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/tests/test_downloader.c:356:35: style: Variable 'dtarget' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:63:33: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] librepo-1.20.0/librepo/python/typeconversion.c:87:24: style: Variable 'yumrepopath' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:98:36: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] librepo-1.20.0/librepo/python/typeconversion.c:125:24: style: Variable 'yumrepopath' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:175:37: style: Parameter 'repomd' can be declared as pointer to const [constParameterPointer] librepo-1.20.0/librepo/python/typeconversion.c:191:15: style: Variable 'tag' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:199:25: style: Variable 'distrotag' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:204:15: style: Variable 'cpeid' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:205:15: style: Variable 'value' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:217:15: style: Variable 'tag' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:238:40: style: Parameter 'repomd' can be declared as pointer to const [constParameterPointer] librepo-1.20.0/librepo/python/typeconversion.c:254:15: style: Variable 'tag' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:262:25: style: Variable 'distrotag' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:267:15: style: Variable 'cpeid' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:268:15: style: Variable 'value' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:280:15: style: Variable 'tag' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:328:25: style: Variable 'metalinkhash' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/typeconversion.c:398:33: style: Variable 'metalinkhash' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/tests/test_checksum.c:43:39: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] librepo-1.20.0/tests/test_checksum.c:40:21: note: Assuming allocation function fails librepo-1.20.0/tests/test_checksum.c:40:21: note: Assignment 'fp=fopen(filename,"w")', assigned value is 0 librepo-1.20.0/tests/test_checksum.c:43:39: note: Null pointer dereference librepo-1.20.0/tests/test_checksum.c:44:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] librepo-1.20.0/tests/test_checksum.c:40:21: note: Assuming allocation function fails librepo-1.20.0/tests/test_checksum.c:40:21: note: Assignment 'fp=fopen(filename,"w")', assigned value is 0 librepo-1.20.0/tests/test_checksum.c:44:12: note: Null pointer dereference librepo-1.20.0/tests/test_checksum.c:111:32: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] librepo-1.20.0/tests/test_checksum.c:109:14: note: Assuming allocation function fails librepo-1.20.0/tests/test_checksum.c:109:14: note: Assignment 'f=fopen(filename,"w")', assigned value is 0 librepo-1.20.0/tests/test_checksum.c:111:32: note: Null pointer dereference librepo-1.20.0/tests/test_checksum.c:112:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] librepo-1.20.0/tests/test_checksum.c:109:14: note: Assuming allocation function fails librepo-1.20.0/tests/test_checksum.c:109:14: note: Assignment 'f=fopen(filename,"w")', assigned value is 0 librepo-1.20.0/tests/test_checksum.c:112:12: note: Null pointer dereference librepo-1.20.0/tests/test_checksum.c:200:32: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] librepo-1.20.0/tests/test_checksum.c:198:14: note: Assuming allocation function fails librepo-1.20.0/tests/test_checksum.c:198:14: note: Assignment 'f=fopen(filename,"w")', assigned value is 0 librepo-1.20.0/tests/test_checksum.c:200:32: note: Null pointer dereference librepo-1.20.0/tests/test_checksum.c:201:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] librepo-1.20.0/tests/test_checksum.c:198:14: note: Assuming allocation function fails librepo-1.20.0/tests/test_checksum.c:198:14: note: Assignment 'f=fopen(filename,"w")', assigned value is 0 librepo-1.20.0/tests/test_checksum.c:201:12: note: Null pointer dereference librepo-1.20.0/tests/test_checksum.c:255:12: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] librepo-1.20.0/tests/test_checksum.c:253:14: note: Assuming allocation function fails librepo-1.20.0/tests/test_checksum.c:253:14: note: Assignment 'f=fopen(filename,"w")', assigned value is 0 librepo-1.20.0/tests/test_checksum.c:255:12: note: Null pointer dereference librepo-1.20.0/librepo/python/packagetarget-py.c:374:34: style: Parameter 'self' can be declared as pointer to const. However it seems that 'get_gint64' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/packagetarget-py.c:456:31: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/packagetarget-py.c:374:34: note: Parameter 'self' can be declared as pointer to const librepo-1.20.0/librepo/python/packagetarget-py.c:374:46: style: Parameter 'member_offset' can be declared as pointer to const. However it seems that 'get_gint64' is a callback function, if 'member_offset' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/packagetarget-py.c:456:31: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/packagetarget-py.c:374:46: note: Parameter 'member_offset' can be declared as pointer to const librepo-1.20.0/librepo/python/packagetarget-py.c:378:22: style: Variable 'target' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/packagetarget-py.c:384:31: style: Parameter 'self' can be declared as pointer to const. However it seems that 'get_int' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/packagetarget-py.c:457:31: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/packagetarget-py.c:384:31: note: Parameter 'self' can be declared as pointer to const librepo-1.20.0/librepo/python/packagetarget-py.c:384:43: style: Parameter 'member_offset' can be declared as pointer to const. However it seems that 'get_int' is a callback function, if 'member_offset' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/packagetarget-py.c:457:31: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/packagetarget-py.c:384:43: note: Parameter 'member_offset' can be declared as pointer to const librepo-1.20.0/librepo/python/packagetarget-py.c:388:22: style: Variable 'target' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/packagetarget-py.c:394:31: style: Parameter 'self' can be declared as pointer to const. However it seems that 'get_str' is a callback function, if 'self' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/packagetarget-py.c:463:31: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/packagetarget-py.c:394:31: note: Parameter 'self' can be declared as pointer to const librepo-1.20.0/librepo/python/packagetarget-py.c:394:43: style: Parameter 'member_offset' can be declared as pointer to const. However it seems that 'get_str' is a callback function, if 'member_offset' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/packagetarget-py.c:463:31: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/packagetarget-py.c:394:43: note: Parameter 'member_offset' can be declared as pointer to const librepo-1.20.0/librepo/python/packagetarget-py.c:398:22: style: Variable 'target' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/packagetarget-py.c:399:11: style: Variable 'str' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/python/packagetarget-py.c:406:49: style: Parameter 'member_offset' can be declared as pointer to const. However it seems that 'get_pythonobj' is a callback function, if 'member_offset' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/packagetarget-py.c:461:32: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/packagetarget-py.c:406:49: note: Parameter 'member_offset' can be declared as pointer to const librepo-1.20.0/tests/test_checksum.c:48:67: style: Parameter 'expected' can be declared as pointer to const [constParameterPointer] librepo-1.20.0/librepo/python/metadatatarget-py.c:329:50: style: Parameter 'member_offset' can be declared as pointer to const. However it seems that 'get_pythonobj' is a callback function, if 'member_offset' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/metadatatarget-py.c:396:31: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/metadatatarget-py.c:329:50: note: Parameter 'member_offset' can be declared as pointer to const librepo-1.20.0/librepo/python/metadatatarget-py.c:378:20: style: Variable 'error_message' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/url_substitution.c:130:28: style: Variable 'var_val' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/metalink.c:507:9: style: Redundant initialization for 'ret'. The initialized value is overwritten before it is read. [redundantInitialization] librepo-1.20.0/librepo/metalink.c:473:18: note: ret is initialized librepo-1.20.0/librepo/metalink.c:507:9: note: ret is overwritten librepo-1.20.0/librepo/metalink.c:176:21: style: Variable 'sw' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/tests/test_repoconf.c:169:5: warning: Assert statement calls a function which may have desired side effects: 'va_arg'. [assertWithSideEffect] librepo-1.20.0/tests/test_repoconf.c:324:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:371:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:441:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:450:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:454:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:455:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:456:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:482:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:535:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:536:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:552:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:553:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:556:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:557:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:560:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:561:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:564:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:565:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:660:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:661:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] librepo-1.20.0/tests/test_repoconf.c:62:31: style: Parameter 'expected' can be declared as pointer to const [constParameterPointer] librepo-1.20.0/librepo/repomd.c:573:9: style: Redundant initialization for 'ret'. The initialized value is overwritten before it is read. [redundantInitialization] librepo-1.20.0/librepo/repomd.c:543:18: note: ret is initialized librepo-1.20.0/librepo/repomd.c:573:9: note: ret is overwritten librepo-1.20.0/librepo/repomd.c:218:21: style: Variable 'sw' can be declared as pointer to const [constVariablePointer] librepo-1.20.0/librepo/gpg_rpm.c:174:21: style: Condition 'message==NULL' is always true [knownConditionTrueFalse] librepo-1.20.0/librepo/gpg_rpm.c:165:21: note: Assignment 'message=NULL', assigned value is 0 librepo-1.20.0/librepo/gpg_rpm.c:174:21: note: Condition 'message==NULL' is always true librepo-1.20.0/librepo/gpg_rpm.c:185:17: style: Condition 'message!=NULL' is always false [knownConditionTrueFalse] librepo-1.20.0/librepo/gpg_rpm.c:165:21: note: Assignment 'message=NULL', assigned value is 0 librepo-1.20.0/librepo/gpg_rpm.c:185:17: note: Condition 'message!=NULL' is always false librepo-1.20.0/librepo/gpg_rpm.c:481:13: error: Memory leak: lr_subkey.fingerprint [memleak] librepo-1.20.0/librepo/gpg_rpm.c:555:16: warning: If memory allocation fails, then there is a possible null pointer dereference: pkts [nullPointerOutOfMemory] librepo-1.20.0/librepo/gpg_rpm.c:554:22: note: Assuming allocation function fails librepo-1.20.0/librepo/gpg_rpm.c:554:22: note: Assignment 'pkts=malloc(sig_buf_len)', assigned value is 0 librepo-1.20.0/librepo/gpg_rpm.c:555:16: note: Null pointer dereference librepo-1.20.0/librepo/gpg_rpm.c:321:21: style: Checking if unsigned expression 'key_len' is less than zero. [unsignedLessThanZero] librepo-1.20.0/librepo/python/handle-py.c:245:44: style: Parameter 'args' can be declared as pointer to const. However it seems that 'handle_init' is a callback function, if 'args' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/handle-py.c:1222:16: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/handle-py.c:245:44: note: Parameter 'args' can be declared as pointer to const librepo-1.20.0/librepo/python/handle-py.c:245:60: style: Parameter 'kwds' can be declared as pointer to const. However it seems that 'handle_init' is a callback function, if 'kwds' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/handle-py.c:1222:16: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/handle-py.c:245:60: note: Parameter 'kwds' can be declared as pointer to const librepo-1.20.0/librepo/python/handle-py.c:247:11: style: Variable 'kwlist' can be declared as const array [constVariable] librepo-1.20.0/librepo/python/handle-py.c:962:20: style: Variable 'var' can be declared as pointer to const [constVariablePointer] diff: 2.18.0 librepo-1.20.0/librepo/checksum.c:112:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVP_MAX_MD_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/checksum.c:243:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/checksum.c:253:21: error: Memory leak: timestamp_str [memleak] 2.18.0 librepo-1.20.0/librepo/checksum.c:302:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/checksum.c:61:15: style: Variable 'md_type' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/checksum.c:66:15: style: Variable 'sha_type' can be declared as pointer to const [constVariablePointer] head librepo-1.20.0/librepo/cleanup.h:67:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] 2.18.0 librepo-1.20.0/librepo/cleanup.h:80:1: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] 2.18.0 librepo-1.20.0/librepo/downloader.c:526:39: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] 2.18.0 librepo-1.20.0/librepo/downloadtarget.c:108:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LRE_UNFINISHED [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/downloadtarget.c:127:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LRE_OK [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/downloadtarget.c:170:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LRE_OK [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/fastestmirror.c:152:36: error: There is an unknown macro here somewhere. Configuration is required. If G_GSIZE_FORMAT is a macro then please configure it. [unknownMacro] 2.18.0 librepo-1.20.0/librepo/handle.c:479:42: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:119:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:135:40: style: Parameter 'old_sigact' can be declared as pointer to const [constParameterPointer] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:141:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:159:6: warning: If memory allocation fails, then there is a possible null pointer dereference: fd_allocated [nullPointerOutOfMemory] librepo-1.20.0/librepo/metadata_downloader.c:158:31: note: Assuming allocation function fails librepo-1.20.0/librepo/metadata_downloader.c:158:31: note: Assignment 'fd_allocated=malloc(sizeof(int))', assigned value is 0 librepo-1.20.0/librepo/metadata_downloader.c:159:6: note: Null pointer dereference 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:195:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:316:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fd [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:323:13: warning: Either the condition '!target->handle' is redundant or there is possible null pointer dereference: handle. [nullPointerRedundantCheck] librepo-1.20.0/librepo/metadata_downloader.c:335:13: note: Assuming that condition '!target->handle' is not redundant librepo-1.20.0/librepo/metadata_downloader.c:320:26: note: handle is assigned 'target->handle' here. librepo-1.20.0/librepo/metadata_downloader.c:323:13: note: Null pointer dereference 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:328:13: warning: Either the condition '!target->handle' is redundant or there is possible null pointer dereference: handle. [nullPointerRedundantCheck] librepo-1.20.0/librepo/metadata_downloader.c:335:13: note: Assuming that condition '!target->handle' is not redundant librepo-1.20.0/librepo/metadata_downloader.c:320:26: note: handle is assigned 'target->handle' here. librepo-1.20.0/librepo/metadata_downloader.c:323:19: note: Assuming condition is false librepo-1.20.0/librepo/metadata_downloader.c:328:13: note: Null pointer dereference 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:381:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:448:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:492:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:498:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:513:35: style: Variable 'url' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:519:35: style: Variable 'url' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:528:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/metadata_downloader.c:576:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] head librepo-1.20.0/librepo/metalink.c:176:21: style: Variable 'sw' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/package_downloader.c:196:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/package_downloader.c:197:26: style: Variable 'packagetarget' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/package_downloader.c:260:40: style: Variable 'unencoded_url' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/package_downloader.c:261:40: style: Variable 'file_basename' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/package_downloader.c:273:36: style: Variable 'unencoded_url' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/package_downloader.c:516:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/package_downloader.c:517:26: style: Variable 'packagetarget' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/package_downloader.c:555:39: style: Variable 'file_basename' can be declared as pointer to const [constVariablePointer] head librepo-1.20.0/librepo/python/packagetarget-py.c:374:46: style: Parameter 'member_offset' can be declared as pointer to const. However it seems that 'get_gint64' is a callback function, if 'member_offset' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/packagetarget-py.c:456:31: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/packagetarget-py.c:374:46: note: Parameter 'member_offset' can be declared as pointer to const head librepo-1.20.0/librepo/python/packagetarget-py.c:378:22: style: Variable 'target' can be declared as pointer to const [constVariablePointer] head librepo-1.20.0/librepo/python/packagetarget-py.c:384:43: style: Parameter 'member_offset' can be declared as pointer to const. However it seems that 'get_int' is a callback function, if 'member_offset' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/packagetarget-py.c:457:31: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/packagetarget-py.c:384:43: note: Parameter 'member_offset' can be declared as pointer to const head librepo-1.20.0/librepo/python/packagetarget-py.c:388:22: style: Variable 'target' can be declared as pointer to const [constVariablePointer] head librepo-1.20.0/librepo/python/packagetarget-py.c:394:43: style: Parameter 'member_offset' can be declared as pointer to const. However it seems that 'get_str' is a callback function, if 'member_offset' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/python/packagetarget-py.c:463:31: note: You might need to cast the function pointer here librepo-1.20.0/librepo/python/packagetarget-py.c:394:43: note: Parameter 'member_offset' can be declared as pointer to const head librepo-1.20.0/librepo/python/packagetarget-py.c:398:22: style: Variable 'target' can be declared as pointer to const [constVariablePointer] head librepo-1.20.0/librepo/python/typeconversion.c:199:25: style: Variable 'distrotag' can be declared as pointer to const [constVariablePointer] head librepo-1.20.0/librepo/python/typeconversion.c:262:25: style: Variable 'distrotag' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:118:34: style: Parameter 'repoconf' can be declared as pointer to const [constParameterPointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:130:28: style: Parameter 'repoconf' can be declared as pointer to const [constParameterPointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:143:39: style:inconclusive: Function 'lr_yum_repoconfs_free' argument 1 names different: declaration 'confs' definition 'repos'. [funcArgNamesDifferent] librepo-1.20.0/librepo/repoconf.h:100:39: note: Function 'lr_yum_repoconfs_free' argument 1 names different: declaration 'confs' definition 'repos'. librepo-1.20.0/librepo/repoconf.c:143:39: note: Function 'lr_yum_repoconfs_free' argument 1 names different: declaration 'confs' definition 'repos'. 2.18.0 librepo-1.20.0/librepo/repoconf.c:153:43: style: Parameter 'repos' can be declared as pointer to const [constParameterPointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:153:43: style:inconclusive: Function 'lr_yum_repoconfs_get_list' argument 1 names different: declaration 'confs' definition 'repos'. [funcArgNamesDifferent] librepo-1.20.0/librepo/repoconf.h:107:43: note: Function 'lr_yum_repoconfs_get_list' argument 1 names different: declaration 'confs' definition 'repos'. librepo-1.20.0/librepo/repoconf.c:153:43: note: Function 'lr_yum_repoconfs_get_list' argument 1 names different: declaration 'confs' definition 'repos'. 2.18.0 librepo-1.20.0/librepo/repoconf.c:220:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_KEY_FILE_KEEP_COMMENTS [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/repoconf.c:238:27: style: Variable 'string' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:239:27: style: Variable 'string_lower' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:247:9: error: Memory leak: string [memleak] 2.18.0 librepo-1.20.0/librepo/repoconf.c:247:9: error: Memory leak: string_lower [memleak] 2.18.0 librepo-1.20.0/librepo/repoconf.c:248:5: error: Memory leak: string [memleak] 2.18.0 librepo-1.20.0/librepo/repoconf.c:248:5: error: Memory leak: string_lower [memleak] 2.18.0 librepo-1.20.0/librepo/repoconf.c:295:27: style: Variable 'string' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:296:27: style: Variable 'string_lower' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:302:9: error: Memory leak: string [memleak] 2.18.0 librepo-1.20.0/librepo/repoconf.c:302:9: error: Memory leak: string_lower [memleak] 2.18.0 librepo-1.20.0/librepo/repoconf.c:304:9: error: Memory leak: string [memleak] 2.18.0 librepo-1.20.0/librepo/repoconf.c:304:9: error: Memory leak: string_lower [memleak] 2.18.0 librepo-1.20.0/librepo/repoconf.c:306:9: error: Memory leak: string [memleak] 2.18.0 librepo-1.20.0/librepo/repoconf.c:306:9: error: Memory leak: string_lower [memleak] 2.18.0 librepo-1.20.0/librepo/repoconf.c:310:5: error: Memory leak: string [memleak] 2.18.0 librepo-1.20.0/librepo/repoconf.c:310:5: error: Memory leak: string_lower [memleak] 2.18.0 librepo-1.20.0/librepo/repoconf.c:347:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/repoconf.c:400:27: style: Variable 'string' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:429:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/repoconf.c:485:27: style: Variable 'string' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:528:49: style:inconclusive: Function 'lr_yum_repoconfs_add_empty_conf' argument 1 names different: declaration 'confs' definition 'repos'. [funcArgNamesDifferent] librepo-1.20.0/librepo/repoconf.h:118:49: note: Function 'lr_yum_repoconfs_add_empty_conf' argument 1 names different: declaration 'confs' definition 'repos'. librepo-1.20.0/librepo/repoconf.c:528:49: note: Function 'lr_yum_repoconfs_add_empty_conf' argument 1 names different: declaration 'confs' definition 'repos'. 2.18.0 librepo-1.20.0/librepo/repoconf.c:52:33: style: Parameter 'repofile' can be declared as pointer to const [constParameterPointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:566:40: style:inconclusive: Function 'lr_yum_repoconfs_parse' argument 1 names different: declaration 'confs' definition 'repos'. [funcArgNamesDifferent] librepo-1.20.0/librepo/repoconf.h:129:40: note: Function 'lr_yum_repoconfs_parse' argument 1 names different: declaration 'confs' definition 'repos'. librepo-1.20.0/librepo/repoconf.c:566:40: note: Function 'lr_yum_repoconfs_parse' argument 1 names different: declaration 'confs' definition 'repos'. 2.18.0 librepo-1.20.0/librepo/repoconf.c:597:43: style:inconclusive: Function 'lr_yum_repoconfs_load_dir' argument 1 names different: declaration 'confs' definition 'repos'. [funcArgNamesDifferent] librepo-1.20.0/librepo/repoconf.h:139:43: note: Function 'lr_yum_repoconfs_load_dir' argument 1 names different: declaration 'confs' definition 'repos'. librepo-1.20.0/librepo/repoconf.c:597:43: note: Function 'lr_yum_repoconfs_load_dir' argument 1 names different: declaration 'confs' definition 'repos'. 2.18.0 librepo-1.20.0/librepo/repoconf.c:615:31: style: Variable 'path_tmp' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:638:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/repoconf.c:65:34: style: Parameter 'repofile' can be declared as pointer to const [constParameterPointer] 2.18.0 librepo-1.20.0/librepo/repoconf.c:883:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_KEY_FILE_ERROR_KEY_NOT_FOUND [valueFlowBailoutIncompleteVar] head librepo-1.20.0/librepo/repomd.c:218:21: style: Variable 'sw' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/util.c:102:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_ONCE_INIT [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/util.c:118:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/util.c:120:5: style: Statements following noreturn function 'abort()' will never be executed. [unreachableCode] 2.18.0 librepo-1.20.0/librepo/util.c:161:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/util.c:165:5: error: Memory leak: template [memleak] 2.18.0 librepo-1.20.0/librepo/util.c:184:11: style: Variable 'separator' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/util.c:185:11: style: Variable 'chunk' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/util.c:190:11: style: Variable 'qmark_section' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/util.c:297:44: style: Parameter 'ftwbuf' can be declared as pointer to const. However it seems that 'lr_remove_dir_cb' is a callback function, if 'ftwbuf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] librepo-1.20.0/librepo/util.c:308:23: note: You might need to cast the function pointer here librepo-1.20.0/librepo/util.c:297:44: note: Parameter 'ftwbuf' can be declared as pointer to const 2.18.0 librepo-1.20.0/librepo/util.c:301:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/util.c:308:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FTW_DEPTH [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/util.c:345:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/util.c:366:36: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] 2.18.0 librepo-1.20.0/librepo/util.c:367:36: style: Parameter 'cbdata' can be declared as pointer to const [constParameterPointer] 2.18.0 librepo-1.20.0/librepo/util.c:371:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CB_RET_OK [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/util.c:383:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LR_CHECKSUM_UNKNOWN [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/util.c:476:27: style: Variable 'content' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/util.c:59:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/util.c:669:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/util.c:68:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_MASK [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/util.c:75:27: style: Variable 'time' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/util.c:88:1: error: Memory leak: datetime [memleak] 2.18.0 librepo-1.20.0/librepo/util.c:88:1: error: Memory leak: time [memleak] 2.18.0 librepo-1.20.0/librepo/util.c:93:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURL_GLOBAL_ALL [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:1054:9: style: Redundant initialization for 'ret'. The initialized value is overwritten before it is read. [redundantInitialization] librepo-1.20.0/librepo/yum.c:1047:18: note: ret is initialized librepo-1.20.0/librepo/yum.c:1054:9: note: ret is overwritten 2.18.0 librepo-1.20.0/librepo/yum.c:106:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:1074:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lr_downloadtarget_free [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:1085:11: style: Variable 'expected_checksum' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/yum.c:1110:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:1110:40: warning: Either the condition '!expected_checksum' is redundant or there is possible null pointer dereference: expected_checksum. [nullPointerRedundantCheck] librepo-1.20.0/librepo/yum.c:1112:9: note: Assuming that condition '!expected_checksum' is not redundant librepo-1.20.0/librepo/yum.c:1110:40: note: Null pointer dereference 2.18.0 librepo-1.20.0/librepo/yum.c:1162:12: warning: Uninitialized variable: ret [uninitvar] librepo-1.20.0/librepo/yum.c:1133:9: note: Assuming condition is true librepo-1.20.0/librepo/yum.c:1162:12: note: Uninitialized variable: ret 2.18.0 librepo-1.20.0/librepo/yum.c:1190:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:1207:38: style: Parameter 'handle' can be declared as pointer to const [constParameterPointer] 2.18.0 librepo-1.20.0/librepo/yum.c:1223:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_REGULAR [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:1316:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:1353:30: style: Variable 'path' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/yum.c:1400:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:1459:9: style: Redundant initialization for 'ret'. The initialized value is overwritten before it is read. [redundantInitialization] librepo-1.20.0/librepo/yum.c:1389:18: note: ret is initialized librepo-1.20.0/librepo/yum.c:1459:9: note: ret is overwritten 2.18.0 librepo-1.20.0/librepo/yum.c:151:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:1525:13: style: Redundant initialization for 'ret'. The initialized value is overwritten before it is read. [redundantInitialization] librepo-1.20.0/librepo/yum.c:1474:13: note: ret is initialized librepo-1.20.0/librepo/yum.c:1525:13: note: ret is overwritten 2.18.0 librepo-1.20.0/librepo/yum.c:171:11: style: Variable 'type1' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/yum.c:172:11: style: Variable 'type2' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/yum.c:207:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:208:36: style: Variable 'record' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/yum.c:228:40: style: Parameter 'handle' can be declared as pointer to const [constParameterPointer] 2.18.0 librepo-1.20.0/librepo/yum.c:250:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:275:5: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] librepo-1.20.0/librepo/yum.c:274:26: note: Assuming allocation function fails librepo-1.20.0/librepo/yum.c:274:26: note: Assignment 'data=calloc(1,sizeof(*data))', assigned value is 0 librepo-1.20.0/librepo/yum.c:275:5: note: Null pointer dereference 2.18.0 librepo-1.20.0/librepo/yum.c:276:5: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] librepo-1.20.0/librepo/yum.c:274:26: note: Assuming allocation function fails librepo-1.20.0/librepo/yum.c:274:26: note: Assignment 'data=calloc(1,sizeof(*data))', assigned value is 0 librepo-1.20.0/librepo/yum.c:276:5: note: Null pointer dereference 2.18.0 librepo-1.20.0/librepo/yum.c:277:5: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] librepo-1.20.0/librepo/yum.c:274:26: note: Assuming allocation function fails librepo-1.20.0/librepo/yum.c:274:26: note: Assignment 'data=calloc(1,sizeof(*data))', assigned value is 0 librepo-1.20.0/librepo/yum.c:277:5: note: Null pointer dereference 2.18.0 librepo-1.20.0/librepo/yum.c:278:5: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] librepo-1.20.0/librepo/yum.c:274:26: note: Assuming allocation function fails librepo-1.20.0/librepo/yum.c:274:26: note: Assignment 'data=calloc(1,sizeof(*data))', assigned value is 0 librepo-1.20.0/librepo/yum.c:278:5: note: Null pointer dereference 2.18.0 librepo-1.20.0/librepo/yum.c:279:5: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] librepo-1.20.0/librepo/yum.c:274:26: note: Assuming allocation function fails librepo-1.20.0/librepo/yum.c:274:26: note: Assignment 'data=calloc(1,sizeof(*data))', assigned value is 0 librepo-1.20.0/librepo/yum.c:279:5: note: Null pointer dereference 2.18.0 librepo-1.20.0/librepo/yum.c:328:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:355:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:390:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:422:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:446:44: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] 2.18.0 librepo-1.20.0/librepo/yum.c:457:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:522:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:605:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:637:9: style: Redundant initialization for 'ret'. The initialized value is overwritten before it is read. [redundantInitialization] librepo-1.20.0/librepo/yum.c:600:13: note: ret is initialized librepo-1.20.0/librepo/yum.c:637:9: note: ret is overwritten 2.18.0 librepo-1.20.0/librepo/yum.c:65:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:678:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:754:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:801:13: style: Condition 'is_zchunk' is always false [knownConditionTrueFalse] librepo-1.20.0/librepo/yum.c:794:30: note: Assignment 'is_zchunk=0', assigned value is 0 librepo-1.20.0/librepo/yum.c:801:13: note: Condition 'is_zchunk' is always false 2.18.0 librepo-1.20.0/librepo/yum.c:871:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:872:31: style: Variable 'target' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/yum.c:912:16: style: Variable 'str' can be declared as pointer to const [constVariablePointer] 2.18.0 librepo-1.20.0/librepo/yum.c:91:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:932:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] 2.18.0 librepo-1.20.0/librepo/yum.c:958:22: style: Local variable 'elem' shadows outer variable [shadowVariable] librepo-1.20.0/librepo/yum.c:932:18: note: Shadowed declaration librepo-1.20.0/librepo/yum.c:958:22: note: Shadow variable 2.18.0 librepo-1.20.0/librepo/yum.c:991:17: style: Local variable 'ret' shadows outer variable [shadowVariable] librepo-1.20.0/librepo/yum.c:926:14: note: Shadowed declaration librepo-1.20.0/librepo/yum.c:991:17: note: Shadow variable DONE