2025-11-27 05:08 ftp://ftp.de.debian.org/debian/pool/main/i/infnoise/infnoise_0.3.3+dfsg.orig.tar.xz 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 -j4 platform: Linux-6.12.57+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 9486fde (2025-11-26 08:20:02 +0100) count: 64 64 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: infnoise-0.3.3/software/examples/libinfnoise/example-complex.c:21:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/daemon.c:32:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/examples/libinfnoise/example-simple.c:20:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/daemon.c:12:41: style: Parameter 'fileName' can be declared as pointer to const [constParameterPointer] infnoise-0.3.3/software/healthcheck.c:168:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/infnoise.c:67:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/infnoise.c:130:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/infnoise_win.c:85:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/infnoise_win.c:104:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/infnoise_win.c:158:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FT_OK [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/infnoise_win.c:224:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/healthcheck.c:168:9: warning: %llu in format string (no. 1) requires 'unsigned long long' but the argument type is 'signed long long'. [invalidPrintfArgType_uint] infnoise-0.3.3/software/healthcheck.c:187:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] infnoise-0.3.3/software/healthcheck.c:195:17: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] infnoise-0.3.3/software/healthcheck.c:288:52: style:inconclusive: Function 'inmEntropyOnTarget' argument 2 names different: declaration 'bits' definition 'numBits'. [funcArgNamesDifferent] infnoise-0.3.3/software/libinfnoise_private.h:56:52: note: Function 'inmEntropyOnTarget' argument 2 names different: declaration 'bits' definition 'numBits'. infnoise-0.3.3/software/healthcheck.c:288:52: note: Function 'inmEntropyOnTarget' argument 2 names different: declaration 'bits' definition 'numBits'. infnoise-0.3.3/software/Keccak/KeccakF-1600-reference.c:0:0: debug: ValueFlow maximum iterations exceeded [valueFlowMaxIterations] infnoise-0.3.3/software/libinfnoise.c:359:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/tools/bin2hex.c:6:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/tools/dice.c:17:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/tools/dice.c:16:20: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] infnoise-0.3.3/software/tools/dice.c:32:21: note: Assuming allocation function fails infnoise-0.3.3/software/tools/dice.c:32:21: note: Assignment 'file=fopen(argv[1],"r")', assigned value is 0 infnoise-0.3.3/software/tools/dice.c:38:20: note: Calling function 'rollDie', 2nd argument 'file' value is 0 infnoise-0.3.3/software/tools/dice.c:16:20: note: Null pointer dereference infnoise-0.3.3/software/tools/dice.c:21:40: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] infnoise-0.3.3/software/tools/dice.c:32:21: note: Assuming allocation function fails infnoise-0.3.3/software/tools/dice.c:32:21: note: Assignment 'file=fopen(argv[1],"r")', assigned value is 0 infnoise-0.3.3/software/tools/dice.c:38:20: note: Calling function 'rollDie', 2nd argument 'file' value is 0 infnoise-0.3.3/software/tools/dice.c:17:13: note: Assuming condition is false infnoise-0.3.3/software/tools/dice.c:21:40: note: Null pointer dereference infnoise-0.3.3/software/tools/dice.c:41:10: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] infnoise-0.3.3/software/tools/dice.c:32:21: note: Assuming allocation function fails infnoise-0.3.3/software/tools/dice.c:32:21: note: Assignment 'file=fopen(argv[1],"r")', assigned value is 0 infnoise-0.3.3/software/tools/dice.c:41:10: note: Null pointer dereference infnoise-0.3.3/software/infnoise.c:65:27: style: Parameter 'bytes' can be declared as pointer to const [constParameterPointer] infnoise-0.3.3/software/infnoise.c:212:15: style: Variable 'envDbg' can be declared as pointer to const [constVariablePointer] infnoise-0.3.3/software/infnoise.c:218:15: style: Variable 'envMultiplier' can be declared as pointer to const [constVariablePointer] infnoise-0.3.3/software/tools/entcheck.c:175:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/tools/entcheck.c:215:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/tools/findlongest.c:34:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/tools/findlongest.c:86:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/libinfnoise.c:144:9: warning: If memory allocation fails, then there is a possible null pointer dereference: cur [nullPointerOutOfMemory] infnoise-0.3.3/software/libinfnoise.c:143:49: note: Assuming allocation function fails infnoise-0.3.3/software/libinfnoise.c:143:15: note: Assignment 'cur=(struct infnoise_devlist_node_t*)malloc(sizeof(struct infnoise_devlist_node_t))', assigned value is 0 infnoise-0.3.3/software/libinfnoise.c:144:9: note: Null pointer dereference infnoise-0.3.3/software/libinfnoise.c:146:39: warning: If memory allocation fails, then there is a possible null pointer dereference: cur [nullPointerOutOfMemory] infnoise-0.3.3/software/libinfnoise.c:143:49: note: Assuming allocation function fails infnoise-0.3.3/software/libinfnoise.c:143:15: note: Assignment 'cur=(struct infnoise_devlist_node_t*)malloc(sizeof(struct infnoise_devlist_node_t))', assigned value is 0 infnoise-0.3.3/software/libinfnoise.c:146:39: note: Null pointer dereference infnoise-0.3.3/software/libinfnoise.c:147:39: warning: If memory allocation fails, then there is a possible null pointer dereference: cur [nullPointerOutOfMemory] infnoise-0.3.3/software/libinfnoise.c:143:49: note: Assuming allocation function fails infnoise-0.3.3/software/libinfnoise.c:143:15: note: Assignment 'cur=(struct infnoise_devlist_node_t*)malloc(sizeof(struct infnoise_devlist_node_t))', assigned value is 0 infnoise-0.3.3/software/libinfnoise.c:147:39: note: Null pointer dereference infnoise-0.3.3/software/libinfnoise.c:148:39: warning: If memory allocation fails, then there is a possible null pointer dereference: cur [nullPointerOutOfMemory] infnoise-0.3.3/software/libinfnoise.c:143:49: note: Assuming allocation function fails infnoise-0.3.3/software/libinfnoise.c:143:15: note: Assignment 'cur=(struct infnoise_devlist_node_t*)malloc(sizeof(struct infnoise_devlist_node_t))', assigned value is 0 infnoise-0.3.3/software/libinfnoise.c:148:39: note: Null pointer dereference infnoise-0.3.3/software/libinfnoise.c:96:65: style: Parameter 'inBuf' can be declared as pointer to const [constParameterPointer] infnoise-0.3.3/software/libinfnoise.c:124:34: style: Parameter 'start' can be declared as pointer to const [constParameterPointer] infnoise-0.3.3/software/libinfnoise.c:124:58: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] infnoise-0.3.3/software/tools/findlongest.c:59:5: warning: %llu in format string (no. 1) requires 'unsigned long long' but the argument type is 'signed long long'. [invalidPrintfArgType_uint] infnoise-0.3.3/software/tools/findlongest.c:44:13: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] infnoise-0.3.3/software/tools/findlongest.c:65:12: warning: If memory allocation fails, then there is a possible null pointer dereference: stringsSeen [nullPointerOutOfMemory] infnoise-0.3.3/software/tools/findlongest.c:101:34: note: Assuming allocation function fails infnoise-0.3.3/software/tools/findlongest.c:101:34: note: Assignment 'stringsSeen=calloc((uint64_t)1<<(34u-4u),sizeof(uint8_t))', assigned value is 0 infnoise-0.3.3/software/tools/findlongest.c:104:54: note: Calling function 'hasSubstringOfLength', 4th argument 'stringsSeen' value is 0 infnoise-0.3.3/software/tools/findlongest.c:65:12: note: Null pointer dereference infnoise-0.3.3/software/tools/findlongest.c:30:37: style: Parameter 'fileName' can be declared as pointer to const [constParameterPointer] infnoise-0.3.3/software/tools/findlongest.c:64:63: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] infnoise-0.3.3/software/tools/flipbits.c:20:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/tools/flipbits.c:57:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/tools/hex2bin.c:10:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/tools/hex2bin.c:27:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/tools/entcheck.c:227:13: warning: %llu in format string (no. 1) requires 'unsigned long long' but the argument type is 'signed long long'. [invalidPrintfArgType_uint] infnoise-0.3.3/software/tools/entcheck.c:222:46: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] infnoise-0.3.3/software/tools/passgen.c:18:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/infnoise_win.c:100:9: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] infnoise-0.3.3/software/writeentropy.c:24:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/writeentropy.c:40:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLOUT [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/writeentropy.c:65:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RNDGETENTCNT [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/writeentropy.c:79:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RNDADDENTROPY [valueFlowBailoutIncompleteVar] infnoise-0.3.3/software/infnoise_win.c:106:9: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] infnoise-0.3.3/software/infnoise_win.c:64:39: warning: Function 'extractBytes' argument order different: declaration 'bytes, length, inBuf' definition 'bytes, inBuf, raw' [funcArgOrderDifferent] infnoise-0.3.3/software/libinfnoise_private.h:68:32: note: Function 'extractBytes' argument order different: declaration 'bytes, length, inBuf' definition 'bytes, inBuf, raw' infnoise-0.3.3/software/infnoise_win.c:64:39: note: Function 'extractBytes' argument order different: declaration 'bytes, length, inBuf' definition 'bytes, inBuf, raw' infnoise-0.3.3/software/infnoise_win.c:98:31: warning: Function 'outputBytes' argument order different: declaration 'bytes, length, entropy, writeDevRandom, message' definition 'outFile, bytes, length, entropy, writeDevRandom' [funcArgOrderDifferent] infnoise-0.3.3/software/libinfnoise_private.h:70:27: note: Function 'outputBytes' argument order different: declaration 'bytes, length, entropy, writeDevRandom, message' definition 'outFile, bytes, length, entropy, writeDevRandom' infnoise-0.3.3/software/infnoise_win.c:98:31: note: Function 'outputBytes' argument order different: declaration 'bytes, length, entropy, writeDevRandom, message' definition 'outFile, bytes, length, entropy, writeDevRandom' infnoise-0.3.3/software/infnoise_win.c:64:55: style: Parameter 'inBuf' can be declared as pointer to const [constParameterPointer] infnoise-0.3.3/software/infnoise_win.c:98:49: style: Parameter 'bytes' can be declared as pointer to const [constParameterPointer] infnoise-0.3.3/software/tools/passgen.c:17:20: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] infnoise-0.3.3/software/tools/passgen.c:33:21: note: Assuming allocation function fails infnoise-0.3.3/software/tools/passgen.c:33:21: note: Assignment 'file=fopen(argv[1],"r")', assigned value is 0 infnoise-0.3.3/software/tools/passgen.c:38:37: note: Calling function 'rollDie', 2nd argument 'file' value is 0 infnoise-0.3.3/software/tools/passgen.c:17:20: note: Null pointer dereference infnoise-0.3.3/software/tools/passgen.c:22:40: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] infnoise-0.3.3/software/tools/passgen.c:33:21: note: Assuming allocation function fails infnoise-0.3.3/software/tools/passgen.c:33:21: note: Assignment 'file=fopen(argv[1],"r")', assigned value is 0 infnoise-0.3.3/software/tools/passgen.c:38:37: note: Calling function 'rollDie', 2nd argument 'file' value is 0 infnoise-0.3.3/software/tools/passgen.c:18:13: note: Assuming condition is false infnoise-0.3.3/software/tools/passgen.c:22:40: note: Null pointer dereference infnoise-0.3.3/software/tools/passgen.c:42:10: warning: If resource allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfResources] infnoise-0.3.3/software/tools/passgen.c:33:21: note: Assuming allocation function fails infnoise-0.3.3/software/tools/passgen.c:33:21: note: Assignment 'file=fopen(argv[1],"r")', assigned value is 0 infnoise-0.3.3/software/tools/passgen.c:42:10: note: Null pointer dereference infnoise-0.3.3/software/infnoise_win.c:100:17: style: Variable 'entropy' is assigned a value that is never used. [unreadVariable] infnoise-0.3.3/software/writeentropy.c:21:42: style: Parameter 'fileName' can be declared as pointer to const [constParameterPointer] infnoise-0.3.3/software/writeentropy.c:74:37: style: Parameter 'bytes' can be declared as pointer to const [constParameterPointer] diff: DONE