2024-04-23 11:29 ftp://ftp.de.debian.org/debian/pool/main/a/acsccid/acsccid_1.1.11.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: 9b87f67 (2024-04-23 10:17:07 +0200) count: 210 210 elapsed-time: 48.4 45.9 head-timing-info: old-timing-info: head results: acsccid-1.1.11/src/acr38cmd.c:119:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:216:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:247:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:311:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:361:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_NO_SUCH_DEVICE [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:381:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_NO_SUCH_DEVICE [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:401:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_NO_SUCH_DEVICE [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:412:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:448:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_DEBUG [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:482:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:510:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:593:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:629:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:644:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:665:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:695:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/acr38cmd.c:159:3: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] acsccid-1.1.11/src/acr38cmd.c:145:41: style: The if condition is the same as the previous if condition [duplicateCondition] acsccid-1.1.11/src/acr38cmd.c:126:41: note: First condition acsccid-1.1.11/src/acr38cmd.c:145:41: note: Second condition acsccid-1.1.11/src/acr38cmd.c:309:33: style:inconclusive: Function 'ACR38_CmdXfrBlock' argument 6 names different: declaration 'protoccol' definition 'protocol'. [funcArgNamesDifferent] acsccid-1.1.11/src/acr38cmd.h:33:33: note: Function 'ACR38_CmdXfrBlock' argument 6 names different: declaration 'protoccol' definition 'protocol'. acsccid-1.1.11/src/acr38cmd.c:309:33: note: Function 'ACR38_CmdXfrBlock' argument 6 names different: declaration 'protoccol' definition 'protocol'. acsccid-1.1.11/src/acr38cmd.c:120:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/acr38cmd.c:217:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/acr38cmd.c:249:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/acr38cmd.c:351:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/acr38cmd.c:371:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/acr38cmd.c:391:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/acr38cmd.c:441:37: style: Parameter 'buffer' can be declared as const array [constParameter] acsccid-1.1.11/src/acr38cmd.c:445:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/acr38cmd.c:479:16: style: Parameter 'TxBuffer' can be declared as const array [constParameter] acsccid-1.1.11/src/acr38cmd.c:641:40: style: Parameter 'tx_buffer' can be declared as const array [constParameter] acsccid-1.1.11/src/ccid.c:104:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid.c:172:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_INFO [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid.c:240:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid.c:268:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid.c:1167:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_ERROR [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid.c:1187:91: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid.c:1225:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid.c:1278:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid.c:1297:86: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid.c:603:11: style: Variable 'msg' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ccid_usb.c:217:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_INFO [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:245:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILENAME_MAX [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:1235:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_CRITICAL [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:1329:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_CRITICAL [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:1437:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_DEBUG [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:1566:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_CRITICAL [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:1615:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bmAttributes [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:1683:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bInterfaceClass [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:1726:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_INFO [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:1774:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_INFO [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:1829:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_DEBUG [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:1873:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:2003:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_CRITICAL [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:2022:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_DEBUG [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:2284:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_CRITICAL [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:2309:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_DEBUG [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:2384:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_DEBUG [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ccid_usb.c:1261:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] acsccid-1.1.11/src/ccid_usb.c:296:8: warning: %d in format string (no. 2) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] acsccid-1.1.11/src/ccid_usb.c:296:8: warning: %d in format string (no. 3) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] acsccid-1.1.11/src/ccid_usb.c:307:9: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] acsccid-1.1.11/src/ccid_usb.c:307:9: warning: %d in format string (no. 2) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] acsccid-1.1.11/src/ccid_usb.c:228:62: style:inconclusive: Function 'OpenUSB' argument 2 names different: declaration 'channel' definition 'Channel'. [funcArgNamesDifferent] acsccid-1.1.11/src/ccid_usb.h:22:49: note: Function 'OpenUSB' argument 2 names different: declaration 'channel' definition 'Channel'. acsccid-1.1.11/src/ccid_usb.c:228:62: note: Function 'OpenUSB' argument 2 names different: declaration 'channel' definition 'Channel'. acsccid-1.1.11/src/ccid_usb.c:1205:17: style:inconclusive: Function 'WriteUSB' argument 3 names different: declaration 'Buffer' definition 'buffer'. [funcArgNamesDifferent] acsccid-1.1.11/src/ccid_usb.h:27:17: note: Function 'WriteUSB' argument 3 names different: declaration 'Buffer' definition 'buffer'. acsccid-1.1.11/src/ccid_usb.c:1205:17: note: Function 'WriteUSB' argument 3 names different: declaration 'Buffer' definition 'buffer'. acsccid-1.1.11/src/ccid_usb.c:1299:17: style:inconclusive: Function 'ReadUSB' argument 3 names different: declaration 'Buffer' definition 'buffer'. [funcArgNamesDifferent] acsccid-1.1.11/src/ccid_usb.h:30:27: note: Function 'ReadUSB' argument 3 names different: declaration 'Buffer' definition 'buffer'. acsccid-1.1.11/src/ccid_usb.c:1299:17: note: Function 'ReadUSB' argument 3 names different: declaration 'Buffer' definition 'buffer'. acsccid-1.1.11/src/ccid_usb.c:271:9: style: Variable 'dirname' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ccid_usb.c:1210:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ccid_usb.c:1304:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ccid_usb.c:1709:58: style: Parameter 'desc' can be declared as pointer to const [constParameterPointer] acsccid-1.1.11/src/ccid_usb.c:1858:54: style: Parameter 'transfer' can be declared as pointer to const. However it seems that 'bulk_transfer_cb' is a callback function, if 'transfer' is declared with const you might also need to cast function pointer(s). [constParameterCallback] acsccid-1.1.11/src/ccid_usb.c:2046:4: note: You might need to cast the function pointer here acsccid-1.1.11/src/ccid_usb.c:1858:54: note: Parameter 'transfer' can be declared as pointer to const acsccid-1.1.11/src/ccid_usb.c:1938:21: style: Variable 'bufferIndex' is assigned a value that is never used. [unreadVariable] acsccid-1.1.11/src/ccid_usb.c:1939:18: style: Variable 'bitIndex' is assigned a value that is never used. [unreadVariable] acsccid-1.1.11/src/ccid_usb.c:2130:23: style: Variable 'bufferIndex' is assigned a value that is never used. [unreadVariable] acsccid-1.1.11/src/ccid_usb.c:2131:20: style: Variable 'bitIndex' is assigned a value that is never used. [unreadVariable] acsccid-1.1.11/src/commands.c:107:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:339:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_INFO [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:711:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_INFO [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:1017:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:1145:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:1234:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:1358:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:1447:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_INFO [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:1506:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:1767:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:1832:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_DEBUG [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:1961:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:2074:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:2096:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_DEBUG [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:2222:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:2272:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:2488:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:2517:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_DEBUG [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/commands.c:2249:2: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] acsccid-1.1.11/src/commands.c:448:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] acsccid-1.1.11/src/commands.c:1260:10: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] acsccid-1.1.11/src/commands.c:1603:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] acsccid-1.1.11/src/commands.c:1356:33: style:inconclusive: Function 'CmdXfrBlock' argument 6 names different: declaration 'protoccol' definition 'protocol'. [funcArgNamesDifferent] acsccid-1.1.11/src/commands.h:53:33: note: Function 'CmdXfrBlock' argument 6 names different: declaration 'protoccol' definition 'protocol'. acsccid-1.1.11/src/commands.c:1356:33: note: Function 'CmdXfrBlock' argument 6 names different: declaration 'protoccol' definition 'protocol'. acsccid-1.1.11/src/commands.c:2264:15: style:inconclusive: Function 'CmdXfrBlockCHAR_T0' argument 2 names different: declaration 'tx_length' definition 'snd_len'. [funcArgNamesDifferent] acsccid-1.1.11/src/commands.c:83:2: note: Function 'CmdXfrBlockCHAR_T0' argument 2 names different: declaration 'tx_length' definition 'snd_len'. acsccid-1.1.11/src/commands.c:2264:15: note: Function 'CmdXfrBlockCHAR_T0' argument 2 names different: declaration 'tx_length' definition 'snd_len'. acsccid-1.1.11/src/commands.c:2264:38: style:inconclusive: Function 'CmdXfrBlockCHAR_T0' argument 3 names different: declaration 'tx_buffer' definition 'snd_buf'. [funcArgNamesDifferent] acsccid-1.1.11/src/commands.c:83:27: note: Function 'CmdXfrBlockCHAR_T0' argument 3 names different: declaration 'tx_buffer' definition 'snd_buf'. acsccid-1.1.11/src/commands.c:2264:38: note: Function 'CmdXfrBlockCHAR_T0' argument 3 names different: declaration 'tx_buffer' definition 'snd_buf'. acsccid-1.1.11/src/commands.c:2264:63: style:inconclusive: Function 'CmdXfrBlockCHAR_T0' argument 4 names different: declaration 'rx_length' definition 'rcv_len'. [funcArgNamesDifferent] acsccid-1.1.11/src/commands.c:83:54: note: Function 'CmdXfrBlockCHAR_T0' argument 4 names different: declaration 'rx_length' definition 'rcv_len'. acsccid-1.1.11/src/commands.c:2264:63: note: Function 'CmdXfrBlockCHAR_T0' argument 4 names different: declaration 'rx_length' definition 'rcv_len'. acsccid-1.1.11/src/commands.c:2265:16: style:inconclusive: Function 'CmdXfrBlockCHAR_T0' argument 5 names different: declaration 'rx_buffer' definition 'rcv_buf'. [funcArgNamesDifferent] acsccid-1.1.11/src/commands.c:84:7: note: Function 'CmdXfrBlockCHAR_T0' argument 5 names different: declaration 'rx_buffer' definition 'rcv_buf'. acsccid-1.1.11/src/commands.c:2265:16: note: Function 'CmdXfrBlockCHAR_T0' argument 5 names different: declaration 'rx_buffer' definition 'rcv_buf'. acsccid-1.1.11/src/commands.c:646:57: style: Parameter 'ccid_descriptor' can be declared as pointer to const [constParameterPointer] acsccid-1.1.11/src/commands.c:1768:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/commands.c:1817:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/commands.c:1962:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/commands.c:2051:49: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] acsccid-1.1.11/src/commands.c:2273:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/commands.c:2485:40: style: Parameter 'tx_buffer' can be declared as const array [constParameter] acsccid-1.1.11/src/commands.c:2511:37: style: Parameter 'buffer' can be declared as const array [constParameter] acsccid-1.1.11/src/commands.c:2588:41: style: Parameter 'buffer' can be declared as const array [constParameter] acsccid-1.1.11/src/debug.c:206:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/debug.c:234:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/debug.c:131:9: style: Variable 'term' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ifdhandler.c:144:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:417:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:441:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:458:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:479:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:511:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:833:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:879:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_ATR_SIZE [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:1422:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:1665:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:1868:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_ERROR_NOT_SUPPORTED [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:2773:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:3017:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILENAME_MAX [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:3121:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_DEBUG [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:3257:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:3285:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/ifdhandler.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] acsccid-1.1.11/src/ifdhandler.c:470:8: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] acsccid-1.1.11/src/ifdhandler.c:1158:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] acsccid-1.1.11/src/ifdhandler.c:1272:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] acsccid-1.1.11/src/ifdhandler.c:1333:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] acsccid-1.1.11/src/ifdhandler.c:1518:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] acsccid-1.1.11/src/ifdhandler.c:2726:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] acsccid-1.1.11/src/ifdhandler.c:1775:12: style: Condition 'Le!=0' is always false [knownConditionTrueFalse] acsccid-1.1.11/src/ifdhandler.c:1745:22: note: Assignment 'Le=0', assigned value is 0 acsccid-1.1.11/src/ifdhandler.c:1775:12: note: Condition 'Le!=0' is always false acsccid-1.1.11/src/ifdhandler.c:3504:7: style: Redundant initialization for 'cd'. The initialized value is overwritten before it is read. [redundantInitialization] acsccid-1.1.11/src/ifdhandler.c:3449:15: note: cd is initialized acsccid-1.1.11/src/ifdhandler.c:3504:7: note: cd is overwritten acsccid-1.1.11/src/ifdhandler.c:3245:38: style:inconclusive: Function 'get_IFSC' argument 2 names different: declaration 'i' definition 'idx'. [funcArgNamesDifferent] acsccid-1.1.11/src/ifdhandler.c:118:38: note: Function 'get_IFSC' argument 2 names different: declaration 'i' definition 'idx'. acsccid-1.1.11/src/ifdhandler.c:3245:38: note: Function 'get_IFSC' argument 2 names different: declaration 'i' definition 'idx'. acsccid-1.1.11/src/ifdhandler.c:987:7: style: Local variable 'i' shadows outer variable [shadowVariable] acsccid-1.1.11/src/ifdhandler.c:877:6: note: Shadowed declaration acsccid-1.1.11/src/ifdhandler.c:987:7: note: Shadow variable acsccid-1.1.11/src/ifdhandler.c:1195:7: style: Local variable 'i' shadows outer variable [shadowVariable] acsccid-1.1.11/src/ifdhandler.c:877:6: note: Shadowed declaration acsccid-1.1.11/src/ifdhandler.c:1195:7: note: Shadow variable acsccid-1.1.11/src/ifdhandler.c:1354:7: style: Local variable 'i' shadows outer variable [shadowVariable] acsccid-1.1.11/src/ifdhandler.c:877:6: note: Shadowed declaration acsccid-1.1.11/src/ifdhandler.c:1354:7: note: Shadow variable acsccid-1.1.11/src/ifdhandler.c:683:23: style: Variable 'ccid_desc' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ifdhandler.c:721:23: style: Variable 'ccid_desc' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ifdhandler.c:739:23: style: Variable 'ccid_desc' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ifdhandler.c:770:23: style: Variable 'ccid_desc' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ifdhandler.c:1196:15: style: Variable 't1' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ifdhandler.c:1659:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ifdhandler.c:2205:13: style: Variable 'pGetKey' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ifdhandler.c:2419:38: style: Variable 'features' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ifdhandler.c:3018:8: style: Variable 'e' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ifdhandler.c:3286:20: style: Variable 'ccid_descriptor' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ifdhandler.c:3573:19: style: Variable 'data' can be declared as pointer to const [constVariablePointer] acsccid-1.1.11/src/ifdhandler.c:2067:12: style: Variable 'pcsc_tlv' is assigned a value that is never used. [unreadVariable] acsccid-1.1.11/src/openct/buffer.c:63:24: style: Parameter 'bp' can be declared as pointer to const [constParameterPointer] acsccid-1.1.11/src/openct/buffer.c:69:23: style: Parameter 'bp' can be declared as pointer to const [constParameterPointer] acsccid-1.1.11/src/openct/proto-t1.c:682:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/openct/proto-t1.c:527:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] acsccid-1.1.11/src/openct/proto-t1.c:201:16: style: Checking if unsigned expression 'retries' is less than zero. [unsignedLessThanZero] acsccid-1.1.11/src/openct/proto-t1.c:229:16: style: Checking if unsigned expression 'retries' is less than zero. [unsignedLessThanZero] acsccid-1.1.11/src/openct/proto-t1.c:249:16: style: Checking if unsigned expression 'retries' is less than zero. [unsignedLessThanZero] acsccid-1.1.11/src/openct/proto-t1.c:275:17: style: Checking if unsigned expression 'retries' is less than zero. [unsignedLessThanZero] acsccid-1.1.11/src/openct/proto-t1.c:300:17: style: Checking if unsigned expression 'retries' is less than zero. [unsignedLessThanZero] acsccid-1.1.11/src/openct/proto-t1.c:323:18: style: Checking if unsigned expression 'retries' is less than zero. [unsignedLessThanZero] acsccid-1.1.11/src/openct/proto-t1.c:375:17: style: Checking if unsigned expression 'retries' is less than zero. [unsignedLessThanZero] acsccid-1.1.11/src/openct/proto-t1.c:416:17: style: Checking if unsigned expression 'retries' is less than zero. [unsignedLessThanZero] acsccid-1.1.11/src/openct/proto-t1.c:778:15: style: Checking if unsigned expression 'retries' is less than zero. [unsignedLessThanZero] acsccid-1.1.11/src/simclist.c:1072:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/simclist.c:1129:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/simclist.c:1146:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/simclist.c:1300:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/simclist.c:1422:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/simclist.c:1440:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/simclist.c:301:36: style: Condition 'list_attributes_setdefaults(l)' is always false [knownConditionTrueFalse] acsccid-1.1.11/src/simclist.c:301:36: note: Calling function 'list_attributes_setdefaults' returns 0 acsccid-1.1.11/src/simclist.c:301:36: note: Condition 'list_attributes_setdefaults(l)' is always false acsccid-1.1.11/src/simclist.c:889:9: style: Condition '!(last>first)' is always false [knownConditionTrueFalse] acsccid-1.1.11/src/simclist.c:880:14: note: Assuming that condition 'last<=first' is not redundant acsccid-1.1.11/src/simclist.c:883:24: note: Assuming condition is false acsccid-1.1.11/src/simclist.c:889:9: note: Condition '!(last>first)' is always false acsccid-1.1.11/src/simclist.c:889:17: style: Condition 'last>first' is always true [knownConditionTrueFalse] acsccid-1.1.11/src/simclist.c:880:14: note: Assuming that condition 'last<=first' is not redundant acsccid-1.1.11/src/simclist.c:883:24: note: Assuming condition is false acsccid-1.1.11/src/simclist.c:889:17: note: Condition 'last>first' is always true acsccid-1.1.11/src/simclist.c:847:49: style: Parameter 'lel' can be declared as pointer to const [constParameterPointer] tokenparser.c:731:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] tokenparser.c:1074:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] tokenparser.c:1371:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] tokenparser.c:1609:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tokenparser.l:214:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_CRITICAL [valueFlowBailoutIncompleteVar] tokenparser.c:1375:2: warning: Possible null pointer dereference: b [nullPointer] tokenparser.c:1268:18: note: Calling function 'yy_init_buffer', 1st argument '(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL' value is 0 tokenparser.c:1375:2: note: Null pointer dereference tokenparser.c:1376:2: warning: Possible null pointer dereference: b [nullPointer] tokenparser.c:1268:18: note: Calling function 'yy_init_buffer', 1st argument '(yy_buffer_stack)?(yy_buffer_stack)[yy_buffer_stack_top]:NULL' value is 0 tokenparser.c:1376:2: note: Null pointer dereference tokenparser.c:1074:3: style: Redundant initialization for 'c'. The initialized value is overwritten before it is read. [redundantInitialization] tokenparser.c:1074:3: note: c is initialized tokenparser.c:1074:3: note: c is overwritten tokenparser.c:1153:59: style:inconclusive: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. [funcArgNamesDifferent] tokenparser.c:344:55: note: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. tokenparser.c:1153:59: note: Function 'yy_try_NUL_trans' argument 1 names different: declaration 'current_state' definition 'yy_current_state'. tokenparser.c:1560:46: style:inconclusive: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. [funcArgNamesDifferent] tokenparser.c:296:46: note: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. tokenparser.c:1560:46: note: Function 'yy_scan_string' argument 1 names different: declaration 'yy_str' definition 'yystr'. tokenparser.c:1573:46: style:inconclusive: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. [funcArgNamesDifferent] tokenparser.c:297:45: note: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. tokenparser.c:1573:46: note: Function 'yy_scan_bytes' argument 1 names different: declaration 'bytes' definition 'yybytes'. tokenparser.c:1573:60: style:inconclusive: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. [funcArgNamesDifferent] tokenparser.c:297:56: note: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. tokenparser.c:1573:60: note: Function 'yy_scan_bytes' argument 2 names different: declaration 'len' definition '_yybytes_len'. tokenparser.c:1705:24: style:inconclusive: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition '_bdebug'. [funcArgNamesDifferent] tokenparser.c:556:24: note: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition '_bdebug'. tokenparser.c:1705:24: note: Function 'yyset_debug' argument 1 names different: declaration 'debug_flag' definition '_bdebug'. tokenparser.l:157:26: style:inconclusive: Function 'tperrorCheck' argument 1 names different: declaration 'pcToken_error' definition 'token_error'. [funcArgNamesDifferent] tokenparser.l:58:26: note: Function 'tperrorCheck' argument 1 names different: declaration 'pcToken_error' definition 'token_error'. tokenparser.l:157:26: note: Function 'tperrorCheck' argument 1 names different: declaration 'pcToken_error' definition 'token_error'. tokenparser.c:986:8: style: Variable 'source' can be declared as pointer to const [constVariablePointer] tokenparser.l:80:28: style: Parameter 'pcToken' can be declared as pointer to const [constParameterPointer] tokenparser.l:113:30: style: Parameter 'pcToken' can be declared as pointer to const [constParameterPointer] acsccid-1.1.11/src/towitoko/atr.c:101:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/towitoko/atr.c:189:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/towitoko/atr.c:330:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/towitoko/atr.c:68:44: style:inconclusive: Function 'ATR_InitFromArray' argument 2 names different: declaration 'buffer' definition 'atr_buffer'. [funcArgNamesDifferent] acsccid-1.1.11/src/towitoko/atr.h:99:54: note: Function 'ATR_InitFromArray' argument 2 names different: declaration 'buffer' definition 'atr_buffer'. acsccid-1.1.11/src/towitoko/atr.c:68:44: note: Function 'ATR_InitFromArray' argument 2 names different: declaration 'buffer' definition 'atr_buffer'. acsccid-1.1.11/src/towitoko/atr.c:171:28: style: Parameter 'atr' can be declared as pointer to const [constParameterPointer] acsccid-1.1.11/src/towitoko/pps.c:66:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/towitoko/pps.c:95:57: style:inconclusive: Function 'PPS_Match' argument 3 names different: declaration 'reply' definition 'confirm'. [funcArgNamesDifferent] acsccid-1.1.11/src/towitoko/pps.c:44:68: note: Function 'PPS_Match' argument 3 names different: declaration 'reply' definition 'confirm'. acsccid-1.1.11/src/towitoko/pps.c:95:57: note: Function 'PPS_Match' argument 3 names different: declaration 'reply' definition 'confirm'. acsccid-1.1.11/src/towitoko/pps.c:95:75: style:inconclusive: Function 'PPS_Match' argument 4 names different: declaration 'len_reply' definition 'len_confirm'. [funcArgNamesDifferent] acsccid-1.1.11/src/towitoko/pps.c:44:84: note: Function 'PPS_Match' argument 4 names different: declaration 'len_reply' definition 'len_confirm'. acsccid-1.1.11/src/towitoko/pps.c:95:75: note: Function 'PPS_Match' argument 4 names different: declaration 'len_reply' definition 'len_confirm'. acsccid-1.1.11/src/towitoko/pps.c:95:19: style: Parameter 'request' can be declared as pointer to const [constParameterPointer] acsccid-1.1.11/src/towitoko/pps.c:95:57: style: Parameter 'confirm' can be declared as pointer to const [constParameterPointer] acsccid-1.1.11/src/towitoko/pps.c:115:23: style: Parameter 'block' can be declared as pointer to const [constParameterPointer] acsccid-1.1.11/src/towitoko/pps.c:132:20: style: Parameter 'block' can be declared as pointer to const [constParameterPointer] acsccid-1.1.11/src/utils.c:51:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_CRITICAL [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/utils.c:74:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PCSC_LOG_CRITICAL [valueFlowBailoutIncompleteVar] acsccid-1.1.11/src/utils.c:78:35: style:inconclusive: Function 'ReleaseReaderIndex' argument 1 names different: declaration 'idx' definition 'index'. [funcArgNamesDifferent] acsccid-1.1.11/src/utils.h:28:35: note: Function 'ReleaseReaderIndex' argument 1 names different: declaration 'idx' definition 'index'. acsccid-1.1.11/src/utils.c:78:35: note: Function 'ReleaseReaderIndex' argument 1 names different: declaration 'idx' definition 'index'. acsccid-1.1.11/src/utils.c:84:24: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] acsccid-1.1.11/src/utils.c:94:24: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] diff: DONE