2026-05-06 05:48 ftp://ftp.de.debian.org/debian/pool/main/a/asedriveiiie/asedriveiiie_3.7.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.12.85+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.70 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.20.0 head-info: 6278f6b (2026-05-05 15:01:04 +0200) count: 176 176 elapsed-time: 3.9 3.9 head-timing-info: old-timing-info: head results: asedriveiiie-3.7/asedriveiiie-serial/CommandTypes.c:262:9: style: Redundant initialization for 'cwt'. The initialized value is overwritten before it is read. [redundantInitialization] asedriveiiie-3.7/asedriveiiie-serial/CommandTypes.c:244:23: note: cwt is initialized asedriveiiie-3.7/asedriveiiie-serial/CommandTypes.c:262:9: note: cwt is overwritten asedriveiiie-3.7/asedriveiiie-serial/CommandTypes.c:184:9: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:364:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:407:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:412:21: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:439:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:448:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:453:25: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:637:21: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:164:33: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:124:27: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:153:33: style: Parameter 'PPS1' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:153:46: style: Parameter 'PPS2' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:153:59: style: Parameter 'PPS3' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:88:11: style: Variable 'F' is assigned a value that is never used. [unreadVariable] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:287:16: style: Variable 'cardDi' is assigned a value that is never used. [unreadVariable] asedriveiiie-3.7/asedriveiiie-serial/InitCardParams.c:386:12: style: Variable 'retVal' is assigned a value that is never used. [unreadVariable] asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:399:16: style: Condition 'retVal<0' is always false [knownConditionTrueFalse] asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:299:18: note: Assignment 'retVal=0', assigned value is 0 asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:398:28: note: Calling function '_2BUSVerifyPSC' returns 0 asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:398:28: note: Assignment 'retVal=_2BUSVerifyPSC(globalData,socket,password,3,outBuffer,outBufLen)', assigned value is 0 asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:399:16: note: Condition 'retVal<0' is always false asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:716:16: style: Condition 'retVal<0' is always false [knownConditionTrueFalse] asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:615:18: note: Assignment 'retVal=0', assigned value is 0 asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:715:28: note: Calling function '_3BUSVerifyPSC' returns 0 asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:715:28: note: Assignment 'retVal=_3BUSVerifyPSC(globalData,socket,password,2,outBuffer,outBufLen)', assigned value is 0 asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:716:16: note: Condition 'retVal<0' is always false asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:143:41: style: Parameter 'bitsBuff' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:846:44: style: Parameter 'inBuf' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:114:5: warning: Uninitialized variable: *outBufLen [uninitvar] asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:206:102: note: Calling function '_2BUSExecInCommand', 7th argument '&actual' value is asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:114:5: note: Uninitialized variable: *outBufLen asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:443:5: warning: Uninitialized variable: *outBufLen [uninitvar] asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:624:97: note: Calling function '_3BUSExecInCommand', 8th argument '&actual' value is asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:443:5: note: Uninitialized variable: *outBufLen asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:138:17: style: Condition 'retVal=readerCommandInit(globalData,0)' is always false [knownConditionTrueFalse] asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:138:36: note: Calling function 'readerCommandInit' returns 0 asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:138:17: note: Condition 'retVal=readerCommandInit(globalData,0)' is always false asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:841:20: style:inconclusive: Function 'T0Read' argument 3 names different: declaration 'inBuf' definition 'buffer'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-serial/Ase.h:256:28: note: Function 'T0Read' argument 3 names different: declaration 'inBuf' definition 'buffer'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:841:20: note: Function 'T0Read' argument 3 names different: declaration 'inBuf' definition 'buffer'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:841:32: style:inconclusive: Function 'T0Read' argument 4 names different: declaration 'inBufLen' definition 'len'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-serial/Ase.h:256:39: note: Function 'T0Read' argument 4 names different: declaration 'inBufLen' definition 'len'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:841:32: note: Function 'T0Read' argument 4 names different: declaration 'inBufLen' definition 'len'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:841:44: style:inconclusive: Function 'T0Read' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-serial/Ase.h:256:56: note: Function 'T0Read' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:841:44: note: Function 'T0Read' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:868:21: style:inconclusive: Function 'T0Write' argument 3 names different: declaration 'inBuf' definition 'buffer'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-serial/Ase.h:258:29: note: Function 'T0Write' argument 3 names different: declaration 'inBuf' definition 'buffer'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:868:21: note: Function 'T0Write' argument 3 names different: declaration 'inBuf' definition 'buffer'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:868:33: style:inconclusive: Function 'T0Write' argument 4 names different: declaration 'inBufLen' definition 'len'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-serial/Ase.h:258:40: note: Function 'T0Write' argument 4 names different: declaration 'inBufLen' definition 'len'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:868:33: note: Function 'T0Write' argument 4 names different: declaration 'inBufLen' definition 'len'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:868:45: style:inconclusive: Function 'T0Write' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-serial/Ase.h:258:57: note: Function 'T0Write' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:868:45: note: Function 'T0Write' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:1022:51: style:inconclusive: Function 'SendIOCTL' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-serial/Ase.h:269:58: note: Function 'SendIOCTL' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:1022:51: note: Function 'SendIOCTL' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:41:30: style: Parameter 'globalData' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:57:32: style: Parameter 'globalData' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:706:32: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/ReaderCommands.c:922:25: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:716:20: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:714:19: note: outer condition: retVal<0 asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:716:20: note: identical inner condition: retVal<0 asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:759:28: style: Variable 'retVal' is reassigned a value before the old one has been used. [redundantAssignment] asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:756:28: note: retVal is assigned asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:759:28: note: retVal is overwritten asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:36:39: style: Parameter 'block' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:47:23: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:60:23: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:129:48: style: Parameter 'globalData' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:130:46: style: Parameter 'response' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/T1Protocol.c:298:65: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/atr.c:69:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:151:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:163:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:175:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:186:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:213:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:234:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:245:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:256:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:268:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:283:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:305:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:327:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:349:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:371:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:389:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/atr.c:29:54: style: Parameter 'data' can be declared as const array [constParameter] asedriveiiie-3.7/asedriveiiie-serial/atr.c:149:26: style: Parameter 'atr' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/atr.c:366:27: style: Parameter 'atr' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:142:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:210:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:295:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_ERROR_TAG [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:350:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:397:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_PROTOCOL_T1 [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:505:98: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_RESET [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:655:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:832:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:944:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:45:12: style: Variable 'retVal' is reassigned a value before the old one has been used. [redundantAssignment] asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:36:20: note: retVal is assigned asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:45:12: note: retVal is overwritten asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:45:12: style: Variable 'retVal' is assigned a value that is never used. [unreadVariable] asedriveiiie-3.7/asedriveiiie-serial/ifdhandler.c:876:20: style: Variable 'retVal' is assigned a value that is never used. [unreadVariable] asedriveiiie-3.7/asedriveiiie-serial/serial.c:34:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/serial.c:329:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/serial.c:383:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCIFLUSH [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/serial.c:406:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PARODD [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/serial.c:454:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CSTOPB [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-serial/serial.c:155:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/serial.c:163:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/serial.c:165:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/serial.c:167:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/serial.c:169:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/serial.c:171:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/serial.c:173:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-serial/serial.c:155:12: error: Invalid usleep() argument nr 1. The value is 1000000 but the valid values are '0:999999'. [invalidFunctionArg] asedriveiiie-3.7/asedriveiiie-serial/serial.c:28:69: style:inconclusive: Function 'IO_InitializePort' argument 4 names different: declaration 'par' definition 'parity'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-serial/Ase.h:275:7: note: Function 'IO_InitializePort' argument 4 names different: declaration 'par' definition 'parity'. asedriveiiie-3.7/asedriveiiie-serial/serial.c:28:69: note: Function 'IO_InitializePort' argument 4 names different: declaration 'par' definition 'parity'. asedriveiiie-3.7/asedriveiiie-serial/serial.c:200:60: style:inconclusive: Function 'IO_Read' argument 3 names different: declaration 'readsize' definition 'len'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-serial/Ase.h:282:6: note: Function 'IO_Read' argument 3 names different: declaration 'readsize' definition 'len'. asedriveiiie-3.7/asedriveiiie-serial/serial.c:200:60: note: Function 'IO_Read' argument 3 names different: declaration 'readsize' definition 'len'. asedriveiiie-3.7/asedriveiiie-serial/serial.c:200:80: style:inconclusive: Function 'IO_Read' argument 4 names different: declaration 'response' definition 'buf'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-serial/Ase.h:283:17: note: Function 'IO_Read' argument 4 names different: declaration 'response' definition 'buf'. asedriveiiie-3.7/asedriveiiie-serial/serial.c:200:80: note: Function 'IO_Read' argument 4 names different: declaration 'response' definition 'buf'. asedriveiiie-3.7/asedriveiiie-serial/serial.c:322:64: style:inconclusive: Function 'IO_Write' argument 3 names different: declaration 'c' definition 'data'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-serial/Ase.h:289:17: note: Function 'IO_Write' argument 3 names different: declaration 'c' definition 'data'. asedriveiiie-3.7/asedriveiiie-serial/serial.c:322:64: note: Function 'IO_Write' argument 3 names different: declaration 'c' definition 'data'. asedriveiiie-3.7/asedriveiiie-serial/serial.c:28:83: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-serial/serial.c:322:64: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:364:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:407:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:412:21: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:439:17: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:448:6: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:453:25: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:637:21: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:164:33: style: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:124:27: style: Floating-point cast causes loss of precision. [suspiciousFloatingPointCast] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:153:33: style: Parameter 'PPS1' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:153:46: style: Parameter 'PPS2' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:153:59: style: Parameter 'PPS3' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:88:11: style: Variable 'F' is assigned a value that is never used. [unreadVariable] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:287:16: style: Variable 'cardDi' is assigned a value that is never used. [unreadVariable] asedriveiiie-3.7/asedriveiiie-usb/InitCardParams.c:386:12: style: Variable 'retVal' is assigned a value that is never used. [unreadVariable] asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:399:16: style: Condition 'retVal<0' is always false [knownConditionTrueFalse] asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:299:18: note: Assignment 'retVal=0', assigned value is 0 asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:398:28: note: Calling function '_2BUSVerifyPSC' returns 0 asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:398:28: note: Assignment 'retVal=_2BUSVerifyPSC(globalData,socket,password,3,outBuffer,outBufLen)', assigned value is 0 asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:399:16: note: Condition 'retVal<0' is always false asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:716:16: style: Condition 'retVal<0' is always false [knownConditionTrueFalse] asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:615:18: note: Assignment 'retVal=0', assigned value is 0 asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:715:28: note: Calling function '_3BUSVerifyPSC' returns 0 asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:715:28: note: Assignment 'retVal=_3BUSVerifyPSC(globalData,socket,password,2,outBuffer,outBufLen)', assigned value is 0 asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:716:16: note: Condition 'retVal<0' is always false asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:143:41: style: Parameter 'bitsBuff' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:846:44: style: Parameter 'inBuf' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:114:5: warning: Uninitialized variable: *outBufLen [uninitvar] asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:206:102: note: Calling function '_2BUSExecInCommand', 7th argument '&actual' value is asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:114:5: note: Uninitialized variable: *outBufLen asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:443:5: warning: Uninitialized variable: *outBufLen [uninitvar] asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:624:97: note: Calling function '_3BUSExecInCommand', 8th argument '&actual' value is asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:443:5: note: Uninitialized variable: *outBufLen asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:139:17: style: Condition 'retVal=readerCommandInit(globalData,0)' is always false [knownConditionTrueFalse] asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:139:36: note: Calling function 'readerCommandInit' returns 0 asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:139:17: note: Condition 'retVal=readerCommandInit(globalData,0)' is always false asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:846:20: style:inconclusive: Function 'T0Read' argument 3 names different: declaration 'inBuf' definition 'buffer'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-usb/Ase.h:282:28: note: Function 'T0Read' argument 3 names different: declaration 'inBuf' definition 'buffer'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:846:20: note: Function 'T0Read' argument 3 names different: declaration 'inBuf' definition 'buffer'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:846:32: style:inconclusive: Function 'T0Read' argument 4 names different: declaration 'inBufLen' definition 'len'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-usb/Ase.h:282:39: note: Function 'T0Read' argument 4 names different: declaration 'inBufLen' definition 'len'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:846:32: note: Function 'T0Read' argument 4 names different: declaration 'inBufLen' definition 'len'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:846:44: style:inconclusive: Function 'T0Read' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-usb/Ase.h:282:56: note: Function 'T0Read' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:846:44: note: Function 'T0Read' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:873:21: style:inconclusive: Function 'T0Write' argument 3 names different: declaration 'inBuf' definition 'buffer'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-usb/Ase.h:284:29: note: Function 'T0Write' argument 3 names different: declaration 'inBuf' definition 'buffer'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:873:21: note: Function 'T0Write' argument 3 names different: declaration 'inBuf' definition 'buffer'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:873:33: style:inconclusive: Function 'T0Write' argument 4 names different: declaration 'inBufLen' definition 'len'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-usb/Ase.h:284:40: note: Function 'T0Write' argument 4 names different: declaration 'inBufLen' definition 'len'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:873:33: note: Function 'T0Write' argument 4 names different: declaration 'inBufLen' definition 'len'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:873:45: style:inconclusive: Function 'T0Write' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-usb/Ase.h:284:57: note: Function 'T0Write' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:873:45: note: Function 'T0Write' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:1026:51: style:inconclusive: Function 'SendIOCTL' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. [funcArgNamesDifferent] asedriveiiie-3.7/asedriveiiie-usb/Ase.h:295:58: note: Function 'SendIOCTL' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:1026:51: note: Function 'SendIOCTL' argument 5 names different: declaration 'outBuffer' definition 'outBuf'. asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:41:30: style: Parameter 'globalData' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:57:32: style: Parameter 'globalData' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:707:32: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/ReaderCommands.c:927:25: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:716:20: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:714:19: note: outer condition: retVal<0 asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:716:20: note: identical inner condition: retVal<0 asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:759:28: style: Variable 'retVal' is reassigned a value before the old one has been used. [redundantAssignment] asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:756:28: note: retVal is assigned asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:759:28: note: retVal is overwritten asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:36:39: style: Parameter 'block' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:47:23: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:60:23: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:129:48: style: Parameter 'globalData' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:130:46: style: Parameter 'response' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/T1Protocol.c:298:65: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/atr.c:69:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:151:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:163:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:175:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:186:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:213:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:234:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:245:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:256:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:268:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:283:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:305:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:327:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:349:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:371:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:389:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable present [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/atr.c:29:54: style: Parameter 'data' can be declared as const array [constParameter] asedriveiiie-3.7/asedriveiiie-usb/atr.c:149:26: style: Parameter 'atr' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/atr.c:366:27: style: Parameter 'atr' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:122:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:190:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:278:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_ERROR_TAG [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:333:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_SUCCESS [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:380:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SCARD_PROTOCOL_T1 [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:488:98: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_RESET [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:637:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:814:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:926:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFD_COMMUNICATION_ERROR [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:44:12: style: Variable 'retVal' is reassigned a value before the old one has been used. [redundantAssignment] asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:35:20: note: retVal is assigned asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:44:12: note: retVal is overwritten asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:44:12: style: Variable 'retVal' is assigned a value that is never used. [unreadVariable] asedriveiiie-3.7/asedriveiiie-usb/ifdhandler.c:858:20: style: Variable 'retVal' is assigned a value that is never used. [unreadVariable] asedriveiiie-3.7/asedriveiiie-usb/usb.c:130:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable interface [valueFlowBailoutIncompleteVar] asedriveiiie-3.7/asedriveiiie-usb/usb.c:247:14: style: Redundant initialization for 'saveLast'. The initialized value is overwritten before it is read. [redundantInitialization] asedriveiiie-3.7/asedriveiiie-usb/usb.c:240:27: note: saveLast is initialized asedriveiiie-3.7/asedriveiiie-usb/usb.c:247:14: note: saveLast is overwritten asedriveiiie-3.7/asedriveiiie-usb/usb.c:247:5: style: Variable 'saveLast' is assigned an expression that holds the same value. [redundantAssignment] asedriveiiie-3.7/asedriveiiie-usb/usb.c:240:27: note: saveLast is assigned 'globalData->io.lastPos' here. asedriveiiie-3.7/asedriveiiie-usb/usb.c:247:5: note: Variable 'saveLast' is assigned an expression that holds the same value. asedriveiiie-3.7/asedriveiiie-usb/usb.c:44:22: style: Parameter 'allReaders' can be declared as pointer to const [constParameterPointer] asedriveiiie-3.7/asedriveiiie-usb/usb.c:48:29: style: Variable 'bus' can be declared as pointer to const [constVariablePointer] asedriveiiie-3.7/asedriveiiie-usb/usb.c:287:20: style: Variable 'remain' is assigned a value that is never used. [unreadVariable] asedriveiiie-3.7/asedriveiiie-usb/usb.c:304:28: style: Variable 'remain' is assigned a value that is never used. [unreadVariable] asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:114:6: error: Using argument outBufLen that points at uninitialized variable actual [ctuuninitvar] asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:206:44: note: Calling function _2BUSExecInCommand, 7th argument is uninitialized asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:114:6: note: Using argument outBufLen asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:443:6: error: Using argument outBufLen that points at uninitialized variable actual [ctuuninitvar] asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:517:48: note: Calling function _3BUSExecInCommand, 8th argument is uninitialized asedriveiiie-3.7/asedriveiiie-serial/MemoryCards.c:443:6: note: Using argument outBufLen asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:114:6: error: Using argument outBufLen that points at uninitialized variable actual [ctuuninitvar] asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:206:44: note: Calling function _2BUSExecInCommand, 7th argument is uninitialized asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:114:6: note: Using argument outBufLen asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:443:6: error: Using argument outBufLen that points at uninitialized variable actual [ctuuninitvar] asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:517:48: note: Calling function _3BUSExecInCommand, 8th argument is uninitialized asedriveiiie-3.7/asedriveiiie-usb/MemoryCards.c:443:6: note: Using argument outBufLen diff: DONE