2025-07-10 17:48 ftp://ftp.de.debian.org/debian/pool/main/o/openvas-cli/openvas-cli_1.4.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 8f3d36a (2025-07-08 11:07:56 +0200) count: 33 34 elapsed-time: 0.9 0.9 head-timing-info: old-timing-info: head results: openvas-cli-1.4.5/omp/omp.c:145:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:203:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:290:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:436:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:476:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:534:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:567:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:611:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:809:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:876:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ECHO [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:958:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:973:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:1057:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_STRING [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/nagios/check_omp.c:187:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/nagios/check_omp.c:223:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/nagios/check_omp.c:265:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/nagios/check_omp.c:319:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable omp_authenticate_info_opts_defaults [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/nagios/check_omp.c:944:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable omp_get_report_opts_defaults [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/nagios/check_omp.c:1047:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_STRING [valueFlowBailoutIncompleteVar] openvas-cli-1.4.5/omp/omp.c:1599:11: style: Condition 'file' is always true [knownConditionTrueFalse] openvas-cli-1.4.5/omp/omp.c:1175:25: error: Allocation with g_option_context_get_help, printf doesn't release it. [leakNoVarFunctionCall] openvas-cli-1.4.5/omp/omp.c:339:31: style: Local variable 'id' shadows outer variable [shadowVariable] openvas-cli-1.4.5/omp/omp.c:285:23: note: Shadowed declaration openvas-cli-1.4.5/omp/omp.c:339:31: note: Shadow variable openvas-cli-1.4.5/omp/omp.c:339:36: style: Local variable 'status' shadows outer variable [shadowVariable] openvas-cli-1.4.5/omp/omp.c:285:35: note: Shadowed declaration openvas-cli-1.4.5/omp/omp.c:339:36: note: Shadow variable openvas-cli-1.4.5/omp/omp.c:1694:19: style: Local variable 'error' shadows outer variable [shadowVariable] openvas-cli-1.4.5/omp/omp.c:1052:11: note: Shadowed declaration openvas-cli-1.4.5/omp/omp.c:1694:19: note: Shadow variable openvas-cli-1.4.5/nagios/check_omp.c:764:47: warning: Possible null pointer dereference: dfn_ids_string [nullPointer] openvas-cli-1.4.5/nagios/check_omp.c:748:41: note: Assignment 'dfn_ids_string=NULL', assigned value is 0 openvas-cli-1.4.5/nagios/check_omp.c:749:29: note: Assuming condition is false openvas-cli-1.4.5/nagios/check_omp.c:764:47: note: Null pointer dereference openvas-cli-1.4.5/nagios/check_omp.c:796:47: warning: Possible null pointer dereference: dfn_ids_string [nullPointer] openvas-cli-1.4.5/nagios/check_omp.c:780:41: note: Assignment 'dfn_ids_string=NULL', assigned value is 0 openvas-cli-1.4.5/nagios/check_omp.c:781:29: note: Assuming condition is false openvas-cli-1.4.5/nagios/check_omp.c:796:47: note: Null pointer dereference openvas-cli-1.4.5/nagios/check_omp.c:828:47: warning: Possible null pointer dereference: dfn_ids_string [nullPointer] openvas-cli-1.4.5/nagios/check_omp.c:812:41: note: Assignment 'dfn_ids_string=NULL', assigned value is 0 openvas-cli-1.4.5/nagios/check_omp.c:813:29: note: Assuming condition is false openvas-cli-1.4.5/nagios/check_omp.c:828:47: note: Null pointer dereference openvas-cli-1.4.5/nagios/check_omp.c:861:49: warning: Possible null pointer dereference: dfn_ids_string [nullPointer] openvas-cli-1.4.5/nagios/check_omp.c:845:43: note: Assignment 'dfn_ids_string=NULL', assigned value is 0 openvas-cli-1.4.5/nagios/check_omp.c:846:31: note: Assuming condition is false openvas-cli-1.4.5/nagios/check_omp.c:861:49: note: Null pointer dereference openvas-cli-1.4.5/nagios/check_omp.c:747:26: style: Variable 'dfn_ids_array' can be declared as pointer to const [constVariablePointer] openvas-cli-1.4.5/nagios/check_omp.c:779:26: style: Variable 'dfn_ids_array' can be declared as pointer to const [constVariablePointer] openvas-cli-1.4.5/nagios/check_omp.c:811:26: style: Variable 'dfn_ids_array' can be declared as pointer to const [constVariablePointer] openvas-cli-1.4.5/nagios/check_omp.c:844:28: style: Variable 'dfn_ids_array' can be declared as pointer to const [constVariablePointer] openvas-cli-1.4.5/nagios/check_omp.c:900:52: style: Parameter 'host_filter' can be declared as pointer to const [constParameterPointer] diff: 2.17.0 openvas-cli-1.4.5/omp/omp.c:772:19: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] openvas-cli-1.4.5/omp/omp.c:754:44: note: Assuming allocation function fails openvas-cli-1.4.5/omp/omp.c:754:24: note: Assignment 'report=(unsigned char*)g_strdup("")', assigned value is 0 openvas-cli-1.4.5/omp/omp.c:772:19: note: Null pointer dereference DONE