2024-04-14 08:23 ftp://ftp.de.debian.org/debian/pool/main/a/aespipe/aespipe_2.4d.orig.tar.bz2 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 -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 01c049d (2024-04-13 21:28:19 +0200) count: 22 16 elapsed-time: 9.6 8.3 head-timing-info: old-timing-info: head results: aespipe-v2.4d/aespipe.c:97:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] aespipe-v2.4d/aespipe.c:118:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] aespipe-v2.4d/aespipe.c:160:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] aespipe-v2.4d/aespipe.c:177:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] aespipe-v2.4d/aespipe.c:320:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] aespipe-v2.4d/aespipe.c:371:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] aespipe-v2.4d/aespipe.c:1179:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] aespipe-v2.4d/rmd160.c:188:38: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] aespipe-v2.4d/aespipe.c:176:18: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] aespipe-v2.4d/aespipe.c:1266:18: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] aespipe-v2.4d/aespipe.c:170:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] aespipe-v2.4d/aespipe.c:337:23: style: Variable 'seed' can be declared as pointer to const [constVariablePointer] aespipe-v2.4d/aespipe.c:433:20: style: Variable 'kp' can be declared as pointer to const [constVariablePointer] aespipe-v2.4d/aespipe.c:467:43: style: Parameter 'keyStr' can be declared as pointer to const. However it seems that 'unhashed2_hash_buffer' is a callback function, if 'keyStr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] aespipe-v2.4d/aespipe.c:1316:53: note: You might need to cast the function pointer here aespipe-v2.4d/aespipe.c:467:43: note: Parameter 'keyStr' can be declared as pointer to const aespipe-v2.4d/aespipe.c:712:22: style: Variable 'dip' can be declared as pointer to const [constVariablePointer] aespipe-v2.4d/aespipe.c:784:22: style: Variable 'dip' can be declared as pointer to const [constVariablePointer] aespipe-v2.4d/aespipe.c:1160:18: style: Variable 'hfn' can be declared as pointer to const [constVariablePointer] aespipe-v2.4d/aespipe.c:1160:36: style: Variable 'efn' can be declared as pointer to const [constVariablePointer] aespipe-v2.4d/aespipe.c:1163:11: style: Variable 'hardware' can be declared as pointer to const [constVariablePointer] aespipe-v2.4d/aespipe.c:1452:15: style: Variable 'mode' can be declared as pointer to const [constVariablePointer] aespipe-v2.4d/aespipe.c:1452:22: style: Variable 'ramLo' can be declared as pointer to const [constVariablePointer] aespipe-v2.4d/aespipe.c:702:13: error: Overlapping read/write in memcpy() is undefined behavior [overlappingWriteFunction] diff: head aespipe-v2.4d/aespipe.c:1179:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head aespipe-v2.4d/aespipe.c:118:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head aespipe-v2.4d/aespipe.c:160:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head aespipe-v2.4d/aespipe.c:177:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head aespipe-v2.4d/aespipe.c:320:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] head aespipe-v2.4d/aespipe.c:371:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] DONE