2025-11-22 07:49 ftp://ftp.de.debian.org/debian/pool/main/libc/libcacard/libcacard_2.8.1.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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 -j4 platform: Linux-5.4.0-216-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.69 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0 cppcheck: head 2.18.0 head-info: 602da94 (2025-11-21 17:16:29 +0100) count: 121 194 elapsed-time: 1.1 2.9 head-timing-info: old-timing-info: head results: libcacard-2.8.1/fuzz/fuzz_xfer.c:33:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VEVENT_LAST [valueFlowBailoutIncompleteVar] libcacard-2.8.1/fuzz/fuzz_xfer.c:72:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TEST_DIST [valueFlowBailoutIncompleteVar] libcacard-2.8.1/fuzz/fuzz_xfer.c:103:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VEVENT_LAST [valueFlowBailoutIncompleteVar] libcacard-2.8.1/fuzz/fuzz_xfer.c:127:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/fuzz/fuzz_xfer.c:174:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/fuzz/fuzz_options.c:41:43: style:inconclusive: Function 'LLVMFuzzerTestOneInput' argument 1 names different: declaration 'data' definition 'Data'. [funcArgNamesDifferent] libcacard-2.8.1/fuzz/fuzzer.h:11:43: note: Function 'LLVMFuzzerTestOneInput' argument 1 names different: declaration 'data' definition 'Data'. libcacard-2.8.1/fuzz/fuzz_options.c:41:43: note: Function 'LLVMFuzzerTestOneInput' argument 1 names different: declaration 'data' definition 'Data'. libcacard-2.8.1/fuzz/fuzz_options.c:41:56: style:inconclusive: Function 'LLVMFuzzerTestOneInput' argument 2 names different: declaration 'size' definition 'Size'. [funcArgNamesDifferent] libcacard-2.8.1/fuzz/fuzzer.h:11:56: note: Function 'LLVMFuzzerTestOneInput' argument 2 names different: declaration 'size' definition 'Size'. libcacard-2.8.1/fuzz/fuzz_options.c:41:56: note: Function 'LLVMFuzzerTestOneInput' argument 2 names different: declaration 'size' definition 'Size'. libcacard-2.8.1/fuzz/fuzz_simpletlv.c:15:43: style:inconclusive: Function 'LLVMFuzzerTestOneInput' argument 1 names different: declaration 'data' definition 'Data'. [funcArgNamesDifferent] libcacard-2.8.1/fuzz/fuzzer.h:11:43: note: Function 'LLVMFuzzerTestOneInput' argument 1 names different: declaration 'data' definition 'Data'. libcacard-2.8.1/fuzz/fuzz_simpletlv.c:15:43: note: Function 'LLVMFuzzerTestOneInput' argument 1 names different: declaration 'data' definition 'Data'. libcacard-2.8.1/fuzz/fuzz_simpletlv.c:15:56: style:inconclusive: Function 'LLVMFuzzerTestOneInput' argument 2 names different: declaration 'size' definition 'Size'. [funcArgNamesDifferent] libcacard-2.8.1/fuzz/fuzzer.h:11:56: note: Function 'LLVMFuzzerTestOneInput' argument 2 names different: declaration 'size' definition 'Size'. libcacard-2.8.1/fuzz/fuzz_simpletlv.c:15:56: note: Function 'LLVMFuzzerTestOneInput' argument 2 names different: declaration 'size' definition 'Size'. libcacard-2.8.1/fuzz/fuzz_xfer.c:141:43: style:inconclusive: Function 'LLVMFuzzerTestOneInput' argument 1 names different: declaration 'data' definition 'Data'. [funcArgNamesDifferent] libcacard-2.8.1/fuzz/fuzzer.h:11:43: note: Function 'LLVMFuzzerTestOneInput' argument 1 names different: declaration 'data' definition 'Data'. libcacard-2.8.1/fuzz/fuzz_xfer.c:141:43: note: Function 'LLVMFuzzerTestOneInput' argument 1 names different: declaration 'data' definition 'Data'. libcacard-2.8.1/fuzz/fuzz_xfer.c:141:56: style:inconclusive: Function 'LLVMFuzzerTestOneInput' argument 2 names different: declaration 'size' definition 'Size'. [funcArgNamesDifferent] libcacard-2.8.1/fuzz/fuzzer.h:11:56: note: Function 'LLVMFuzzerTestOneInput' argument 2 names different: declaration 'size' definition 'Size'. libcacard-2.8.1/fuzz/fuzz_xfer.c:141:56: note: Function 'LLVMFuzzerTestOneInput' argument 2 names different: declaration 'size' definition 'Size'. libcacard-2.8.1/fuzz/fuzzer.c:37:5: error: Resource leak: f [resourceLeak] libcacard-2.8.1/fuzz/fuzzer.c:31:21: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] libcacard-2.8.1/fuzz/fuzzer.c:30:35: note: Assuming allocation function fails libcacard-2.8.1/fuzz/fuzzer.c:30:11: note: Assignment 'buf=(unsigned char*)malloc(len)', assigned value is 0 libcacard-2.8.1/fuzz/fuzzer.c:31:21: note: Null pointer dereference libcacard-2.8.1/src/common.h:35:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] libcacard-2.8.1/src/capcsc.c:122:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_E_NO_READERS_AVAILABLE [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/capcsc.c:173:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_S_SUCCESS [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/capcsc.c:206:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_STATE_UNAWARE [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/capcsc.c:215:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_PROTOCOL_T1 [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/capcsc.c:243:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_PROTOCOL_T0 [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/capcsc.c:303:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_S_SUCCESS [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/capcsc.c:322:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/capcsc.c:375:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_LEAVE_CARD [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/capcsc.c:394:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_STATE_PRESENT [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/capcsc.c:421:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/capcsc.c:491:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/gp.c:82:28: style: Variable 'serial' can be declared as pointer to const [constVariablePointer] libcacard-2.8.1/src/vcard_emul_type.c:28:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/vcard_emul_type.c:50:61: style: Parameter 'vreader' can be declared as pointer to const [constParameterPointer] libcacard-2.8.1/src/vreader.c:262:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/capcsc.c:94:37: style: Parameter 'pc' can be declared as pointer to const [constParameterPointer] libcacard-2.8.1/src/capcsc.c:313:18: style: Variable 'r' can be declared as pointer to const [constVariablePointer] libcacard-2.8.1/src/capcsc.c:325:60: style: Parameter 's' can be declared as pointer to const [constParameterPointer] libcacard-2.8.1/src/vreader.c:107:25: style:inconclusive: Function 'vreader_new' argument 1 names different: declaration 'readerName' definition 'name'. [funcArgNamesDifferent] libcacard-2.8.1/src/vreader.h:23:34: note: Function 'vreader_new' argument 1 names different: declaration 'readerName' definition 'name'. libcacard-2.8.1/src/vreader.c:107:25: note: Function 'vreader_new' argument 1 names different: declaration 'readerName' definition 'name'. libcacard-2.8.1/src/vreader.c:107:44: style:inconclusive: Function 'vreader_new' argument 2 names different: declaration 'emul_private' definition 'private'. [funcArgNamesDifferent] libcacard-2.8.1/src/vreader.h:23:59: note: Function 'vreader_new' argument 2 names different: declaration 'emul_private' definition 'private'. libcacard-2.8.1/src/vreader.c:107:44: note: Function 'vreader_new' argument 2 names different: declaration 'emul_private' definition 'private'. libcacard-2.8.1/src/vreader.c:365:41: style:inconclusive: Function 'vreader_list_get_next' argument 1 names different: declaration 'list' definition 'current'. [funcArgNamesDifferent] libcacard-2.8.1/src/vreader.h:43:59: note: Function 'vreader_list_get_next' argument 1 names different: declaration 'list' definition 'current'. libcacard-2.8.1/src/vreader.c:365:41: note: Function 'vreader_list_get_next' argument 1 names different: declaration 'list' definition 'current'. libcacard-2.8.1/src/vreader.c:184:25: style: Parameter 'reader' can be declared as pointer to const [constParameterPointer] libcacard-2.8.1/src/vreader.c:203:27: style: Parameter 'reader' can be declared as pointer to const [constParameterPointer] libcacard-2.8.1/src/vreader.c:212:30: style: Parameter 'reader' can be declared as pointer to const [constParameterPointer] libcacard-2.8.1/tests/initialize.c:23:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TEST_DIST [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/initialize.c:50:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TEST_DIST [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/initialize.c:27:9: warning: Assert statement calls a function which may have desired side effects: 'g_file_test'. [assertWithSideEffect] libcacard-2.8.1/tests/initialize.c:54:9: warning: Assert statement calls a function which may have desired side effects: 'g_file_test'. [assertWithSideEffect] libcacard-2.8.1/tests/hwtests.c:35:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VEVENT_LAST [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/hwtests.c:67:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TEST_BUILT [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/hwtests.c:103:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VSCARD_UNDEFINED_READER_ID [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/hwtests.c:147:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/hwtests.c:176:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/hwtests.c:218:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/hwtests.c:237:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/hwtests.c:267:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/hwtests.c:326:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/hwtests.c:398:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VEVENT_LAST [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/common.c:34:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/vscclient.c:166:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_OUT [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/common.c:82:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/vscclient.c:397:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/common.c:121:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/vscclient.c:556:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_OUT [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/common.c:351:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/vscclient.c:581:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/common.c:529:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/vscclient.c:596:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/common.c:592:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TEST_BUILT [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/vscclient.c:736:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/common.c:671:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/src/vscclient.c:808:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/common.c:767:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/common.c:862:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/common.c:923:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/common.c:1003:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/hwtests.c:334:14: style: Redundant initialization for 'key_bits'. The initialized value is overwritten before it is read. [redundantInitialization] libcacard-2.8.1/tests/hwtests.c:321:18: note: key_bits is initialized libcacard-2.8.1/tests/hwtests.c:334:14: note: key_bits is overwritten libcacard-2.8.1/tests/libcacard.c:36:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VEVENT_LAST [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:68:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TEST_DIST [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:123:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VSCARD_UNDEFINED_READER_ID [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:141:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VCARD_EMUL_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:174:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:194:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GSIZE_FORMAT [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:271:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:486:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:610:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:679:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:768:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:820:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:865:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:955:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VREADER_OK [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/libcacard.c:1098:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VEVENT_LAST [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/simpletlv.c:14:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIMPLETLV_TYPE_LEAF [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/simpletlv.c:54:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIMPLETLV_TYPE_LEAF [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/simpletlv.c:82:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIMPLETLV_TYPE_LEAF [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/simpletlv.c:111:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIMPLETLV_TYPE_LEAF [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/simpletlv.c:175:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIMPLETLV_TYPE_LEAF [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/simpletlv.c:219:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIMPLETLV_TYPE_LEAF [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/simpletlv.c:253:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIMPLETLV_TYPE_LEAF [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/simpletlv.c:281:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tag [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/simpletlv.c:320:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tag [valueFlowBailoutIncompleteVar] libcacard-2.8.1/tests/simpletlv.c:262:29: error: Static variable 'simple' will use pointer to local variable 'simple_value'. [danglingLifetime] libcacard-2.8.1/tests/simpletlv.c:259:29: note: Array decayed to pointer here. libcacard-2.8.1/tests/simpletlv.c:250:19: note: Variable created here. libcacard-2.8.1/tests/simpletlv.c:262:29: note: Static variable 'simple' will use pointer to local variable 'simple_value'. libcacard-2.8.1/tests/simpletlv.c:262:29: error: Static variable 'simple' will use pointer to local variable 'simple_value2'. [danglingLifetime] libcacard-2.8.1/tests/simpletlv.c:260:29: note: Array decayed to pointer here. libcacard-2.8.1/tests/simpletlv.c:251:19: note: Variable created here. libcacard-2.8.1/tests/simpletlv.c:262:29: note: Static variable 'simple' will use pointer to local variable 'simple_value2'. libcacard-2.8.1/src/vscclient.c:352:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcacard-2.8.1/src/vscclient.c:352:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcacard-2.8.1/src/vscclient.c:421:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcacard-2.8.1/src/vscclient.c:421:13: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libcacard-2.8.1/src/vscclient.c:760:9: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libcacard-2.8.1/src/vscclient.c:365:5: error: Return value of allocation function 'g_thread_new' is not stored. [leakReturnValNotUsed] libcacard-2.8.1/src/vscclient.c:50:14: style: Parameter 'arrBytes' can be declared as pointer to const [constParameterPointer] libcacard-2.8.1/src/vscclient.c:184:47: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'socket_prepare_sending' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libcacard-2.8.1/src/vscclient.c:212:16: note: You might need to cast the function pointer here libcacard-2.8.1/src/vscclient.c:184:47: note: Parameter 'user_data' can be declared as pointer to const libcacard-2.8.1/src/vscclient.c:325:26: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] libcacard-2.8.1/src/vscclient.c:337:28: style: Parameter 'mhHeader' can be declared as pointer to const [constParameterPointer] libcacard-2.8.1/src/vscclient.c:781:11: style: Variable 'qemu_host' can be declared as pointer to const [constVariablePointer] libcacard-2.8.1/src/vscclient.c:782:11: style: Variable 'qemu_port' can be declared as pointer to const [constVariablePointer] libcacard-2.8.1/src/vscclient.c:784:23: style: Variable 'command_line_options' can be declared as pointer to const [constVariablePointer] libcacard-2.8.1/tests/libcacard.c:686:23: style: Variable 'get_properties[2]' is reassigned a value before the old one has been used. [redundantAssignment] libcacard-2.8.1/tests/libcacard.c:683:23: note: get_properties[2] is assigned libcacard-2.8.1/tests/libcacard.c:686:23: note: get_properties[2] is overwritten libcacard-2.8.1/tests/libcacard.c:663:13: style: Local variable 'get_properties' shadows outer function [shadowFunction] libcacard-2.8.1/tests/common.h:37:6: note: Shadowed declaration libcacard-2.8.1/tests/libcacard.c:663:13: note: Shadow variable libcacard-2.8.1/tests/libcacard.c:180:18: style: Variable 'p_end' can be declared as pointer to const [constVariablePointer] libcacard-2.8.1/tests/common.c:61:51: style:inconclusive: Function 'select_aid_response' argument 4 names different: declaration 'response' definition 'response_len'. [funcArgNamesDifferent] libcacard-2.8.1/tests/common.h:32:51: note: Function 'select_aid_response' argument 4 names different: declaration 'response' definition 'response_len'. libcacard-2.8.1/tests/common.c:61:51: note: Function 'select_aid_response' argument 4 names different: declaration 'response' definition 'response_len'. libcacard-2.8.1/tests/common.c:106:13: style: Local variable 'get_properties' shadows outer function [shadowFunction] libcacard-2.8.1/tests/common.h:37:6: note: Shadowed declaration libcacard-2.8.1/tests/common.c:106:13: note: Shadow variable libcacard-2.8.1/tests/common.c:761:13: style: Local variable 'read_buffer' shadows outer function [shadowFunction] libcacard-2.8.1/tests/common.h:39:6: note: Shadowed declaration libcacard-2.8.1/tests/common.c:761:13: note: Shadow variable libcacard-2.8.1/tests/common.c:21:57: style: Parameter 'coid' can be declared as pointer to const [constParameterPointer] libcacard-2.8.1/tests/common.c:60:57: style: Parameter 'aid' can be declared as pointer to const [constParameterPointer] libcacard-2.8.1/tests/common.c:105:45: style: Variable 'p_end' can be declared as pointer to const [constVariablePointer] libcacard-2.8.1/tests/common.c:105:58: style: Variable 'p2_end' can be declared as pointer to const [constVariablePointer] libcacard-2.8.1/tests/common.c:386:18: style: Variable 'p_end' can be declared as pointer to const [constVariablePointer] diff: 2.18.0 libcacard-2.8.1/src/cac-aca.c:166:49: style: Parameter 'acrid' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/cac-aca.c:803:70: style: Parameter 'coid' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/cac-aca.c:818:32: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 libcacard-2.8.1/src/cac-aca.c:841:59: style: Parameter 'aid' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/cac-aca.c:921:19: style: struct member 'amp_entry::amp_aid' is never used. [unusedStructMember] 2.18.0 libcacard-2.8.1/src/cac.c:1016:50: error: Static variable 'properties' will use pointer to local variable 'aca_aid'. [danglingLifetime] libcacard-2.8.1/src/cac.c:1011:33: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:903:19: note: Variable created here. libcacard-2.8.1/src/cac.c:1016:50: note: Static variable 'properties' will use pointer to local variable 'aca_aid'. 2.18.0 libcacard-2.8.1/src/cac.c:1016:50: error: Static variable 'properties' will use pointer to local variable 'applet_information'. [danglingLifetime] libcacard-2.8.1/src/cac.c:1007:33: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:900:19: note: Variable created here. libcacard-2.8.1/src/cac.c:1016:50: note: Static variable 'properties' will use pointer to local variable 'applet_information'. 2.18.0 libcacard-2.8.1/src/cac.c:1016:50: error: Static variable 'properties' will use pointer to local variable 'buffer_26'. [danglingLifetime] libcacard-2.8.1/src/cac.c:1004:33: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:890:19: note: Variable created here. libcacard-2.8.1/src/cac.c:1016:50: note: Static variable 'properties' will use pointer to local variable 'buffer_26'. 2.18.0 libcacard-2.8.1/src/cac.c:1016:50: error: Static variable 'properties' will use pointer to local variable 'buffer_39'. [danglingLifetime] libcacard-2.8.1/src/cac.c:1010:33: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:902:19: note: Variable created here. libcacard-2.8.1/src/cac.c:1016:50: note: Static variable 'properties' will use pointer to local variable 'buffer_39'. 2.18.0 libcacard-2.8.1/src/cac.c:1016:50: error: Static variable 'properties' will use pointer to local variable 'number_objects'. [danglingLifetime] libcacard-2.8.1/src/cac.c:1008:33: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:901:19: note: Variable created here. libcacard-2.8.1/src/cac.c:1016:50: note: Static variable 'properties' will use pointer to local variable 'number_objects'. 2.18.0 libcacard-2.8.1/src/cac.c:1016:50: error: Static variable 'properties' will use pointer to local variable 'pki_properties'. [danglingLifetime] libcacard-2.8.1/src/cac.c:1003:33: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:889:19: note: Variable created here. libcacard-2.8.1/src/cac.c:1016:50: note: Static variable 'properties' will use pointer to local variable 'pki_properties'. 2.18.0 libcacard-2.8.1/src/cac.c:109:26: style: union member 'Anonymous2::ccc_data' is never used. [unusedStructMember] 2.18.0 libcacard-2.8.1/src/cac.c:112:15: style: union member 'Anonymous2::reserved' is never used. [unusedStructMember] 2.18.0 libcacard-2.8.1/src/cac.c:1676:57: error: Static variable 'buffer' will use pointer to local variable 'acr_table'. [danglingLifetime] libcacard-2.8.1/src/cac.c:1645:30: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:1545:19: note: Variable created here. libcacard-2.8.1/src/cac.c:1676:57: note: Static variable 'buffer' will use pointer to local variable 'acr_table'. 2.18.0 libcacard-2.8.1/src/cac.c:1676:57: error: Static variable 'buffer' will use pointer to local variable 'card_identifier'. [danglingLifetime] libcacard-2.8.1/src/cac.c:1624:29: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:1632:20: note: Assuming condition is false libcacard-2.8.1/src/cac.c:1500:19: note: Variable created here. libcacard-2.8.1/src/cac.c:1676:57: note: Static variable 'buffer' will use pointer to local variable 'card_identifier'. 2.18.0 libcacard-2.8.1/src/cac.c:1676:57: error: Static variable 'buffer' will use pointer to local variable 'cc_version'. [danglingLifetime] libcacard-2.8.1/src/cac.c:1625:29: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:1632:20: note: Assuming condition is false libcacard-2.8.1/src/cac.c:1502:19: note: Variable created here. libcacard-2.8.1/src/cac.c:1676:57: note: Static variable 'buffer' will use pointer to local variable 'cc_version'. 2.18.0 libcacard-2.8.1/src/cac.c:1676:57: error: Static variable 'buffer' will use pointer to local variable 'cg_version'. [danglingLifetime] libcacard-2.8.1/src/cac.c:1626:29: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:1632:20: note: Assuming condition is false libcacard-2.8.1/src/cac.c:1503:19: note: Variable created here. libcacard-2.8.1/src/cac.c:1676:57: note: Static variable 'buffer' will use pointer to local variable 'cg_version'. 2.18.0 libcacard-2.8.1/src/cac.c:1676:57: error: Static variable 'buffer' will use pointer to local variable 'pkcs15'. [danglingLifetime] libcacard-2.8.1/src/cac.c:1643:30: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:1541:19: note: Variable created here. libcacard-2.8.1/src/cac.c:1676:57: note: Static variable 'buffer' will use pointer to local variable 'pkcs15'. 2.18.0 libcacard-2.8.1/src/cac.c:1676:57: error: Static variable 'buffer' will use pointer to local variable 'reg_data_model'. [danglingLifetime] libcacard-2.8.1/src/cac.c:1644:30: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:1544:19: note: Variable created here. libcacard-2.8.1/src/cac.c:1676:57: note: Static variable 'buffer' will use pointer to local variable 'reg_data_model'. 2.18.0 libcacard-2.8.1/src/cac.c:189:31: style: Parameter 'tags' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/cac.c:1926:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable child [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/cac.c:2079:50: error: Static variable 'properties' will use pointer to local variable 'applet_information'. [danglingLifetime] libcacard-2.8.1/src/cac.c:2072:33: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:2031:19: note: Variable created here. libcacard-2.8.1/src/cac.c:2079:50: note: Static variable 'properties' will use pointer to local variable 'applet_information'. 2.18.0 libcacard-2.8.1/src/cac.c:2079:50: error: Static variable 'properties' will use pointer to local variable 'buffer_properties'. [danglingLifetime] libcacard-2.8.1/src/cac.c:2068:32: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:2022:19: note: Variable created here. libcacard-2.8.1/src/cac.c:2079:50: note: Static variable 'properties' will use pointer to local variable 'buffer_properties'. 2.18.0 libcacard-2.8.1/src/cac.c:2079:50: error: Static variable 'properties' will use pointer to local variable 'number_objects'. [danglingLifetime] libcacard-2.8.1/src/cac.c:2073:33: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:2032:19: note: Variable created here. libcacard-2.8.1/src/cac.c:2079:50: note: Static variable 'properties' will use pointer to local variable 'number_objects'. 2.18.0 libcacard-2.8.1/src/cac.c:2079:50: error: Static variable 'properties' will use pointer to local variable 'object_id'. [danglingLifetime] libcacard-2.8.1/src/cac.c:2067:32: note: Array decayed to pointer here. libcacard-2.8.1/src/cac.c:2021:19: note: Variable created here. libcacard-2.8.1/src/cac.c:2079:50: note: Static variable 'properties' will use pointer to local variable 'object_id'. 2.18.0 libcacard-2.8.1/src/cac.c:2137:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/cac.c:2254:19: style: Parameter 'cert_len' can be declared as const array [constParameter] 2.18.0 libcacard-2.8.1/src/cac.c:2268:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/cac.c:230:31: style: Checking if unsigned expression 'properties_buffer_len' is less than zero. [unsignedLessThanZero] 2.18.0 libcacard-2.8.1/src/cac.c:231:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/cac.c:408:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/cac.c:579:23: style: Variable 'aca_applet' can be declared as pointer to const [constVariablePointer] 2.18.0 libcacard-2.8.1/src/cac.c:710:22: style: Variable 'pt_applet' can be declared as pointer to const [constVariablePointer] 2.18.0 libcacard-2.8.1/src/card_7816.c:111:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/card_7816.c:127:54: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/card_7816.c:132:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/card_7816.c:156:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VCARD_MALLOC_STRUCT [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/card_7816.c:173:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VCARD_MALLOC_STRUCT [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/card_7816.c:647:26: style: Variable 'gp_applet' can be declared as pointer to const [constVariablePointer] 2.18.0 libcacard-2.8.1/src/card_7816.c:74:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VCARD_MALLOC [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/common.c:68:16: style: Checking if unsigned expression 'buflen' is less than zero. [unsignedLessThanZero] head libcacard-2.8.1/src/common.h:35:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] 2.18.0 libcacard-2.8.1/src/simpletlv.c:148:70: style:inconclusive: Function 'simpletlv_encode' argument 5 names different: declaration 'ptr' definition 'newptr'. [funcArgNamesDifferent] libcacard-2.8.1/src/simpletlv.h:87:70: note: Function 'simpletlv_encode' argument 5 names different: declaration 'ptr' definition 'newptr'. libcacard-2.8.1/src/simpletlv.c:148:70: note: Function 'simpletlv_encode' argument 5 names different: declaration 'ptr' definition 'newptr'. 2.18.0 libcacard-2.8.1/src/simpletlv.c:315:24: style: Variable 'p_end' can be declared as pointer to const [constVariablePointer] 2.18.0 libcacard-2.8.1/src/vcard.c:133:67: style:inconclusive: Function 'vcard_set_applet_private' argument 2 names different: declaration '_private' definition 'private'. [funcArgNamesDifferent] libcacard-2.8.1/src/vcard.h:42:72: note: Function 'vcard_set_applet_private' argument 2 names different: declaration '_private' definition 'private'. libcacard-2.8.1/src/vcard.c:133:67: note: Function 'vcard_set_applet_private' argument 2 names different: declaration '_private' definition 'private'. 2.18.0 libcacard-2.8.1/src/vcard.c:144:22: style:inconclusive: Function 'vcard_new' argument 1 names different: declaration '_private' definition 'private'. [funcArgNamesDifferent] libcacard-2.8.1/src/vcard.h:69:29: note: Function 'vcard_new' argument 1 names different: declaration '_private' definition 'private'. libcacard-2.8.1/src/vcard.c:144:22: note: Function 'vcard_new' argument 1 names different: declaration '_private' definition 'private'. 2.18.0 libcacard-2.8.1/src/vcard.c:148:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard.c:194:22: style:inconclusive: Function 'vcard_get_atr' argument 1 names different: declaration 'card' definition 'vcard'. [funcArgNamesDifferent] libcacard-2.8.1/src/vcard.h:75:27: note: Function 'vcard_get_atr' argument 1 names different: declaration 'card' definition 'vcard'. libcacard-2.8.1/src/vcard.c:194:22: note: Function 'vcard_get_atr' argument 1 names different: declaration 'card' definition 'vcard'. 2.18.0 libcacard-2.8.1/src/vcard.c:213:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard.c:249:35: style: Parameter 'applet' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/vcard.c:274:18: style: Variable 'applet' can be declared as pointer to const [constVariablePointer] 2.18.0 libcacard-2.8.1/src/vcard.c:298:34: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/vcard.c:312:23: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/vcard.c:325:26: style: Parameter 'vcard' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/vcard.c:325:26: style:inconclusive: Function 'vcard_get_private' argument 1 names different: declaration 'card' definition 'vcard'. [funcArgNamesDifferent] libcacard-2.8.1/src/vcard.h:84:37: note: Function 'vcard_get_private' argument 1 names different: declaration 'card' definition 'vcard'. libcacard-2.8.1/src/vcard.c:325:26: note: Function 'vcard_get_private' argument 1 names different: declaration 'card' definition 'vcard'. 2.18.0 libcacard-2.8.1/src/vcard.c:353:46: style: Parameter 'serial' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/vcard.c:361:25: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:1187:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECSuccess [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:1286:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:1439:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKO_DATA [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:1483:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:286:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CKM_RSA_X_509 [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:404:49: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:411:46: style: Parameter 'pin' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:440:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PR_FALSE [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:468:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PR_FALSE [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:505:49: style: Parameter 'slot' can be declared as pointer to const [constParameterPointer] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:516:22: style: Variable 'reader_emul' can be declared as pointer to const [constVariablePointer] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:541:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PR_FALSE [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:596:18: style: Variable 'vreader_emul' can be declared as pointer to const [constVariablePointer] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:633:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEC_OID_SHA256 [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:663:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:716:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:805:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEC_ERROR_NO_EVENT [valueFlowBailoutIncompleteVar] 2.18.0 libcacard-2.8.1/src/vcard_emul_nss.c:962:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PR_FALSE [valueFlowBailoutIncompleteVar] DONE