2025-05-06 02:59 ftp://ftp.de.debian.org/debian/pool/main/libz/libzc/libzc_0.4.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 581f101 (2025-05-05 21:13:30 +0200) count: 101 101 elapsed-time: 1.0 1.2 head-timing-info: old-timing-info: head results: libzc-0.4.3/lib/inflate.c:49:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_WBITS [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/inflate.c:93:36: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] libzc-0.4.3/lib/common.c:117:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_NPROCESSORS_ONLN [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/find_password.c:164:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key1 [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/libzc_private.h:38:28: style: Parameter 'UNUSED_ctx' can be declared as pointer to const [constParameterPointer] libzc-0.4.3/lib/libzc_private.h:114:44: style: Parameter 'ksrc' can be declared as pointer to const [constParameterPointer] libzc-0.4.3/lib/libzc.c:64:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/libzc.c:77:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/libzc.c:104:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/libzc.c:180:50: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] libzc-0.4.3/lib/find_password.c:415:63: style: Parameter 'ptext' can be declared as pointer to const [constParameterPointer] libzc-0.4.3/lib/find_password.c:110:29: warning: Uninitialized variable: revpw [uninitvar] libzc-0.4.3/lib/find_password.c:107:33: note: Assuming condition is false libzc-0.4.3/lib/find_password.c:110:29: note: Uninitialized variable: revpw libzc-0.4.3/lib/ptext_attack.c:303:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable workers [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/ptext_attack.c:361:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable workers [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/ptext_reduce.c:155:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SWAP [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/ptext_reduce.c:141:13: style: Variable 'key2i_size' is assigned a value that is never used. [unreadVariable] libzc-0.4.3/lib/list.h:142:48: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] libzc-0.4.3/lib/pwstream.c:261:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VALL [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/pwstream.c:342:41: style: Parameter 'pws' can be declared as pointer to const [constParameterPointer] libzc-0.4.3/lib/zc_crk_dict.c:190:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/zc_crk_bforce.c:437:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/zc_crk_bforce.c:533:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/zc_crk_bforce.c:556:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/zc_crk_bforce.c:575:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/zc_crk_bforce.c:697:56: style:inconclusive: Function 'zc_crk_bforce_init' argument 1 names different: declaration 'bforce' definition 'crk'. [funcArgNamesDifferent] libzc-0.4.3/lib/libzc.h:104:46: note: Function 'zc_crk_bforce_init' argument 1 names different: declaration 'bforce' definition 'crk'. libzc-0.4.3/lib/zc_crk_bforce.c:697:56: note: Function 'zc_crk_bforce_init' argument 1 names different: declaration 'bforce' definition 'crk'. libzc-0.4.3/lib/zc_crk_bforce.c:698:18: style:inconclusive: Function 'zc_crk_bforce_init' argument 2 names different: declaration 'fname' definition 'filename'. [funcArgNamesDifferent] libzc-0.4.3/lib/libzc.h:104:66: note: Function 'zc_crk_bforce_init' argument 2 names different: declaration 'fname' definition 'filename'. libzc-0.4.3/lib/zc_crk_bforce.c:698:18: note: Function 'zc_crk_bforce_init' argument 2 names different: declaration 'fname' definition 'filename'. libzc-0.4.3/lib/zc_crk_bforce.c:740:76: style:inconclusive: Function 'zc_crk_bforce_new' argument 2 names different: declaration 'bforce' definition 'crk'. [funcArgNamesDifferent] libzc-0.4.3/lib/libzc.h:103:66: note: Function 'zc_crk_bforce_new' argument 2 names different: declaration 'bforce' definition 'crk'. libzc-0.4.3/lib/zc_crk_bforce.c:740:76: note: Function 'zc_crk_bforce_new' argument 2 names different: declaration 'bforce' definition 'crk'. libzc-0.4.3/lib/zc_crk_bforce.c:777:73: style:inconclusive: Function 'zc_crk_bforce_ref' argument 1 names different: declaration 'bforce' definition 'crk'. [funcArgNamesDifferent] libzc-0.4.3/lib/libzc.h:101:63: note: Function 'zc_crk_bforce_ref' argument 1 names different: declaration 'bforce' definition 'crk'. libzc-0.4.3/lib/zc_crk_bforce.c:777:73: note: Function 'zc_crk_bforce_ref' argument 1 names different: declaration 'bforce' definition 'crk'. libzc-0.4.3/lib/zc_crk_bforce.c:785:75: style:inconclusive: Function 'zc_crk_bforce_unref' argument 1 names different: declaration 'bforce' definition 'crk'. [funcArgNamesDifferent] libzc-0.4.3/lib/libzc.h:102:65: note: Function 'zc_crk_bforce_unref' argument 1 names different: declaration 'bforce' definition 'crk'. libzc-0.4.3/lib/zc_crk_bforce.c:785:75: note: Function 'zc_crk_bforce_unref' argument 1 names different: declaration 'bforce' definition 'crk'. libzc-0.4.3/lib/zc_crk_bforce.c:803:14: style:inconclusive: Function 'zc_crk_bforce_sanitized_charset' argument 1 names different: declaration 'bforce' definition 'crk'. [funcArgNamesDifferent] libzc-0.4.3/lib/libzc.h:106:73: note: Function 'zc_crk_bforce_sanitized_charset' argument 1 names different: declaration 'bforce' definition 'crk'. libzc-0.4.3/lib/zc_crk_bforce.c:803:14: note: Function 'zc_crk_bforce_sanitized_charset' argument 1 names different: declaration 'bforce' definition 'crk'. libzc-0.4.3/lib/zc_crk_bforce.c:813:57: style:inconclusive: Function 'zc_crk_bforce_start' argument 1 names different: declaration 'bforce' definition 'crk'. [funcArgNamesDifferent] libzc-0.4.3/lib/libzc.h:108:47: note: Function 'zc_crk_bforce_start' argument 1 names different: declaration 'bforce' definition 'crk'. libzc-0.4.3/lib/zc_crk_bforce.c:813:57: note: Function 'zc_crk_bforce_start' argument 1 names different: declaration 'bforce' definition 'crk'. libzc-0.4.3/lib/zc_crk_bforce.c:813:68: style:inconclusive: Function 'zc_crk_bforce_start' argument 2 names different: declaration 'out_pw' definition 'pw'. [funcArgNamesDifferent] libzc-0.4.3/lib/libzc.h:108:61: note: Function 'zc_crk_bforce_start' argument 2 names different: declaration 'out_pw' definition 'pw'. libzc-0.4.3/lib/zc_crk_bforce.c:813:68: note: Function 'zc_crk_bforce_start' argument 2 names different: declaration 'out_pw' definition 'pw'. libzc-0.4.3/lib/zc_crk_bforce.c:814:14: style:inconclusive: Function 'zc_crk_bforce_start' argument 3 names different: declaration 'out_pw_size' definition 'len'. [funcArgNamesDifferent] libzc-0.4.3/lib/libzc.h:109:11: note: Function 'zc_crk_bforce_start' argument 3 names different: declaration 'out_pw_size' definition 'len'. libzc-0.4.3/lib/zc_crk_bforce.c:814:14: note: Function 'zc_crk_bforce_start' argument 3 names different: declaration 'out_pw_size' definition 'len'. libzc-0.4.3/lib/zc_file.c:129:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/zc_file.c:332:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/zc_file.c:368:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/zc_file.c:414:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/zc_file.c:433:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/zc_file.c:461:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/zc_file.c:498:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable list [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_basic.c:164:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_zc_log_priority [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_basic.c:184:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CK_NORMAL [valueFlowBailoutIncompleteVar] libzc-0.4.3/lib/zc_file.c:447:50: style:inconclusive: Function 'read_crypt_data' argument 5 names different: declaration 'is_deflated' definition 'deflated'. [funcArgNamesDifferent] libzc-0.4.3/lib/libzc_private.h:180:50: note: Function 'read_crypt_data' argument 5 names different: declaration 'is_deflated' definition 'deflated'. libzc-0.4.3/lib/zc_file.c:447:50: note: Function 'read_crypt_data' argument 5 names different: declaration 'is_deflated' definition 'deflated'. libzc-0.4.3/lib/zc_file.c:384:49: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] libzc-0.4.3/lib/zc_file.c:389:43: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] libzc-0.4.3/lib/zc_file.c:449:18: style: Variable 'info' can be declared as pointer to const [constVariablePointer] libzc-0.4.3/tests/check_bruteforce.c:46:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZC_CHARSET_MAXLEN [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_bruteforce.c:66:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_bruteforce.c:91:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_bruteforce.c:112:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZC_PW_MAXLEN [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_bruteforce.c:129:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZC_PW_MAXLEN [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_bruteforce.c:150:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZC_PW_MAXLEN [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_bruteforce.c:166:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZC_PW_MAXLEN [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_bruteforce.c:183:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZC_PW_MAXLEN [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_bruteforce.c:200:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZC_PW_MAXLEN [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_bruteforce.c:221:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZC_PW_MAXLEN [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_bruteforce.c:253:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_bruteforce.c:291:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_parameter_set [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_bruteforce.c:320:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CK_NORMAL [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_dictionary.c:50:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_dictionary.c:56:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_dictionary.c:63:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_dictionary.c:71:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_dictionary.c:86:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_init_file_not_found [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_dictionary.c:105:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CK_NORMAL [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_file.c:51:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_file.c:73:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_file.c:108:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_file.c:152:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATADIR [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_file.c:187:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_zc_file_new [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_file.c:207:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CK_NORMAL [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_plaintext.c:91:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_zc_ptext_new [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_plaintext.c:112:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CK_NORMAL [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_plaintext_password.c:220:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_zc_crk_ptext_find_password_0 [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_plaintext_password.c:252:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CK_NORMAL [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_pwstream.c:44:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable start [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_pwstream.c:320:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable generate_test_initial1 [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_pwstream.c:348:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CK_NORMAL [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_reduce.c:101:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_can_get_bits_15_2 [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_reduce.c:121:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CK_NORMAL [valueFlowBailoutIncompleteVar] libzc-0.4.3/tests/check_reduce.c:58:10: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: key2_first_gen [nullPointerOutOfMemory] libzc-0.4.3/tests/check_reduce.c:56:25: note: Assuming allocation function fails libzc-0.4.3/tests/check_reduce.c:56:25: note: Assignment 'key2_first_gen=calloc(1<<22,sizeof(uint32_t))', assigned value is 0 libzc-0.4.3/tests/check_reduce.c:58:10: note: Null pointer dereference libzc-0.4.3/yazc/yazc-bruteforce.c:60:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-bruteforce.c:119:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ZC_PW_MAXLEN [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-bruteforce.c:189:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-dictionary.c:37:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-dictionary.c:54:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-dictionary.c:99:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-info.c:39:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-info.c:61:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-bruteforce.c:258:9: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] libzc-0.4.3/yazc/yazc.c:71:11: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] libzc-0.4.3/yazc/yazc-plaintext.c:65:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-plaintext.c:100:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-plaintext.c:128:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-plaintext.c:187:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-plaintext.c:247:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-plaintext.c:288:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-plaintext.c:312:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] libzc-0.4.3/yazc/yazc-plaintext.c:173:4: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] libzc-0.4.3/yazc/yazc-plaintext.c:119:17: style: Local variable 'ctx' shadows outer variable [shadowVariable] libzc-0.4.3/yazc/yazc-plaintext.c:46:23: note: Shadowed declaration libzc-0.4.3/yazc/yazc-plaintext.c:119:17: note: Shadow variable libzc-0.4.3/yazc/yazc-plaintext.c:285:41: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] diff: DONE