2026-03-12 00:30 ftp://ftp.de.debian.org/debian/pool/main/r/randtype/randtype_1.13.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --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.8.0-100-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: 1b9124e (2026-03-11 18:42:20 +0100) count: 30 30 elapsed-time: 1.5 0.5 head-timing-info: old-timing-info: head results: randtype-1.13/randtype.c:72:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] randtype-1.13/randtype.c:167:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] randtype-1.13/randtype.c:192:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] randtype-1.13/randtype.c:209:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] randtype-1.13/randtype.c:234:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] randtype-1.13/randtype.c:343:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] randtype-1.13/randtype.c:468:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] randtype-1.13/randtype.c:535:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] randtype-1.13/randtype.c:264:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] randtype-1.13/randtype.c:266:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] randtype-1.13/randtype.c:426:21: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] randtype-1.13/randtype.c:478:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] randtype-1.13/randtype.c:490:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] randtype-1.13/randtype.c:526:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] randtype-1.13/randtype.c:527:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] randtype-1.13/randtype.c:348:2: error: Memory leak: s [memleak] randtype-1.13/randtype.c:368:6: error: Memory leak: s [memleak] randtype-1.13/randtype.c:368:6: error: Memory leak: src [memleak] randtype-1.13/randtype.c:320:14: style: Checking if unsigned expression 'diff' is less than zero. [unsignedLessThanZero] randtype-1.13/randtype.c:213:27: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] randtype-1.13/randtype.c:257:11: style: Variable 's' can be declared as pointer to const [constVariablePointer] randtype-1.13/randtype.c:289:38: style: Parameter 'find' can be declared as pointer to const [constParameterPointer] randtype-1.13/randtype.c:289:50: style: Parameter 'repl' can be declared as pointer to const [constParameterPointer] randtype-1.13/randtype.c:384:9: style: Variable 'x' can be declared as pointer to const [constVariablePointer] randtype-1.13/randtype.c:475:8: style: Variable 'find' can be declared as pointer to const [constVariablePointer] randtype-1.13/randtype.c:475:15: style: Variable 'repl' can be declared as pointer to const [constVariablePointer] randtype-1.13/randtype.c:522:11: style: Variable 'time' can be declared as pointer to const [constVariablePointer] randtype-1.13/randtype.c:522:25: style: Variable 'chartime' can be declared as pointer to const [constVariablePointer] randtype-1.13/randtype.c:522:43: style: Variable 'replacestr' can be declared as pointer to const [constVariablePointer] randtype-1.13/randtype.c:167:7: 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] diff: DONE