2025-05-09 14:03 ftp://ftp.de.debian.org/debian/pool/main/c/cackey/cackey_0.7.11.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: d655a3a (2025-05-09 12:19:47 +0200) count: 213 210 elapsed-time: 1.6 1.7 head-timing-info: old-timing-info: head results: cackey-0.7.11/libcackey_wrap.c:34:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cackey-0.7.11/libcackey_wrap.c:56:3: error: Memory leak: libraryDir [memleak] cackey-0.7.11/libcackey_wrap.c:69:3: error: Memory leak: libraryDir [memleak] cackey-0.7.11/libcackey_wrap.c:74:2: error: Memory leak: libraryDir [memleak] cackey-0.7.11/libcackey_wrap.c:50:32: warning: If memory allocation fails, then there is a possible null pointer dereference: libraryDir [nullPointerOutOfMemory] cackey-0.7.11/libcackey_wrap.c:49:21: note: Assuming allocation function fails cackey-0.7.11/libcackey_wrap.c:49:21: note: Assignment 'libraryDir=strdup(libinfo.dli_fname)', assigned value is 0 cackey-0.7.11/libcackey_wrap.c:50:32: note: Null pointer dereference cackey-0.7.11/libcackey_wrap.c:137:78: style:inconclusive: Function 'C_WaitForSlotEvent' argument 2 names different: declaration 'pSlot' definition 'pSlotID'. [funcArgNamesDifferent] cackey-0.7.11/pkcs11/pkcs11f.h:914:18: note: Function 'C_WaitForSlotEvent' argument 2 names different: declaration 'pSlot' definition 'pSlotID'. cackey-0.7.11/libcackey_wrap.c:137:78: note: Function 'C_WaitForSlotEvent' argument 2 names different: declaration 'pSlot' definition 'pSlotID'. cackey-0.7.11/libcackey_wrap.c:137:99: style:inconclusive: Function 'C_WaitForSlotEvent' argument 3 names different: declaration 'pRserved' definition 'pReserved'. [funcArgNamesDifferent] cackey-0.7.11/pkcs11/pkcs11f.h:915:15: note: Function 'C_WaitForSlotEvent' argument 3 names different: declaration 'pRserved' definition 'pReserved'. cackey-0.7.11/libcackey_wrap.c:137:99: note: Function 'C_WaitForSlotEvent' argument 3 names different: declaration 'pRserved' definition 'pReserved'. cackey-0.7.11/libcackey_wrap.c:187:99: style:inconclusive: Function 'C_SetPIN' argument 3 names different: declaration 'ulOldLen' definition 'ulOldPinLen'. [funcArgNamesDifferent] cackey-0.7.11/pkcs11/pkcs11f.h:162:21: note: Function 'C_SetPIN' argument 3 names different: declaration 'ulOldLen' definition 'ulOldPinLen'. cackey-0.7.11/libcackey_wrap.c:187:99: note: Function 'C_SetPIN' argument 3 names different: declaration 'ulOldLen' definition 'ulOldPinLen'. cackey-0.7.11/libcackey_wrap.c:187:146: style:inconclusive: Function 'C_SetPIN' argument 5 names different: declaration 'ulNewLen' definition 'ulNewPinLen'. [funcArgNamesDifferent] cackey-0.7.11/pkcs11/pkcs11f.h:164:21: note: Function 'C_SetPIN' argument 5 names different: declaration 'ulNewLen' definition 'ulNewPinLen'. cackey-0.7.11/libcackey_wrap.c:187:146: note: Function 'C_SetPIN' argument 5 names different: declaration 'ulNewLen' definition 'ulNewPinLen'. cackey-0.7.11/libcackey_wrap.c:727:85: style:inconclusive: Function 'C_GenerateRandom' argument 2 names different: declaration 'RandomData' definition 'pRandomData'. [funcArgNamesDifferent] cackey-0.7.11/pkcs11/pkcs11f.h:875:21: note: Function 'C_GenerateRandom' argument 2 names different: declaration 'RandomData' definition 'pRandomData'. cackey-0.7.11/libcackey_wrap.c:727:85: note: Function 'C_GenerateRandom' argument 2 names different: declaration 'RandomData' definition 'pRandomData'. cackey-0.7.11/asn1-x509.c:422:7: style: The if condition is the same as the previous if condition [duplicateCondition] cackey-0.7.11/asn1-x509.c:415:7: note: First condition cackey-0.7.11/asn1-x509.c:422:7: note: Second condition cackey-0.7.11/asn1-x509.c:145:72: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:152:114: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:159:236: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:167:219: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:175:133: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:260:94: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:265:89: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:288:94: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:293:89: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:316:94: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:321:89: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:387:84: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:398:131: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:405:93: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:410:95: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] cackey-0.7.11/asn1-x509.c:332:57: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] cackey-0.7.11/asn1-x509.c:370:118: style: Parameter 'matchlabel' can be declared as pointer to const [constParameterPointer] cackey-0.7.11/asn1-x509.c:48:25: style: struct member 'x509_object::pubkey_algo' is never used. [unusedStructMember] cackey-0.7.11/asn1-x509.c:49:25: style: struct member 'x509_object::pubkey_algoparm' is never used. [unusedStructMember] cackey-0.7.11/sha1.c:121:20: style:inconclusive: Function 'SHA1Input' argument 2 names different: declaration 'bytes' definition 'message_array'. [funcArgNamesDifferent] cackey-0.7.11/sha.h:251:52: note: Function 'SHA1Input' argument 2 names different: declaration 'bytes' definition 'message_array'. cackey-0.7.11/sha1.c:121:20: note: Function 'SHA1Input' argument 2 names different: declaration 'bytes' definition 'message_array'. cackey-0.7.11/sha1.c:121:44: style:inconclusive: Function 'SHA1Input' argument 3 names different: declaration 'bytecount' definition 'length'. [funcArgNamesDifferent] cackey-0.7.11/sha.h:252:35: note: Function 'SHA1Input' argument 3 names different: declaration 'bytecount' definition 'length'. cackey-0.7.11/sha1.c:121:44: note: Function 'SHA1Input' argument 3 names different: declaration 'bytecount' definition 'length'. cackey-0.7.11/sha1.c:162:49: style:inconclusive: Function 'SHA1FinalBits' argument 2 names different: declaration 'bits' definition 'message_bits'. [funcArgNamesDifferent] cackey-0.7.11/sha.h:253:49: note: Function 'SHA1FinalBits' argument 2 names different: declaration 'bits' definition 'message_bits'. cackey-0.7.11/sha1.c:162:49: note: Function 'SHA1FinalBits' argument 2 names different: declaration 'bits' definition 'message_bits'. cackey-0.7.11/sha1.c:163:18: style:inconclusive: Function 'SHA1FinalBits' argument 3 names different: declaration 'bit_count' definition 'length'. [funcArgNamesDifferent] cackey-0.7.11/sha.h:254:39: note: Function 'SHA1FinalBits' argument 3 names different: declaration 'bit_count' definition 'length'. cackey-0.7.11/sha1.c:163:18: note: Function 'SHA1FinalBits' argument 3 names different: declaration 'bit_count' definition 'length'. cackey-0.7.11/sha1.c:165:18: style: Variable 'masks' can be declared as const array [constVariable] cackey-0.7.11/sha1.c:172:18: style: Variable 'markbit' can be declared as const array [constVariable] cackey-0.7.11/cackey.c:972:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_LEAVE_CARD [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:1047:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_S_SUCCESS [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:1120:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_S_SUCCESS [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:1155:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_LEAVE_CARD [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:1198:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_SHARE_SHARED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:1256:113: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_PROTOCOL_T1 [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:1355:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_S_SUCCESS [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:1417:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_LEAVE_CARD [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:1536:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_PCI_T0 [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:2225:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKF_LOGIN_REQUIRED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:3186:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKF_LOGIN_REQUIRED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:3389:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_E_INSUFFICIENT_BUFFER [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:3751:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKF_OS_LOCKING_OK [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:3792:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKF_OS_LOCKING_OK [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:3826:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKF_OS_LOCKING_OK [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:3855:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CK_TRUSTED_DELEGATOR [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:4423:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKO_CERTIFICATE [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:4504:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKO_PRIVATE_KEY [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:4573:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:4609:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_ALREADY_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:4754:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_ARGUMENTS_BAD [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:4819:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_ARGUMENTS_BAD [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:4868:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_ARGUMENTS_BAD [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5141:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_ARGUMENTS_BAD [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5225:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_ARGUMENTS_BAD [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5344:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_ARGUMENTS_BAD [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5365:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5404:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_ARGUMENTS_BAD [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5461:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5476:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5495:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5641:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKF_SERIAL_SESSION [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5738:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5786:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5842:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_ARGUMENTS_BAD [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5895:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5909:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:5930:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6071:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6137:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6151:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6165:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6179:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6192:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_OK [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6314:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6332:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6540:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6676:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6738:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6752:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6766:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6780:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6798:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6879:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:6956:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_GENERAL_ERROR [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7096:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7162:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7176:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7190:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7204:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7218:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7236:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7321:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7411:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7522:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_GENERAL_ERROR [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7656:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7670:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7684:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7698:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7712:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7726:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7740:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7754:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7768:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7782:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7796:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7810:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7824:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7838:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7852:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7866:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7880:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7894:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7908:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_CRYPTOKI_NOT_INITIALIZED [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7922:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_FUNCTION_NOT_PARALLEL [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7933:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_FUNCTION_NOT_PARALLEL [valueFlowBailoutIncompleteVar] cackey-0.7.11/cackey.c:7947:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKR_ARGUMENTS_BAD [valueFlowBailoutIncompleteVar] cackey-0.7.11/md5.c:269:53: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] cackey-0.7.11/md5.c:285:54: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] cackey-0.7.11/test.c:313:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CK_SESSION_HANDLE [valueFlowBailoutIncompleteVar] cackey-0.7.11/test.c:413:3: warning: If memory allocation fails, then there is a possible null pointer dereference: privateKeyObjects [nullPointerOutOfMemory] cackey-0.7.11/test.c:410:28: note: Assuming allocation function fails cackey-0.7.11/test.c:410:28: note: Assignment 'privateKeyObjects=malloc(sizeof(*privateKeyObjects)*1024)', assigned value is 0 cackey-0.7.11/test.c:413:3: note: Null pointer dereference cackey-0.7.11/test.c:373:31: style: Variable 'pucValue' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/test.c:379:8: style: Variable 'fgets_ret' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/cackey.c:4403:26: style: Condition 'identities[id_idx].attributes' is always true [knownConditionTrueFalse] cackey-0.7.11/cackey.c:4361:5: error: Common realloc mistake: 'retval' nulled but not freed upon failure [memleakOnRealloc] cackey-0.7.11/cackey.c:4371:3: error: Common realloc mistake: 'retval' nulled but not freed upon failure [memleakOnRealloc] cackey-0.7.11/cackey.c:2435:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2434:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2434:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2435:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2437:12: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2434:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2434:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2437:12: note: Null pointer dereference cackey-0.7.11/cackey.c:2438:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2434:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2434:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2438:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2439:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2434:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2434:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2439:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2440:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2434:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2434:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2440:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2442:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2434:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2434:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2442:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2443:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2434:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2434:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2443:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2450:12: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpbuf [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2448:20: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2448:20: note: Assignment 'tmpbuf=malloc(length)', assigned value is 0 cackey-0.7.11/cackey.c:2450:12: note: Null pointer dereference cackey-0.7.11/cackey.c:2452:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2447:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2447:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2452:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2453:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2447:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2447:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2453:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2454:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2447:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2447:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2454:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2455:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2447:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2447:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2455:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2481:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2459:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2459:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2481:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2482:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2459:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2459:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2482:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2483:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2459:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2459:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2483:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2484:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2459:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2459:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2484:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2490:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2488:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2488:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2490:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2491:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2488:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2488:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2491:5: note: Null pointer dereference cackey-0.7.11/cackey.c:2492:5: warning: If memory allocation fails, then there is a possible null pointer dereference: curr_entity [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:2488:25: note: Assuming allocation function fails cackey-0.7.11/cackey.c:2488:25: note: Assignment 'curr_entity=malloc(sizeof(*curr_entity))', assigned value is 0 cackey-0.7.11/cackey.c:2492:5: note: Null pointer dereference cackey-0.7.11/cackey.c:3046:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpbuf [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:3038:20: note: Assuming allocation function fails cackey-0.7.11/cackey.c:3038:20: note: Assignment 'tmpbuf=malloc(tmpbuflen)', assigned value is 0 cackey-0.7.11/cackey.c:3046:5: note: Null pointer dereference cackey-0.7.11/cackey.c:3047:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpbuf [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:3038:20: note: Assuming allocation function fails cackey-0.7.11/cackey.c:3038:20: note: Assignment 'tmpbuf=malloc(tmpbuflen)', assigned value is 0 cackey-0.7.11/cackey.c:3047:5: note: Null pointer dereference cackey-0.7.11/cackey.c:3049:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpbuf [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:3038:20: note: Assuming allocation function fails cackey-0.7.11/cackey.c:3038:20: note: Assignment 'tmpbuf=malloc(tmpbuflen)', assigned value is 0 cackey-0.7.11/cackey.c:3049:5: note: Null pointer dereference cackey-0.7.11/cackey.c:3100:11: warning: If memory allocation fails, then there is a possible null pointer dereference: dyn_auth_tmpbuf [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:3099:28: note: Assuming allocation function fails cackey-0.7.11/cackey.c:3099:28: note: Assignment 'dyn_auth_tmpbuf=malloc(tmpbuflen+sizeof(dyn_auth_template))', assigned value is 0 cackey-0.7.11/cackey.c:3100:11: note: Null pointer dereference cackey-0.7.11/cackey.c:4516:5: warning: If memory allocation fails, then there is a possible null pointer dereference: identities [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:4510:22: note: Assuming allocation function fails cackey-0.7.11/cackey.c:4510:22: note: Assignment 'identities=malloc(num_ids*sizeof(*identities))', assigned value is 0 cackey-0.7.11/cackey.c:4516:5: note: Null pointer dereference cackey-0.7.11/cackey.c:4516:112: warning: If memory allocation fails, then there is a possible null pointer dereference: identities [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:4510:22: note: Assuming allocation function fails cackey-0.7.11/cackey.c:4510:22: note: Assignment 'identities=malloc(num_ids*sizeof(*identities))', assigned value is 0 cackey-0.7.11/cackey.c:4516:112: note: Null pointer dereference cackey-0.7.11/cackey.c:4518:5: warning: If memory allocation fails, then there is a possible null pointer dereference: identities [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:4510:22: note: Assuming allocation function fails cackey-0.7.11/cackey.c:4510:22: note: Assignment 'identities=malloc(num_ids*sizeof(*identities))', assigned value is 0 cackey-0.7.11/cackey.c:4518:5: note: Null pointer dereference cackey-0.7.11/cackey.c:4519:12: warning: If memory allocation fails, then there is a possible null pointer dereference: identities [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:4510:22: note: Assuming allocation function fails cackey-0.7.11/cackey.c:4510:22: note: Assignment 'identities=malloc(num_ids*sizeof(*identities))', assigned value is 0 cackey-0.7.11/cackey.c:4519:12: note: Null pointer dereference cackey-0.7.11/cackey.c:4521:5: warning: If memory allocation fails, then there is a possible null pointer dereference: identities [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:4510:22: note: Assuming allocation function fails cackey-0.7.11/cackey.c:4510:22: note: Assignment 'identities=malloc(num_ids*sizeof(*identities))', assigned value is 0 cackey-0.7.11/cackey.c:4521:5: note: Null pointer dereference cackey-0.7.11/cackey.c:4522:12: warning: If memory allocation fails, then there is a possible null pointer dereference: identities [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:4510:22: note: Assuming allocation function fails cackey-0.7.11/cackey.c:4510:22: note: Assignment 'identities=malloc(num_ids*sizeof(*identities))', assigned value is 0 cackey-0.7.11/cackey.c:4522:12: note: Null pointer dereference cackey-0.7.11/cackey.c:4724:7: warning: If memory allocation fails, then there is a possible null pointer dereference: cackey_readers_include_only [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:4722:39: note: Assuming allocation function fails cackey-0.7.11/cackey.c:4722:39: note: Assignment 'cackey_readers_include_only=strdup(getenv("CACKEY_READERS_INCLUDE_ONLY"))', assigned value is 0 cackey-0.7.11/cackey.c:4724:7: note: Null pointer dereference cackey-0.7.11/cackey.c:4734:7: warning: If memory allocation fails, then there is a possible null pointer dereference: cackey_readers_exclude [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:4732:34: note: Assuming allocation function fails cackey-0.7.11/cackey.c:4732:34: note: Assignment 'cackey_readers_exclude=strdup(getenv("CACKEY_READERS_EXCLUDE"))', assigned value is 0 cackey-0.7.11/cackey.c:4734:7: note: Null pointer dereference cackey-0.7.11/cackey.c:3101:27: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] cackey-0.7.11/cackey.c:3099:28: note: Assuming allocation function fails cackey-0.7.11/cackey.c:3099:28: note: Assignment 'dyn_auth_tmpbuf=malloc(tmpbuflen+sizeof(dyn_auth_template))', assigned value is 0 cackey-0.7.11/cackey.c:3101:27: note: Null pointer addition cackey-0.7.11/cackey.c:4531:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] cackey-0.7.11/cackey.c:4510:22: note: Assuming allocation function fails cackey-0.7.11/cackey.c:4510:22: note: Assignment 'identities=malloc(num_ids*sizeof(*identities))', assigned value is 0 cackey-0.7.11/cackey.c:4531:42: note: Null pointer addition cackey-0.7.11/cackey.c:1589:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] cackey-0.7.11/cackey.c:1591:4: note: Found duplicate branches for 'if' and 'else'. cackey-0.7.11/cackey.c:1589:2: note: Found duplicate branches for 'if' and 'else'. cackey-0.7.11/cackey.c:3176:12: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] cackey-0.7.11/cackey.c:3178:7: note: Found duplicate branches for 'if' and 'else'. cackey-0.7.11/cackey.c:3176:12: note: Found duplicate branches for 'if' and 'else'. cackey-0.7.11/cackey.c:6299:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] cackey-0.7.11/cackey.c:6301:4: note: Found duplicate branches for 'if' and 'else'. cackey-0.7.11/cackey.c:6299:9: note: Found duplicate branches for 'if' and 'else'. cackey-0.7.11/cackey.c:3561:18: style: Redundant assignment of 'tries_remaining' to itself. [selfAssignment] cackey-0.7.11/cackey.c:5128:15: style: Redundant assignment of 'tokenPresent' to itself. [selfAssignment] cackey-0.7.11/cackey.c:7924:11: style: Redundant assignment of 'hSession' to itself. [selfAssignment] cackey-0.7.11/cackey.c:7935:11: style: Redundant assignment of 'hSession' to itself. [selfAssignment] cackey-0.7.11/cackey.c:1283:19: style: Variable 'scard_conn_ret' is reassigned a value before the old one has been used. [redundantAssignment] cackey-0.7.11/cackey.c:1279:21: note: scard_conn_ret is assigned cackey-0.7.11/cackey.c:1283:19: note: scard_conn_ret is overwritten cackey-0.7.11/cackey.c:3561:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] cackey-0.7.11/cackey.c:5128:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] cackey-0.7.11/cackey.c:7924:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] cackey-0.7.11/cackey.c:7935:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] cackey-0.7.11/cackey.c:3712:22: style: Checking if unsigned expression 'certificate_len' is less than zero. [unsignedLessThanZero] cackey-0.7.11/cackey.c:911:8: style: Variable 'major_str' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/cackey.c:912:8: style: Variable 'minor_str' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/cackey.c:1501:178: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] cackey-0.7.11/cackey.c:1918:17: style: Variable 'buffer_p' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/cackey.c:2606:36: style: Variable 'buffer_p' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/cackey.c:2608:8: style: Variable 'piv_label' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/cackey.c:2963:48: style: Variable 'outbuf_p' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/cackey.c:3478:75: style: Parameter 'old_pin' can be declared as pointer to const [constParameterPointer] cackey-0.7.11/cackey.c:3478:126: style: Parameter 'pin' can be declared as pointer to const [constParameterPointer] cackey-0.7.11/cackey.c:4547:8: style: Variable 'fgets_ret' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/cackey.c:4599:30: style: Variable 'args' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/cackey.c:4855:40: style: Variable 'pcsc_readers_e' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/cackey.c:4856:8: style: Variable 'reader_check_pattern' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/cackey.c:6454:59: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] cackey-0.7.11/cackey.c:6454:76: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] cackey-0.7.11/cackey.c:6455:17: style: Variable 'smallbuf' can be declared as pointer to const [constVariablePointer] cackey-0.7.11/cackey.c:864:23: style: struct member 'cackey_tlv_cardurl::pinid' is never used. [unusedStructMember] cackey-0.7.11/cackey.c:909:22: style: Variable 'major' is assigned a value that is never used. [unreadVariable] cackey-0.7.11/cackey.c:910:22: style: Variable 'minor' is assigned a value that is never used. [unreadVariable] cackey-0.7.11/cackey.c:909:16: style: Variable 'major' is assigned a value that is never used. [unreadVariable] cackey-0.7.11/cackey.c:910:16: style: Variable 'minor' is assigned a value that is never used. [unreadVariable] cackey-0.7.11/cackey.c:911:8: style: Variable 'major_str' is assigned a value that is never used. [unreadVariable] cackey-0.7.11/cackey.c:912:8: style: Variable 'minor_str' is assigned a value that is never used. [unreadVariable] cackey-0.7.11/cackey.c:1145:31: style: Unused variable: pcsc_identities [unusedVariable] cackey-0.7.11/cackey.c:1146:16: style: Unused variable: num_certs [unusedVariable] cackey-0.7.11/cackey.c:2601:22: style: Unused variable: check_id_type [unusedVariable] cackey-0.7.11/cackey.c:2606:47: style: Unused variable: tmpbuf [unusedVariable] cackey-0.7.11/cackey.c:2611:21: style: Unused variable: tmpbuflen [unusedVariable] cackey-0.7.11/cackey.c:2613:6: style: Unused variable: send_ret [unusedVariable] cackey-0.7.11/cackey.c:2961:31: style: Unused variable: check_id_type [unusedVariable] cackey-0.7.11/cackey.c:3540:20: style: Variable 'tries_remaining' is assigned a value that is never used. [unreadVariable] cackey-0.7.11/cackey.c:3561:18: style: Variable 'tries_remaining' is assigned a value that is never used. [unreadVariable] cackey-0.7.11/cackey.c:5128:15: style: Variable 'tokenPresent' is assigned a value that is never used. [unreadVariable] cackey-0.7.11/cackey.c:7924:11: style: Variable 'hSession' is assigned a value that is never used. [unreadVariable] cackey-0.7.11/cackey.c:7935:11: style: Variable 'hSession' is assigned a value that is never used. [unreadVariable] diff: 2.17.0 cackey-0.7.11/cackey.c:3101:27: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] cackey-0.7.11/cackey.c:3099:28: note: Assuming allocation function fails cackey-0.7.11/cackey.c:3099:28: note: Assignment 'dyn_auth_tmpbuf=malloc(tmpbuflen+sizeof(dyn_auth_template))', assigned value is 0 cackey-0.7.11/cackey.c:3101:27: note: Null pointer addition head cackey-0.7.11/cackey.c:3101:27: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] cackey-0.7.11/cackey.c:3099:28: note: Assuming allocation function fails cackey-0.7.11/cackey.c:3099:28: note: Assignment 'dyn_auth_tmpbuf=malloc(tmpbuflen+sizeof(dyn_auth_template))', assigned value is 0 cackey-0.7.11/cackey.c:3101:27: note: Null pointer addition head cackey-0.7.11/cackey.c:4516:112: warning: If memory allocation fails, then there is a possible null pointer dereference: identities [nullPointerOutOfMemory] cackey-0.7.11/cackey.c:4510:22: note: Assuming allocation function fails cackey-0.7.11/cackey.c:4510:22: note: Assignment 'identities=malloc(num_ids*sizeof(*identities))', assigned value is 0 cackey-0.7.11/cackey.c:4516:112: note: Null pointer dereference 2.17.0 cackey-0.7.11/cackey.c:4531:42: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] cackey-0.7.11/cackey.c:4510:22: note: Assuming allocation function fails cackey-0.7.11/cackey.c:4510:22: note: Assignment 'identities=malloc(num_ids*sizeof(*identities))', assigned value is 0 cackey-0.7.11/cackey.c:4531:42: note: Null pointer addition head cackey-0.7.11/cackey.c:4531:42: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] cackey-0.7.11/cackey.c:4510:22: note: Assuming allocation function fails cackey-0.7.11/cackey.c:4510:22: note: Assignment 'identities=malloc(num_ids*sizeof(*identities))', assigned value is 0 cackey-0.7.11/cackey.c:4531:42: note: Null pointer addition head cackey-0.7.11/cackey.c:909:16: style: Variable 'major' is assigned a value that is never used. [unreadVariable] head cackey-0.7.11/cackey.c:910:16: style: Variable 'minor' is assigned a value that is never used. [unreadVariable] DONE