2026-09-05 07:16 ftp://ftp.de.debian.org/debian/pool/main/r/rapache/rapache_1.2.12.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 -j96 platform: Linux-6.8.0-137-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.21.0 head-info: 4e62f0c (2026-09-03 12:23:31 +0200) count: 89 89 elapsed-time: 0.3 0.1 head-timing-info: old-timing-info: head results: rapache-1.2.12/libapreq2/library/error.c:97:1: error: There is an unknown macro here somewhere. Configuration is required. If APREQ_DECLARE is a macro then please configure it. [unknownMacro] rapache-1.2.12/libapreq2/library/module.c:23:1: error: There is an unknown macro here somewhere. Configuration is required. If APREQ_DECLARE is a macro then please configure it. [unknownMacro] rapache-1.2.12/libapreq2/library/cookie.c:30:1: error: There is an unknown macro here somewhere. Configuration is required. If APREQ_DECLARE is a macro then please configure it. [unknownMacro] rapache-1.2.12/libapreq2/library/module_custom.c:255:1: error: There is an unknown macro here somewhere. Configuration is required. If APREQ_DECLARE is a macro then please configure it. [unknownMacro] rapache-1.2.12/libapreq2/library/param.c:28:1: error: There is an unknown macro here somewhere. Configuration is required. If APREQ_DECLARE is a macro then please configure it. [unknownMacro] rapache-1.2.12/libapreq2/library/parser.c:33:1: error: There is an unknown macro here somewhere. Configuration is required. If APREQ_DECLARE is a macro then please configure it. [unknownMacro] rapache-1.2.12/libapreq2/library/module_cgi.c:655:1: error: There is an unknown macro here somewhere. Configuration is required. If APREQ_DECLARE is a macro then please configure it. [unknownMacro] rapache-1.2.12/libapreq2/library/version.c:20:1: error: There is an unknown macro here somewhere. Configuration is required. If APREQ_DECLARE is a macro then please configure it. [unknownMacro] rapache-1.2.12/libapreq2/module/apache/apreq_module_apache.h:31:1: error: There is an unknown macro here somewhere. Configuration is required. If APREQ_DECLARE is a macro then please configure it. [unknownMacro] rapache-1.2.12/libapreq2/module/apache/t/c-modules/apreq_big_request_test/mod_apreq_big_request_test.c:47:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DECLINED [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/module/apache/t/c-modules/apreq_redirect_test/mod_apreq_redirect_test.c:40:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DECLINED [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/module/apache/t/c-modules/apreq_access_test/mod_apreq_access_test.c:73:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DECLINED [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/module/apache/t/c-modules/apreq_cookie_test/mod_apreq_cookie_test.c:56:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DECLINED [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/module/apache/t/c-modules/apreq_request_test/mod_apreq_request_test.c:50:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DECLINED [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/module/t/c-modules/apreq_big_request_test/mod_apreq_big_request_test.c:47:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DECLINED [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/module/t/c-modules/apreq_redirect_test/mod_apreq_redirect_test.c:40:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DECLINED [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/module/t/c-modules/apreq_access_test/mod_apreq_access_test.c:73:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DECLINED [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/parser_urlencoded.c:55:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_DEFAULT_NELTS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/parser_urlencoded.c:157:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pool [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/module/t/c-modules/apreq_cookie_test/mod_apreq_cookie_test.c:56:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DECLINED [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/module/apache2/apreq_module_apache2.h:140:1: error: There is an unknown macro here somewhere. Configuration is required. If APREQ_DECLARE is a macro then please configure it. [unknownMacro] rapache-1.2.12/libapreq2/module/t/c-modules/apreq_request_test/mod_apreq_request_test.c:50:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DECLINED [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/parser_header.c:58:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_DEFAULT_NELTS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/version.c:24:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_VERSION_STRING [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/parser_header.c:155:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pool [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/version.c:30:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_MAJOR_VERSION [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/version.c:51:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable apr_terminate [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/module/t/c-modules/apreq_output_filter_test/mod_apreq_output_filter_test.c:39:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_SUCCESS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/error.c:26:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_ERROR_GENERAL [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/error.c:75:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable apr_terminate [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/util.c:28:1: error: There is an unknown macro here somewhere. Configuration is required. If APREQ_DECLARE is a macro then please configure it. [unknownMacro] rapache-1.2.12/libapreq2/module/apache/t/c-modules/apreq_access_test/mod_apreq_access_test.c:57:56: style: Parameter 'dummy' can be declared as pointer to const [constParameterPointer] rapache-1.2.12/libapreq2/module/test_cgi.c:47:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable apr_terminate [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/module/t/c-modules/apreq_access_test/mod_apreq_access_test.c:57:56: style: Parameter 'dummy' can be declared as pointer to const [constParameterPointer] rapache-1.2.12/libapreq2/module/t/c-modules/apreq_output_filter_test/mod_apreq_output_filter_test.c:37:21: style: Variable 'handle' can be declared as pointer to const [constVariablePointer] rapache-1.2.12/libapreq2/module/t/c-modules/apreq_output_filter_test/mod_apreq_output_filter_test.c:38:12: style: Variable 'handle' is assigned a value that is never used. [unreadVariable] rapache-1.2.12/mod_R.c:108:2: error: failed to evaluate #if condition, undefined function-like macro invocation: R_Version( ... ) [syntaxError] rapache-1.2.12/libapreq2/library/parser_multipart.c:82:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_SUCCESS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/parser_multipart.c:124:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_EOF [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/parser_multipart.c:223:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_SUCCESS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/parser_multipart.c:250:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pool [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/cookie.c:37:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_DEFAULT_NELTS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/cookie.c:79:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_RFC822_DATE_LEN [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/cookie.c:177:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable apr_terminate [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/at.c:57:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_EINVAL [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/at.c:145:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_SUCCESS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/at.c:172:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_SUCCESS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/at.c:217:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_SUCCESS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/at.c:243:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_SUCCESS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/at.c:338:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_SUCCESS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/util.c:56:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_MATCH_FULL [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/util.c:79:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_SUCCESS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/util.c:110:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_SUCCESS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/util.c:133:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_SUCCESS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/util.c:284:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable apr_terminate [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/params.c:34:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_DEFAULT_NELTS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/params.c:67:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_JOIN_AS_IS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/params.c:107:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_ERROR_NOATTR [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/params.c:158:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APR_SUCCESS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/params.c:209:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable apr_terminate [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/parser_header.c:58:45: style: Variable 'iov' can be declared as pointer to const [constVariablePointer] rapache-1.2.12/libapreq2/library/t/error.c:24:21: style: Variable 'str' can be declared as pointer to const [constVariablePointer] rapache-1.2.12/libapreq2/library/t/parsers.c:146:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_DEFAULT_NELTS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/parsers.c:203:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_DEFAULT_NELTS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/parsers.c:275:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_DEFAULT_NELTS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/parsers.c:317:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_DEFAULT_NELTS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/parsers.c:348:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_DEFAULT_NELTS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/parsers.c:390:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_DEFAULT_NELTS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/parsers.c:453:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable APREQ_DEFAULT_NELTS [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/parsers.c:521:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable apr_terminate [valueFlowBailoutIncompleteVar] rapache-1.2.12/libapreq2/library/t/at.h:264:55: style: Argument 'p' shadows outer variable [shadowVariable] rapache-1.2.12/libapreq2/library/t/cookie.c:33:20: note: Shadowed variable rapache-1.2.12/libapreq2/library/t/at.h:264:55: note: Shadow argument rapache-1.2.12/libapreq2/library/t/at.c:323:9: error: Address of local auto-variable assigned to a function parameter. [autoVariables] rapache-1.2.12/libapreq2/library/t/at.c:328:9: error: Address of local auto-variable assigned to a function parameter. [autoVariables] rapache-1.2.12/libapreq2/library/t/at.c:333:9: error: Address of local auto-variable assigned to a function parameter. [autoVariables] rapache-1.2.12/libapreq2/library/t/at.c:335:5: error: Address of local auto-variable assigned to a function parameter. [autoVariables] rapache-1.2.12/libapreq2/library/t/at.c:136:9: style: Redundant initialization for 'end'. The initialized value is overwritten before it is read. [redundantInitialization] rapache-1.2.12/libapreq2/library/t/at.c:98:15: note: end is initialized rapache-1.2.12/libapreq2/library/t/at.c:136:9: note: end is overwritten rapache-1.2.12/libapreq2/library/t/at.c:122:19: style: Variable 'format[9]' is assigned a value that is never used. [unreadVariable] rapache-1.2.12/libapreq2/library/t/at.c:124:20: style: Variable 'format[14]' is assigned a value that is never used. [unreadVariable] rapache-1.2.12/libapreq2/library/t/at.h:264:55: style: Argument 'p' shadows outer variable [shadowVariable] rapache-1.2.12/libapreq2/library/t/params.c:28:20: note: Shadowed variable rapache-1.2.12/libapreq2/library/t/at.h:264:55: note: Shadow argument rapache-1.2.12/libapreq2/library/t/params.c:64:25: style: Variable 'arr' can be declared as pointer to const [constVariablePointer] rapache-1.2.12/libapreq2/library/t/at.h:264:55: style: Argument 'p' shadows outer variable [shadowVariable] rapache-1.2.12/libapreq2/library/t/parsers.c:25:20: note: Shadowed variable rapache-1.2.12/libapreq2/library/t/at.h:264:55: note: Shadow argument rapache-1.2.12/libapreq2/library/t/parsers.c:368:10: style: Variable 'data' can be declared as const array [constVariable] rapache-1.2.12/libapreq2/library/t/util.c:153:5: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] rapache-1.2.12/libapreq2/library/t/util.c:121:25: style: Parameter 'AT' can be declared as pointer to const. However it seems that 'test_encode' is a callback function, if 'AT' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rapache-1.2.12/libapreq2/library/t/util.c:272:11: note: You might need to cast the function pointer here rapache-1.2.12/libapreq2/library/t/util.c:121:25: note: Parameter 'AT' can be declared as pointer to const rapache-1.2.12/libapreq2/library/t/util.c:229:23: style: Parameter 'AT' can be declared as pointer to const. However it seems that 'test_join' is a callback function, if 'AT' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rapache-1.2.12/libapreq2/library/t/util.c:276:11: note: You might need to cast the function pointer here rapache-1.2.12/libapreq2/library/t/util.c:229:23: note: Parameter 'AT' can be declared as pointer to const rapache-1.2.12/libapreq2/library/t/util.c:234:33: style: Parameter 'AT' can be declared as pointer to const. However it seems that 'test_brigade_fwrite' is a callback function, if 'AT' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rapache-1.2.12/libapreq2/library/t/util.c:277:11: note: You might need to cast the function pointer here rapache-1.2.12/libapreq2/library/t/util.c:234:33: note: Parameter 'AT' can be declared as pointer to const rapache-1.2.12/libapreq2/library/t/util.c:239:30: style: Parameter 'AT' can be declared as pointer to const. However it seems that 'test_file_mktemp' is a callback function, if 'AT' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rapache-1.2.12/libapreq2/library/t/util.c:278:11: note: You might need to cast the function pointer here rapache-1.2.12/libapreq2/library/t/util.c:239:30: note: Parameter 'AT' can be declared as pointer to const rapache-1.2.12/libapreq2/library/t/util.c:245:35: style: Parameter 'AT' can be declared as pointer to const. However it seems that 'test_header_attribute' is a callback function, if 'AT' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rapache-1.2.12/libapreq2/library/t/util.c:279:11: note: You might need to cast the function pointer here rapache-1.2.12/libapreq2/library/t/util.c:245:35: note: Parameter 'AT' can be declared as pointer to const rapache-1.2.12/libapreq2/library/t/util.c:251:33: style: Parameter 'AT' can be declared as pointer to const. However it seems that 'test_brigade_concat' is a callback function, if 'AT' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rapache-1.2.12/libapreq2/library/t/util.c:280:11: note: You might need to cast the function pointer here rapache-1.2.12/libapreq2/library/t/util.c:251:33: note: Parameter 'AT' can be declared as pointer to const diff: DONE