2024-04-24 10:40 ftp://ftp.de.debian.org/debian/pool/main/d/dtaus/dtaus_0.9.orig.tar.gz cppcheck-options: --library=posix --library=gnu --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j2 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.53 compiler: g++ (Debian 13.2.0-23) 13.2.0 cppcheck: head 2.14.0 head-info: 9fab9b9 (2024-04-24 10:46:48 +0200) count: 75 75 elapsed-time: 1.2 1.2 head-timing-info: old-timing-info: head results: dtaus-0.9/bigint.c:40:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dtaus-0.9/bigint.c:56:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dtaus-0.9/bigint.c:102:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dtaus-0.9/bigint.c:175:18: style: Condition 'a.val[i]==b.val[i]' is always true [knownConditionTrueFalse] dtaus-0.9/bigint.c:171:18: note: Assuming that condition 'a.val[i]>b.val[i]' is not redundant dtaus-0.9/bigint.c:173:18: note: Assuming condition is false dtaus-0.9/bigint.c:175:18: note: Condition 'a.val[i]==b.val[i]' is always true dtaus-0.9/bigint.c:117:28: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dtaus-0.9/bigint.c:143:39: style: Parameter 'format' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:285:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dtaus-0.9/dtaus.c:378:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dtaus-0.9/dtaus.c:677:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dtaus-0.9/dtaus.c:732:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dtaus-0.9/dtaus.c:903:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dtaus-0.9/dtaus.c:930:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] dtaus-0.9/dtaus.c:1152:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] dtaus-0.9/latex.c:72:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dtaus-0.9/latex.c:55:15: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] dtaus-0.9/latex.c:56:15: style: Parameter 'type' can be declared as pointer to const [constParameterPointer] dtaus-0.9/latex.c:57:15: style: Parameter 'created' can be declared as pointer to const [constParameterPointer] dtaus-0.9/latex.c:58:15: style: Parameter 'todo' can be declared as pointer to const [constParameterPointer] dtaus-0.9/latex.c:59:15: style: Parameter 'currency' can be declared as pointer to const [constParameterPointer] dtaus-0.9/latex.c:61:15: style: Parameter 'sum_val' can be declared as pointer to const [constParameterPointer] dtaus-0.9/latex.c:62:15: style: Parameter 'sum_kto' can be declared as pointer to const [constParameterPointer] dtaus-0.9/latex.c:63:15: style: Parameter 'sum_blz' can be declared as pointer to const [constParameterPointer] dtaus-0.9/latex.c:64:15: style: Parameter 'kto' can be declared as pointer to const [constParameterPointer] dtaus-0.9/latex.c:65:15: style: Parameter 'blz' can be declared as pointer to const [constParameterPointer] dtaus-0.9/main.c:111:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dtaus-0.9/test_bigint.c:39:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dtaus-0.9/test_bigint.c:28:31: style: Parameter 'should' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:875:26: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] dtaus-0.9/dtaus.c:324:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dtaus-0.9/dtaus.c:567:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dtaus-0.9/dtaus.c:585:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dtaus-0.9/dtaus.c:942:2: error: Resource leak: fdtaus [resourceLeak] dtaus-0.9/dtaus.c:944:5: error: Resource leak: fdtaus [resourceLeak] dtaus-0.9/dtaus.c:1160:2: error: Resource leak: fdtaus [resourceLeak] dtaus-0.9/dtaus.c:1166:2: error: Resource leak: fdtaus [resourceLeak] dtaus-0.9/dtaus.c:1170:7: error: Resource leak: fdtaus [resourceLeak] dtaus-0.9/dtaus.c:1170:7: error: Resource leak: fcontrol [resourceLeak] dtaus-0.9/dtaus.c:1173:7: error: Resource leak: fdtaus [resourceLeak] dtaus-0.9/dtaus.c:1173:7: error: Resource leak: fcontrol [resourceLeak] dtaus-0.9/dtaus.c:1179:7: error: Resource leak: fdtaus [resourceLeak] dtaus-0.9/dtaus.c:1179:7: error: Resource leak: fcontrol [resourceLeak] dtaus-0.9/dtaus.c:1179:7: error: Resource leak: fbeleg [resourceLeak] dtaus-0.9/dtaus.c:1183:5: error: Resource leak: fdtaus [resourceLeak] dtaus-0.9/dtaus.c:1183:5: error: Resource leak: fcontrol [resourceLeak] dtaus-0.9/dtaus.c:1183:5: error: Resource leak: fbeleg [resourceLeak] dtaus-0.9/dtaus.c:532:31: style: Variable 'cp' is reassigned a value before the old one has been used. [redundantAssignment] dtaus-0.9/dtaus.c:530:6: note: cp is assigned dtaus-0.9/dtaus.c:532:31: note: cp is overwritten dtaus-0.9/dtaus.c:963:12: style: Variable 'bufp' is reassigned a value before the old one has been used. [redundantAssignment] dtaus-0.9/dtaus.c:952:12: note: bufp is assigned dtaus-0.9/dtaus.c:963:12: note: bufp is overwritten dtaus-0.9/dtaus.c:204:22: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:273:25: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:277:9: style: Variable 'xp' can be declared as pointer to const [constVariablePointer] dtaus-0.9/dtaus.c:321:14: style: Variable 'loctime' can be declared as pointer to const [constVariablePointer] dtaus-0.9/dtaus.c:328:27: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:403:25: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:417:25: style: Parameter 's' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:502:21: style: Parameter 'ident' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:564:14: style: Variable 'loctime' can be declared as pointer to const [constVariablePointer] dtaus-0.9/dtaus.c:580:14: style: Variable 'loctime' can be declared as pointer to const [constVariablePointer] dtaus-0.9/dtaus.c:858:31: style: Parameter 'field' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:858:44: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:867:35: style: Parameter 'field' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:867:48: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:913:27: style: Parameter 'cdtaus' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:913:41: style: Parameter 'ccontrol' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:1128:26: style: Parameter 'ccontrol' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:1128:42: style: Parameter 'cdtaus' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:1128:56: style: Parameter 'cbeleg' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:1128:70: style: Parameter 'ccheck' can be declared as pointer to const [constParameterPointer] dtaus-0.9/dtaus.c:1131:9: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] dtaus-0.9/dtaus.c:1052:10: warning: Size of pointer 'buf' used instead of size of its data. [pointerSize] dtaus-0.9/dtaus.c:1071:12: warning: Size of pointer 'buf' used instead of size of its data. [pointerSize] dtaus-0.9/dtaus.c:263:12: style: Variable 'cp' is assigned a value that is never used. [unreadVariable] dtaus-0.9/dtaus.c:265:5: style: Variable 'cp' is assigned a value that is never used. [unreadVariable] dtaus-0.9/dtaus.c:1182:12: style: Variable 'buf' is assigned a value that is never used. [unreadVariable] dtaus-0.9/dtaus.c:1303:12: style: Variable 'len' is assigned a value that is never used. [unreadVariable] dtaus-0.9/dtaus.c:1182:30: style: Variable 'buf' is allocated memory that is never used. [unusedAllocatedMemory] diff: DONE