2026-05-01 10:56 ftp://ftp.de.debian.org/debian/pool/main/c/cmospwd/cmospwd_5.0+dfsg.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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 52 35 elapsed-time: 1.3 1.1 head-timing-info: old-timing-info: head results: cmospwd-5.0/src/ioperm-0.4-patched/admin/install.c:49:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cmospwd-5.0/src/ioperm-0.4-patched/admin/install.c:64:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATH [valueFlowBailoutIncompleteVar] cmospwd-5.0/src/ioperm-0.4-patched/admin/ioperm.c:146:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VER_PLATFORM_WIN32_NT [valueFlowBailoutIncompleteVar] cmospwd-5.0/src/ioperm-0.4-patched/admin/uninstall.c:51:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SERVICE_ALL_ACCESS [valueFlowBailoutIncompleteVar] cmospwd-5.0/src/ioperm-0.4-patched/admin/uninstall.c:71:3: style:inconclusive: Statements following noreturn function 'err()' will never be executed. [unreachableCode] cmospwd-5.0/src/cmospwd.c:1559:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] cmospwd-5.0/src/cmospwd.c:1598:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] cmospwd-5.0/src/cmospwd.c:1956:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] cmospwd-5.0/src/cmospwd.c:2167:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] cmospwd-5.0/src/cmospwd.c:1792:41: style: Expression is always false because 'else if' condition matches previous condition at line 1717. [multiCondition] cmospwd-5.0/src/cmospwd.c:2081:19: style: Condition 'load_cmos(cmos_size)' is always false [knownConditionTrueFalse] cmospwd-5.0/src/cmospwd.c:2081:19: note: Calling function 'load_cmos' returns 0 cmospwd-5.0/src/cmospwd.c:2081:19: note: Condition 'load_cmos(cmos_size)' is always false cmospwd-5.0/src/cmospwd.c:2090:19: style: Condition 'load_cmos(cmos_size)' is always false [knownConditionTrueFalse] cmospwd-5.0/src/cmospwd.c:2090:19: note: Calling function 'load_cmos' returns 0 cmospwd-5.0/src/cmospwd.c:2090:19: note: Condition 'load_cmos(cmos_size)' is always false cmospwd-5.0/src/cmospwd.c:1633:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cmospwd-5.0/src/cmospwd.c:1641:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cmospwd-5.0/src/cmospwd.c:1657:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] cmospwd-5.0/src/cmospwd.c:1906:5: error: Resource leak: fb [resourceLeak] cmospwd-5.0/src/cmospwd.c:679:21: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] cmospwd-5.0/src/cmospwd.c:2131:54: note: Assuming allocation function fails cmospwd-5.0/src/cmospwd.c:2131:33: note: Assignment 'cmos_processed=(unsigned int*)malloc(sizeof(unsigned int)*cmos_size)', assigned value is 0 cmospwd-5.0/src/cmospwd.c:2144:18: note: Calling function 'generic_acer', 1st argument 'cmos_processed' value is 0 cmospwd-5.0/src/cmospwd.c:679:21: note: Null pointer dereference cmospwd-5.0/src/cmospwd.c:681:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] cmospwd-5.0/src/cmospwd.c:2131:54: note: Assuming allocation function fails cmospwd-5.0/src/cmospwd.c:2131:33: note: Assignment 'cmos_processed=(unsigned int*)malloc(sizeof(unsigned int)*cmos_size)', assigned value is 0 cmospwd-5.0/src/cmospwd.c:2144:18: note: Calling function 'generic_acer', 1st argument 'cmos_processed' value is 0 cmospwd-5.0/src/cmospwd.c:681:5: note: Null pointer dereference cmospwd-5.0/src/cmospwd.c:681:12: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] cmospwd-5.0/src/cmospwd.c:2131:54: note: Assuming allocation function fails cmospwd-5.0/src/cmospwd.c:2131:33: note: Assignment 'cmos_processed=(unsigned int*)malloc(sizeof(unsigned int)*cmos_size)', assigned value is 0 cmospwd-5.0/src/cmospwd.c:2144:18: note: Calling function 'generic_acer', 1st argument 'cmos_processed' value is 0 cmospwd-5.0/src/cmospwd.c:681:12: note: Null pointer dereference cmospwd-5.0/src/cmospwd.c:1964:5: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] cmospwd-5.0/src/cmospwd.c:2131:54: note: Assuming allocation function fails cmospwd-5.0/src/cmospwd.c:2131:33: note: Assignment 'cmos_processed=(unsigned int*)malloc(sizeof(unsigned int)*cmos_size)', assigned value is 0 cmospwd-5.0/src/cmospwd.c:2134:24: note: Calling function 'convert_uchar2uint', 1st argument 'cmos_processed' value is 0 cmospwd-5.0/src/cmospwd.c:1964:5: note: Null pointer dereference cmospwd-5.0/src/cmospwd.c:1970:21: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] cmospwd-5.0/src/cmospwd.c:2131:54: note: Assuming allocation function fails cmospwd-5.0/src/cmospwd.c:2131:33: note: Assignment 'cmos_processed=(unsigned int*)malloc(sizeof(unsigned int)*cmos_size)', assigned value is 0 cmospwd-5.0/src/cmospwd.c:2139:28: note: Calling function 'convert_scancode2ascii', 1st argument 'cmos_processed' value is 0 cmospwd-5.0/src/cmospwd.c:1970:21: note: Null pointer dereference cmospwd-5.0/src/cmospwd.c:1971:8: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] cmospwd-5.0/src/cmospwd.c:2131:54: note: Assuming allocation function fails cmospwd-5.0/src/cmospwd.c:2131:33: note: Assignment 'cmos_processed=(unsigned int*)malloc(sizeof(unsigned int)*cmos_size)', assigned value is 0 cmospwd-5.0/src/cmospwd.c:2139:28: note: Calling function 'convert_scancode2ascii', 1st argument 'cmos_processed' value is 0 cmospwd-5.0/src/cmospwd.c:1971:8: note: Null pointer dereference cmospwd-5.0/src/cmospwd.c:387:28: style:inconclusive: Function 'scan2ascii' argument 1 names different: declaration '' definition 'car'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:444:36: style:inconclusive: Function 'filtre' argument 1 names different: declaration '' definition 'lettre'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:579:22: style:inconclusive: Function 'rcl8' argument 1 names different: declaration '' definition 'num'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:584:23: style:inconclusive: Function 'rcl8n' argument 1 names different: declaration '' definition 'num'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:584:41: style:inconclusive: Function 'rcl8n' argument 2 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:593:23: style:inconclusive: Function 'rol' argument 1 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:640:30: style:inconclusive: Function 'generic_ami' argument 1 names different: declaration 'data' definition 'dst'. [funcArgNamesDifferent] cmospwd-5.0/src/cmospwd.c:216:31: note: Function 'generic_ami' argument 1 names different: declaration 'data' definition 'dst'. cmospwd-5.0/src/cmospwd.c:640:30: note: Function 'generic_ami' argument 1 names different: declaration 'data' definition 'dst'. cmospwd-5.0/src/cmospwd.c:688:35: style:inconclusive: Function 'generic_award6' argument 1 names different: declaration 'value' definition 'dst'. [funcArgNamesDifferent] cmospwd-5.0/src/cmospwd.c:217:35: note: Function 'generic_award6' argument 1 names different: declaration 'value' definition 'dst'. cmospwd-5.0/src/cmospwd.c:688:35: note: Function 'generic_award6' argument 1 names different: declaration 'value' definition 'dst'. cmospwd-5.0/src/cmospwd.c:695:35: style:inconclusive: Function 'generic_unknown' argument 1 names different: declaration 'value' definition 'dst'. [funcArgNamesDifferent] cmospwd-5.0/src/cmospwd.c:226:35: note: Function 'generic_unknown' argument 1 names different: declaration 'value' definition 'dst'. cmospwd-5.0/src/cmospwd.c:695:35: note: Function 'generic_unknown' argument 1 names different: declaration 'value' definition 'dst'. cmospwd-5.0/src/cmospwd.c:993:28: style:inconclusive: Function 'brute_awa' argument 1 names different: declaration '' definition 'but'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:993:42: style:inconclusive: Function 'brute_awa' argument 2 names different: declaration '' definition 'somme'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:993:57: style:inconclusive: Function 'brute_awa' argument 3 names different: declaration '' definition 'lng'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:1010:30: style:inconclusive: Function 'brute_award' argument 1 names different: declaration '' definition 'but'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:1031:27: style:inconclusive: Function 'do_tosh' argument 1 names different: declaration '' definition 'valcrc'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:1031:43: style:inconclusive: Function 'do_tosh' argument 2 names different: declaration '' definition 'car'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:1055:29: style:inconclusive: Function 'brute_tosh' argument 1 names different: declaration '' definition 'but'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:1055:43: style:inconclusive: Function 'brute_tosh' argument 2 names different: declaration '' definition 'valcrc'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:1055:59: style:inconclusive: Function 'brute_tosh' argument 3 names different: declaration '' definition 'lng'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:1078:32: style:inconclusive: Function 'brute_toshiba' argument 1 names different: declaration '' definition 'but'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:1616:29: style:inconclusive: Function 'load_backup' argument 1 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] cmospwd-5.0/src/cmospwd.c:1315:27: error: Uninitialized variable: res[i] [legacyUninitvar] cmospwd-5.0/src/cmospwd.c:341:7: style: struct member 's_cmos_f::scancode' is never used. [unusedStructMember] cmospwd-5.0/src/cmospwd.c:342:7: style: struct member 's_cmos_f::position' is never used. [unusedStructMember] cmospwd-5.0/src/cmospwd.c:343:7: style: struct member 's_cmos_f::size' is never used. [unusedStructMember] cmospwd-5.0/src/cmospwd.c:344:7: style: struct member 's_cmos_f::order' is never used. [unusedStructMember] cmospwd-5.0/src/cmospwd.c:349:7: style: struct member 's_cmos_l::type' is never used. [unusedStructMember] cmospwd-5.0/src/cmospwd.c:350:9: style: struct member 's_cmos_l::info' is never used. [unusedStructMember] cmospwd-5.0/src/cmospwd.c:351:13: style: struct member 's_cmos_l::next' is never used. [unusedStructMember] cmospwd-5.0/src/cmospwd.c:356:9: style: struct member 's_cmos::name' is never used. [unusedStructMember] cmospwd-5.0/src/cmospwd.c:357:13: style: struct member 's_cmos::first' is never used. [unusedStructMember] diff: head cmospwd-5.0/src/cmospwd.c:1010:30: style:inconclusive: Function 'brute_award' argument 1 names different: declaration '' definition 'but'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:1031:27: style:inconclusive: Function 'do_tosh' argument 1 names different: declaration '' definition 'valcrc'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:1031:43: style:inconclusive: Function 'do_tosh' argument 2 names different: declaration '' definition 'car'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:1055:29: style:inconclusive: Function 'brute_tosh' argument 1 names different: declaration '' definition 'but'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:1055:43: style:inconclusive: Function 'brute_tosh' argument 2 names different: declaration '' definition 'valcrc'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:1055:59: style:inconclusive: Function 'brute_tosh' argument 3 names different: declaration '' definition 'lng'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:1078:32: style:inconclusive: Function 'brute_toshiba' argument 1 names different: declaration '' definition 'but'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:1616:29: style:inconclusive: Function 'load_backup' argument 1 names different: declaration '' definition 'name'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:387:28: style:inconclusive: Function 'scan2ascii' argument 1 names different: declaration '' definition 'car'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:444:36: style:inconclusive: Function 'filtre' argument 1 names different: declaration '' definition 'lettre'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:579:22: style:inconclusive: Function 'rcl8' argument 1 names different: declaration '' definition 'num'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:584:23: style:inconclusive: Function 'rcl8n' argument 1 names different: declaration '' definition 'num'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:584:41: style:inconclusive: Function 'rcl8n' argument 2 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:593:23: style:inconclusive: Function 'rol' argument 1 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:993:28: style:inconclusive: Function 'brute_awa' argument 1 names different: declaration '' definition 'but'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:993:42: style:inconclusive: Function 'brute_awa' argument 2 names different: declaration '' definition 'somme'. [funcArgNamesDifferentUnnamed] head cmospwd-5.0/src/cmospwd.c:993:57: style:inconclusive: Function 'brute_awa' argument 3 names different: declaration '' definition 'lng'. [funcArgNamesDifferentUnnamed] DONE