2024-03-27 13:20 ftp://ftp.de.debian.org/debian/pool/main/i/itools/itools_1.1.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 -j6 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-13) 13.2.0 cppcheck: head 2.13.0 head-info: 9b75b62 (2024-03-27 14:10:35 +0100) count: 55 48 elapsed-time: 1.1 8.5 head-timing-info: old-timing-info: head results: itools-1.1/idate.c:83:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] itools-1.1/idate.c:104:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] itools-1.1/ical.c:65:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] itools-1.1/ical.c:87:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] itools-1.1/ipraytime.c:88:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] itools-1.1/ipraytime.c:123:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] itools-1.1/ipraytime.c:390:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_NAME [valueFlowBailoutIncompleteVar] itools-1.1/ipraytime.c:492:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] itools-1.1/ipraytime.c:560:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hour [valueFlowBailoutIncompleteVar] itools-1.1/ipraytime.c:999:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timezone [valueFlowBailoutIncompleteVar] itools-1.1/idate.c:81:4: warning:inconclusive: The buffer 'pspaces' may not be null-terminated after the call to strncpy(). [terminateStrncpy] itools-1.1/idate.c:301:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] itools-1.1/idate.c:78:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] itools-1.1/idate.c:100:13: style: Parameter 'err_msg' can be declared as pointer to const [constParameterPointer] itools-1.1/idate.c:102:10: style: Variable 'prog_name' can be declared as pointer to const [constVariablePointer] itools-1.1/idate.c:149:15: style: Parameter 'indate' can be declared as pointer to const [constParameterPointer] itools-1.1/idate.c:212:26: style: Parameter 'argv' can be declared as const array [constParameter] itools-1.1/idate.c:225:15: style: Variable 't_ptr' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:86:4: warning:inconclusive: The buffer 'pspaces' may not be null-terminated after the call to strncpy(). [terminateStrncpy] itools-1.1/ipraytime.c:311:11: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] itools-1.1/ipraytime.c:606:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] itools-1.1/ipraytime.c:993:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] itools-1.1/ipraytime.c:150:7: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] itools-1.1/ipraytime.c:404:4: error: Memory leak: rcname [memleak] itools-1.1/ipraytime.c:339:9: error: Common realloc mistake: 'new_filename' nulled but not freed upon failure [memleakOnRealloc] itools-1.1/ipraytime.c:262:14: style: Local variable 'num' shadows outer variable [shadowVariable] itools-1.1/ipraytime.c:140:11: note: Shadowed declaration itools-1.1/ipraytime.c:262:14: note: Shadow variable itools-1.1/ipraytime.c:83:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:119:13: style: Parameter 'err_msg' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:121:10: style: Variable 'prog_name' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:135:20: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:305:22: style: Variable 'p' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:358:10: style: Variable 'home' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:425:10: style: Variable 'ipt_data' can be declared as pointer to const [constVariablePointer] itools-1.1/ipraytime.c:481:24: style: Parameter 'city_name' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:570:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:570:30: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:570:39: style: Parameter 'cur' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:595:20: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] itools-1.1/ipraytime.c:695:15: style: Variable 't_ptr' can be declared as pointer to const [constVariablePointer] itools-1.1/ical.c:191:20: style:inconclusive: Boolean expression '!fixed_view' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] itools-1.1/ical.c:270:20: style:inconclusive: Boolean expression '!fixed_view' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] itools-1.1/ical.c:63:4: warning:inconclusive: The buffer 'pspaces' may not be null-terminated after the call to strncpy(). [terminateStrncpy] itools-1.1/ical.c:455:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] itools-1.1/ical.c:191:20: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] itools-1.1/ical.c:270:20: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] itools-1.1/ical.c:60:10: style: Variable 'pname' can be declared as pointer to const [constVariablePointer] itools-1.1/ical.c:83:13: style: Parameter 'err_msg' can be declared as pointer to const [constParameterPointer] itools-1.1/ical.c:85:10: style: Variable 'prog_name' can be declared as pointer to const [constVariablePointer] itools-1.1/ical.c:131:13: style: Parameter 'udate' can be declared as pointer to const [constParameterPointer] itools-1.1/ical.c:132:14: style: Parameter 'rdate' can be declared as pointer to const [constParameterPointer] itools-1.1/ical.c:138:8: style: Variable 'wk_remap' can be declared as const array [constVariable] itools-1.1/ical.c:248:16: style: Parameter 'rdate' can be declared as pointer to const [constParameterPointer] itools-1.1/ical.c:258:8: style: Variable 'wk_remap' can be declared as const array [constVariable] itools-1.1/ical.c:359:26: style: Parameter 'argv' can be declared as const array [constParameter] itools-1.1/ical.c:374:15: style: Variable 't_ptr' can be declared as pointer to const [constVariablePointer] diff: head itools-1.1/ical.c:87:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head itools-1.1/idate.c:104:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head itools-1.1/ipraytime.c:123:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head itools-1.1/ipraytime.c:390:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_NAME [valueFlowBailoutIncompleteVar] head itools-1.1/ipraytime.c:492:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE [valueFlowBailoutIncompleteVar] head itools-1.1/ipraytime.c:560:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hour [valueFlowBailoutIncompleteVar] head itools-1.1/ipraytime.c:999:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable timezone [valueFlowBailoutIncompleteVar] DONE