2025-05-06 07:35 ftp://ftp.de.debian.org/debian/pool/main/m/mokutil/mokutil_0.7.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --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 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 581f101 (2025-05-05 21:13:30 +0200) count: 88 88 elapsed-time: 2.8 3.4 head-timing-info: old-timing-info: head results: mokutil-0.7.2/src/efi_hash.c:41:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_sha1 [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/efi_hash.c:63:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_t [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/efi_hash.c:78:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/efi_hash.c:142:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_t [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/efi_hash.c:175:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA224_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/efi_hash.c:151:7: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/efi_hash.c:154:7: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/efi_x509.c:47:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/efi_x509.c:87:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVP_MAX_MD_SIZE [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/efi_x509.c:189:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X509_V_FLAG_PARTIAL_CHAIN [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/efi_x509.c:243:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/keyring.c:67:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/keyring.c:53:33: style: Variable 'key_ptr' can be declared as pointer to const [constVariablePointer] mokutil-0.7.2/src/keyring.c:57:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] mokutil-0.7.2/src/mokutil.c:193:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_x509_cert [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:230:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:278:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:365:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:400:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:458:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_VARIABLE_NON_VOLATILE [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:573:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_x509_cert [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:627:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:665:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_security [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:724:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_x509_cert [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:748:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_shim [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:768:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_security [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:816:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_x509_cert [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:884:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1061:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA512_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1207:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1308:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1360:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1412:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_global [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1533:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1590:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1611:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1661:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1693:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1712:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_VARIABLE_NON_VOLATILE [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1732:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_VARIABLE_NON_VOLATILE [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1752:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_VARIABLE_NON_VOLATILE [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1773:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_shim [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1801:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EFI_VARIABLE_NON_VOLATILE [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:1844:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable no_argument [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/mokutil.c:372:17: portability: Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'. [prohibitedcryptCalled] mokutil-0.7.2/src/mokutil.c:406:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] mokutil-0.7.2/src/mokutil.c:438:11: portability: Non reentrant function 'getspnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getspnam_r'. [prohibitedgetspnamCalled] mokutil-0.7.2/src/mokutil.c:462:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] mokutil-0.7.2/src/mokutil.c:1644:17: portability: Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'. [prohibitedcryptCalled] mokutil-0.7.2/src/mokutil.c:183:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mokutil-0.7.2/src/mokutil.c:278:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mokutil-0.7.2/src/mokutil.c:278:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mokutil-0.7.2/src/mokutil.c:1264:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mokutil-0.7.2/src/mokutil.c:1420:3: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] mokutil-0.7.2/src/mokutil.c:1438:3: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] mokutil-0.7.2/src/mokutil.c:1513:30: error:inconclusive: Pointer addition with NULL pointer. [nullPointerArithmetic] mokutil-0.7.2/src/mokutil.c:1497:14: note: Assignment 'buf=NULL', assigned value is 0 mokutil-0.7.2/src/mokutil.c:1513:30: note: Null pointer addition mokutil-0.7.2/src/mokutil.c:324:8: style: Variable 'rand_str' can be declared as pointer to const [constVariablePointer] mokutil-0.7.2/src/mokutil.c:348:8: style: Variable 'crypt_string' can be declared as pointer to const [constVariablePointer] mokutil-0.7.2/src/mokutil.c:436:15: style: Variable 'pw_ent' can be declared as pointer to const [constVariablePointer] mokutil-0.7.2/src/mokutil.c:555:17: style: Parameter 'var_data' can be declared as pointer to const [constParameterPointer] mokutil-0.7.2/src/mokutil.c:1603:8: style: Variable 'crypt_string' can be declared as pointer to const [constVariablePointer] mokutil-0.7.2/src/mokutil.c:1818:23: style: Parameter 'argv' can be declared as const array [constParameter] mokutil-0.7.2/src/mokutil.c:986:8: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/mokutil.c:991:8: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/mokutil.c:995:8: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/mokutil.c:1009:20: portability: 'new_list' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/mokutil.c:1140:7: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/mokutil.c:1151:8: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/mokutil.c:1160:7: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/mokutil.c:1162:7: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/mokutil.c:1164:7: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/mokutil.c:1169:8: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/mokutil.c:1273:40: portability: 'list[i].mok' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/mokutil.c:1513:30: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/mokutil.c:603:10: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] mokutil-0.7.2/src/password-crypt.c:109:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/util.c:55:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/util.c:114:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/util.c:202:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_shim [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/util.c:224:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable efi_guid_shim [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/util.c:358:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mokutil-0.7.2/src/util.c:387:31: style:inconclusive: Function 'get_db_var_name' argument 1 names different: declaration 'db' definition 'db_name'. [funcArgNamesDifferent] mokutil-0.7.2/src/util.h:51:43: note: Function 'get_db_var_name' argument 1 names different: declaration 'db' definition 'db_name'. mokutil-0.7.2/src/util.c:387:31: note: Function 'get_db_var_name' argument 1 names different: declaration 'db' definition 'db_name'. mokutil-0.7.2/src/util.c:402:36: style:inconclusive: Function 'get_db_friendly_name' argument 1 names different: declaration 'db' definition 'db_name'. [funcArgNamesDifferent] mokutil-0.7.2/src/util.h:52:48: note: Function 'get_db_friendly_name' argument 1 names different: declaration 'db' definition 'db_name'. mokutil-0.7.2/src/util.c:402:36: note: Function 'get_db_friendly_name' argument 1 names different: declaration 'db' definition 'db_name'. mokutil-0.7.2/src/util.c:108:25: portability: 'data' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/util.c:271:17: portability: 'start' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/util.c:285:17: portability: 'start' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/util.c:289:11: portability: 'start' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mokutil-0.7.2/src/util.c:290:17: portability: 'start' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] diff: DONE