2024-03-27 20:33 ftp://ftp.de.debian.org/debian/pool/main/liba/libapache2-mod-auth-openidc/libapache2-mod-auth-openidc_2.4.15.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=valueFlowBailoutIncompleteVar -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-0.deb11.6-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.45 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.13.0 head-info: 4d68318 (2024-03-27 19:27:33 +0100) count: 79 77 elapsed-time: 0.9 0.7 head-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.541211s (avg. 0.541211s - 1 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.126424s (avg. 0.0421413s - 3 result(s)) valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.10621s (avg. 0.0354033s - 3 result(s)) valueFlowSymbolic(tokenlist, symboldatabase, errorLogger, settings): 0.087085s (avg. 0.087085s - 1 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.079843s (avg. 0.079843s - 1 result(s)) Overall time: 0.818464s old-timing-info: Tokenizer::simplifyTokens1::ValueFlow: 0.049354s (avg. 0.049354s - 1 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.019189s (avg. 0.019189s - 1 result(s)) valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions): 0.017149s (avg. 0.0085745s - 2 result(s)) Tokenizer::simplifyTokens1::simplifyTokenList1: 0.016198s (avg. 0.016198s - 1 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.013517s (avg. 0.013517s - 1 result(s)) Overall time: 0.121673s head results: mod_auth_openidc-2.4.15.1/src/cache/common.c:277:59: error: There is an unknown macro here somewhere. Configuration is required. If OIDCCryptoPassphrase is a macro then please configure it. [unknownMacro] mod_auth_openidc-2.4.15.1/src/cache/file.c:111:65: error: There is an unknown macro here somewhere. Configuration is required. If APR_SIZE_T_FMT is a macro then please configure it. [unknownMacro] mod_auth_openidc-2.4.15.1/src/cache/memcache.c:91:69: error: There is an unknown macro here somewhere. Configuration is required. If OIDCMemCacheServers is a macro then please configure it. [unknownMacro] mod_auth_openidc-2.4.15.1/src/cache/shm.c:237:21: error: There is an unknown macro here somewhere. Configuration is required. If OIDCCacheShmEntrySizeMax is a macro then please configure it. [unknownMacro] mod_auth_openidc-2.4.15.1/src/cache/redis.c:79:56: error: There is an unknown macro here somewhere. Configuration is required. If OIDCRedisCacheServer is a macro then please configure it. [unknownMacro] mod_auth_openidc-2.4.15.1/src/authz.c:54:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] mod_auth_openidc-2.4.15.1/src/metrics.c:894:3: error: There is an unknown macro here somewhere. Configuration is required. If APR_TIME_T_FMT is a macro then please configure it. [unknownMacro] mod_auth_openidc-2.4.15.1/src/mod_auth_openidc.c:529:3: error: There is an unknown macro here somewhere. Configuration is required. If APR_TIME_T_FMT is a macro then please configure it. [unknownMacro] mod_auth_openidc-2.4.15.1/src/metadata.c:847:83: style:inconclusive: Function 'oidc_metadata_list' argument 3 names different: declaration 'arr' definition 'list'. [funcArgNamesDifferent] mod_auth_openidc-2.4.15.1/src/mod_auth_openidc.h:1063:83: note: Function 'oidc_metadata_list' argument 3 names different: declaration 'arr' definition 'list'. mod_auth_openidc-2.4.15.1/src/metadata.c:847:83: note: Function 'oidc_metadata_list' argument 3 names different: declaration 'arr' definition 'list'. mod_auth_openidc-2.4.15.1/src/metadata.c:1339:73: style:inconclusive: Function 'oidc_metadata_get' argument 3 names different: declaration 'selected' definition 'issuer'. [funcArgNamesDifferent] mod_auth_openidc-2.4.15.1/src/mod_auth_openidc.h:1064:73: note: Function 'oidc_metadata_get' argument 3 names different: declaration 'selected' definition 'issuer'. mod_auth_openidc-2.4.15.1/src/metadata.c:1339:73: note: Function 'oidc_metadata_get' argument 3 names different: declaration 'selected' definition 'issuer'. mod_auth_openidc-2.4.15.1/src/metadata.c:152:8: style: Variable 'result' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/jose.c:132:18: style:inconclusive: Function '_oidc_jose_error_set' argument 5 names different: declaration 'msg' definition 'fmt'. [funcArgNamesDifferent] mod_auth_openidc-2.4.15.1/src/jose.h:100:99: note: Function '_oidc_jose_error_set' argument 5 names different: declaration 'msg' definition 'fmt'. mod_auth_openidc-2.4.15.1/src/jose.c:132:18: note: Function '_oidc_jose_error_set' argument 5 names different: declaration 'msg' definition 'fmt'. mod_auth_openidc-2.4.15.1/src/jose.c:371:63: style:inconclusive: Function 'oidc_jwk_copy' argument 2 names different: declaration 'jwk' definition 'src'. [funcArgNamesDifferent] mod_auth_openidc-2.4.15.1/src/jose.h:176:63: note: Function 'oidc_jwk_copy' argument 2 names different: declaration 'jwk' definition 'src'. mod_auth_openidc-2.4.15.1/src/jose.c:371:63: note: Function 'oidc_jwk_copy' argument 2 names different: declaration 'jwk' definition 'src'. mod_auth_openidc-2.4.15.1/src/jose.c:394:45: style:inconclusive: Function 'oidc_jwk_list_destroy_hash' argument 1 names different: declaration 'key' definition 'keys'. [funcArgNamesDifferent] mod_auth_openidc-2.4.15.1/src/jose.h:184:45: note: Function 'oidc_jwk_list_destroy_hash' argument 1 names different: declaration 'key' definition 'keys'. mod_auth_openidc-2.4.15.1/src/jose.c:394:45: note: Function 'oidc_jwk_list_destroy_hash' argument 1 names different: declaration 'key' definition 'keys'. mod_auth_openidc-2.4.15.1/src/jose.c:506:73: style:inconclusive: Function 'oidc_jwk_create_symmetric_key' argument 2 names different: declaration 'kid' definition 'skid'. [funcArgNamesDifferent] mod_auth_openidc-2.4.15.1/src/jose.h:188:73: note: Function 'oidc_jwk_create_symmetric_key' argument 2 names different: declaration 'kid' definition 'skid'. mod_auth_openidc-2.4.15.1/src/jose.c:506:73: note: Function 'oidc_jwk_create_symmetric_key' argument 2 names different: declaration 'kid' definition 'skid'. mod_auth_openidc-2.4.15.1/src/jose.c:930:57: style:inconclusive: Function 'oidc_jwt_parse' argument 2 names different: declaration 's_json' definition 'input_json'. [funcArgNamesDifferent] mod_auth_openidc-2.4.15.1/src/jose.h:244:57: note: Function 'oidc_jwt_parse' argument 2 names different: declaration 's_json' definition 'input_json'. mod_auth_openidc-2.4.15.1/src/jose.c:930:57: note: Function 'oidc_jwt_parse' argument 2 names different: declaration 's_json' definition 'input_json'. mod_auth_openidc-2.4.15.1/src/jose.c:1475:96: style:inconclusive: Function 'oidc_jwk_pem_bio_to_jwk' argument 4 names different: declaration 'jwk' definition 'oidc_jwk'. [funcArgNamesDifferent] mod_auth_openidc-2.4.15.1/src/jose.h:269:96: note: Function 'oidc_jwk_pem_bio_to_jwk' argument 4 names different: declaration 'jwk' definition 'oidc_jwk'. mod_auth_openidc-2.4.15.1/src/jose.c:1475:96: note: Function 'oidc_jwk_pem_bio_to_jwk' argument 4 names different: declaration 'jwk' definition 'oidc_jwk'. mod_auth_openidc-2.4.15.1/src/jose.c:237:34: style: Parameter 'jwt' can be declared as pointer to const [constParameterPointer] mod_auth_openidc-2.4.15.1/src/jose.c:304:10: style: Variable 'v' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/jose.c:533:66: style: Parameter 'haystack' can be declared as pointer to const [constParameterPointer] mod_auth_openidc-2.4.15.1/src/jose.c:1237:8: style: Variable 's_digest' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/oauth.c:342:8: style: Variable 'cache_value' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/oauth.c:736:8: style: Variable 'authn_header' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/pcre_subst.c:107:66: style: Parameter 'replen' can be declared as pointer to const [constParameterPointer] mod_auth_openidc-2.4.15.1/src/pcre_subst.c:233:45: style: Parameter 'pcre' can be declared as pointer to const [constParameterPointer] mod_auth_openidc-2.4.15.1/src/pcre_subst.c:145:38: warning: Uninitialized variable: replen [uninitvar] mod_auth_openidc-2.4.15.1/src/pcre_subst.c:136:16: note: Assuming condition is false mod_auth_openidc-2.4.15.1/src/pcre_subst.c:145:38: note: Uninitialized variable: replen mod_auth_openidc-2.4.15.1/src/proto.c:962:2: error: There is an unknown macro here somewhere. Configuration is required. If APR_TIME_T_FMT is a macro then please configure it. [unknownMacro] mod_auth_openidc-2.4.15.1/src/util.c:113:2: error: There is an unknown macro here somewhere. Configuration is required. If APR_SIZE_T_FMT is a macro then please configure it. [unknownMacro] mod_auth_openidc-2.4.15.1/src/config.c:1353:45: style: Redundant condition: dir_cfg->state_cookie_prefix!=NULL. 'A || (!A && B)' is equivalent to 'A || B' [redundantCondition] mod_auth_openidc-2.4.15.1/src/config.c:2026:32: style: Redundant condition: dir_cfg->cookie!=NULL. 'A || (!A && B)' is equivalent to 'A || B' [redundantCondition] mod_auth_openidc-2.4.15.1/src/config.c:2034:37: style: Redundant condition: dir_cfg->cookie_path!=NULL. 'A || (!A && B)' is equivalent to 'A || B' [redundantCondition] mod_auth_openidc-2.4.15.1/src/config.c:2042:38: style: Redundant condition: dir_cfg->authn_header!=NULL. 'A || (!A && B)' is equivalent to 'A || B' [redundantCondition] mod_auth_openidc-2.4.15.1/src/config.c:953:10: style: Condition 'rv==NULL' is always true [knownConditionTrueFalse] mod_auth_openidc-2.4.15.1/src/config.c:949:19: note: Assignment 'rv=NULL', assigned value is 0 mod_auth_openidc-2.4.15.1/src/config.c:953:10: note: Condition 'rv==NULL' is always true mod_auth_openidc-2.4.15.1/test/stub.c:18:1: error: There is an unknown macro here somewhere. Configuration is required. If AP_DECLARE is a macro then please configure it. [unknownMacro] mod_auth_openidc-2.4.15.1/src/session.c:288:63: style:inconclusive: Function 'oidc_session_load' argument 2 names different: declaration 'z' definition 'zz'. [funcArgNamesDifferent] mod_auth_openidc-2.4.15.1/src/mod_auth_openidc.h:1079:63: note: Function 'oidc_session_load' argument 2 names different: declaration 'z' definition 'zz'. mod_auth_openidc-2.4.15.1/src/session.c:288:63: note: Function 'oidc_session_load' argument 2 names different: declaration 'z' definition 'zz'. mod_auth_openidc-2.4.15.1/src/session.c:545:83: style:inconclusive: Function 'oidc_session_set_userinfo_jwt' argument 3 names different: declaration 'userinfo_jwt' definition 's_userinfo_jwt'. [funcArgNamesDifferent] mod_auth_openidc-2.4.15.1/src/mod_auth_openidc.h:1091:83: note: Function 'oidc_session_set_userinfo_jwt' argument 3 names different: declaration 'userinfo_jwt' definition 's_userinfo_jwt'. mod_auth_openidc-2.4.15.1/src/session.c:545:83: note: Function 'oidc_session_set_userinfo_jwt' argument 3 names different: declaration 'userinfo_jwt' definition 's_userinfo_jwt'. mod_auth_openidc-2.4.15.1/src/session.c:230:8: style: Variable 'cookieValue' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/session.c:321:12: style: Variable 'c' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/test/test-cmd.c:404:38: error: There is an unknown macro here somewhere. Configuration is required. If APR_TIME_T_FMT is a macro then please configure it. [unknownMacro] mod_auth_openidc-2.4.15.1/src/parse.c:594:41: style: Variable 'enc' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/parse.c:790:4: style: Variable 'i' is assigned a value that is never used. [unreadVariable] mod_auth_openidc-2.4.15.1/src/parse.c:997:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] mod_auth_openidc-2.4.15.1/src/config.c:683:75: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] mod_auth_openidc-2.4.15.1/src/config.c:1182:12: style: Variable 'cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:1221:52: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] mod_auth_openidc-2.4.15.1/src/config.c:1230:52: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] mod_auth_openidc-2.4.15.1/src/config.c:1329:8: style: Variable 'w' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:1338:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:1345:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:1352:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:1966:12: style: Variable 'cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2018:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2025:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2033:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2041:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2049:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2056:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2063:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2070:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2077:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2084:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2096:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2103:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2110:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2115:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2135:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2140:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2147:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2152:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2173:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2180:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2185:16: style: Variable 'dir_cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2412:13: style: Variable 'cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:2426:13: style: Variable 'cfg' can be declared as pointer to const [constVariablePointer] mod_auth_openidc-2.4.15.1/src/config.c:399:10: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] mod_auth_openidc-2.4.15.1/src/config.c:430:10: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] mod_auth_openidc-2.4.15.1/src/config.c:435:10: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] mod_auth_openidc-2.4.15.1/src/config.c:603:6: style: Variable 'rv' is assigned a value that is never used. [unreadVariable] mod_auth_openidc-2.4.15.1/test/test.c:1316:22: error: There is an unknown macro here somewhere. Configuration is required. If APR_TIME_T_FMT is a macro then please configure it. [unknownMacro] diff: head mod_auth_openidc-2.4.15.1/src/pcre_subst.c:145:38: warning: Uninitialized variable: replen [uninitvar] mod_auth_openidc-2.4.15.1/src/pcre_subst.c:136:16: note: Assuming condition is false mod_auth_openidc-2.4.15.1/src/pcre_subst.c:145:38: note: Uninitialized variable: replen head mod_auth_openidc-2.4.15.1/src/pcre_subst.c:233:45: style: Parameter 'pcre' can be declared as pointer to const [constParameterPointer] DONE