2026-01-27 15:33 ftp://ftp.de.debian.org/debian/pool/main/g/globus-gsi-credential/globus-gsi-credential_8.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --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 -j4 platform: Linux-6.12.63+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.69 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.19.0 head-info: 0c2b64b (2026-01-27 11:35:55 +0100) count: 70 70 elapsed-time: 0.2 0.5 head-timing-info: old-timing-info: head results: globus_gsi_credential-8.5/library/globus_gsi_cred_error.c:220:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle_attrs.c:69:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle_attrs.c:140:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle_attrs.c:171:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle_attrs.c:245:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle_attrs.c:295:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle_attrs.c:359:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle_attrs.c:417:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_error.c:203:24: style: Variable 'temp_error_obj' is assigned a value that is never used. [unreadVariable] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1209:14: debug: Function::addArguments found argument 'OPENSSL_STRING' with varid 0. [varid0] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1369:14: debug: Function::addArguments found argument 'ASN1_OBJECT' with varid 0. [varid0] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:823:14: debug: Function::addArguments found argument 'X509' with varid 0. [varid0] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:921:14: debug: Function::addArguments found argument 'X509' with varid 0. [varid0] globus_gsi_credential-8.5/library/globus_gsi_credential.c:1396:14: debug: Function::addArguments found argument 'X509' with varid 0. [varid0] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:67:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:154:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X509_free [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:189:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:295:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:361:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:406:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:452:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:537:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:607:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:669:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:756:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:834:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:931:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1005:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1062:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1155:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1217:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1375:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1492:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1555:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1614:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1700:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1852:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:2045:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:2114:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:66:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:136:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:207:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:834:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:899:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X509 [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:1139:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:1223:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:1280:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:1401:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X509 [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:1523:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:1771:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:1854:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:1988:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:2027:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:2123:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_credential.c:2376:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GLOBUS_SUCCESS [valueFlowBailoutIncompleteVar] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:711:12: style: Variable 'result' is reassigned a value before the old one has been used. [redundantAssignment] globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:694:9: note: result is assigned globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:711:12: note: result is overwritten globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:293:41: style:inconclusive: Function 'globus_gsi_cred_get_handle_attrs' argument 2 names different: declaration 'handle_attrs' definition 'attrs'. [funcArgNamesDifferent] globus_gsi_credential-8.5/library/globus_gsi_credential.h:320:41: note: Function 'globus_gsi_cred_get_handle_attrs' argument 2 names different: declaration 'handle_attrs' definition 'attrs'. globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:293:41: note: Function 'globus_gsi_cred_get_handle_attrs' argument 2 names different: declaration 'handle_attrs' definition 'attrs'. globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:352:41: style:inconclusive: Function 'globus_gsi_cred_get_goodtill' argument 1 names different: declaration 'handle' definition 'cred_handle'. [funcArgNamesDifferent] globus_gsi_credential-8.5/library/globus_gsi_credential.h:327:41: note: Function 'globus_gsi_cred_get_goodtill' argument 1 names different: declaration 'handle' definition 'cred_handle'. globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:352:41: note: Function 'globus_gsi_cred_get_goodtill' argument 1 names different: declaration 'handle' definition 'cred_handle'. globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:397:41: style:inconclusive: Function 'globus_gsi_cred_get_lifetime' argument 1 names different: declaration 'handle' definition 'cred_handle'. [funcArgNamesDifferent] globus_gsi_credential-8.5/library/globus_gsi_credential.h:323:41: note: Function 'globus_gsi_cred_get_lifetime' argument 1 names different: declaration 'handle' definition 'cred_handle'. globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:397:41: note: Function 'globus_gsi_cred_get_lifetime' argument 1 names different: declaration 'handle' definition 'cred_handle'. globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:442:41: style:inconclusive: Function 'globus_gsi_cred_get_key_bits' argument 1 names different: declaration 'handle' definition 'cred_handle'. [funcArgNamesDifferent] globus_gsi_credential-8.5/library/globus_gsi_credential.h:335:41: note: Function 'globus_gsi_cred_get_key_bits' argument 1 names different: declaration 'handle' definition 'cred_handle'. globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:442:41: note: Function 'globus_gsi_cred_get_key_bits' argument 1 names different: declaration 'handle' definition 'cred_handle'. globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1842:41: style:inconclusive: Function 'globus_gsi_cred_verify_cert_chain_when' argument 2 names different: declaration 'callback_data' definition 'callback_data_in'. [funcArgNamesDifferent] globus_gsi_credential-8.5/library/globus_gsi_credential.h:252:41: note: Function 'globus_gsi_cred_verify_cert_chain_when' argument 2 names different: declaration 'callback_data' definition 'callback_data_in'. globus_gsi_credential-8.5/library/globus_gsi_cred_handle.c:1842:41: note: Function 'globus_gsi_cred_verify_cert_chain_when' argument 2 names different: declaration 'callback_data' definition 'callback_data_in'. globus_gsi_credential-8.5/library/globus_gsi_credential.c:2204:20: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: desired_cn [nullPointerOutOfMemory] globus_gsi_credential-8.5/library/globus_gsi_credential.c:2187:28: note: Assuming allocation function fails globus_gsi_credential-8.5/library/globus_gsi_credential.c:2187:28: note: Assignment 'desired_cn=malloc(length)', assigned value is 0 globus_gsi_credential-8.5/library/globus_gsi_credential.c:2204:20: note: Null pointer dereference globus_gsi_credential-8.5/library/globus_gsi_credential.c:2204:31: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: actual_cn [nullPointerOutOfMemory] globus_gsi_credential-8.5/library/globus_gsi_credential.c:2197:27: note: Assuming allocation function fails globus_gsi_credential-8.5/library/globus_gsi_credential.c:2197:27: note: Assignment 'actual_cn=malloc(length)', assigned value is 0 globus_gsi_credential-8.5/library/globus_gsi_credential.c:2204:31: note: Null pointer dereference globus_gsi_credential-8.5/library/globus_gsi_credential.c:2427:19: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: cn [nullPointerOutOfMemory] globus_gsi_credential-8.5/library/globus_gsi_credential.c:2422:16: note: Assuming allocation function fails globus_gsi_credential-8.5/library/globus_gsi_credential.c:2422:16: note: Assignment 'cn=malloc(length)', assigned value is 0 globus_gsi_credential-8.5/library/globus_gsi_credential.c:2427:19: note: Null pointer dereference globus_gsi_credential-8.5/library/globus_gsi_credential.c:1894:24: style: Variable 'temp_proxy_fd' is reassigned a value before the old one has been used. [redundantAssignment] globus_gsi_credential-8.5/library/globus_gsi_credential.c:1885:19: note: temp_proxy_fd is assigned globus_gsi_credential-8.5/library/globus_gsi_credential.c:1894:24: note: temp_proxy_fd is overwritten globus_gsi_credential-8.5/library/globus_gsi_credential.c:67:41: style: Variable 'tmp_string' can be declared as pointer to const [constVariablePointer] globus_gsi_credential-8.5/library/globus_gsi_credential.c:2094:41: style: Parameter 'buffer' can be declared as pointer to const. However it seems that 'globus_i_gsi_cred_password_callback_no_prompt' is a callback function, if 'buffer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] globus_gsi_credential-8.5/library/globus_gsi_credential.c:980:53: note: You might need to cast the function pointer here globus_gsi_credential-8.5/library/globus_gsi_credential.c:2094:41: note: Parameter 'buffer' can be declared as pointer to const globus_gsi_credential-8.5/library/globus_gsi_credential.c:2097:41: style: Parameter 'u' can be declared as pointer to const. However it seems that 'globus_i_gsi_cred_password_callback_no_prompt' is a callback function, if 'u' is declared with const you might also need to cast function pointer(s). [constParameterCallback] globus_gsi_credential-8.5/library/globus_gsi_credential.c:980:53: note: You might need to cast the function pointer here globus_gsi_credential-8.5/library/globus_gsi_credential.c:2097:41: note: Parameter 'u' can be declared as pointer to const globus_gsi_credential-8.5/library/globus_gsi_credential.c:2117:41: style: Variable 'desired_service' can be declared as pointer to const [constVariablePointer] globus_gsi_credential-8.5/library/globus_gsi_credential.c:2118:41: style: Variable 'actual_service' can be declared as pointer to const [constVariablePointer] diff: DONE