2025-04-03 22:55 ftp://ftp.de.debian.org/debian/pool/main/z/zutils/zutils_1.14.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.66 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: 610386c (2025-04-03 20:19:17 +0200) count: 67 67 elapsed-time: 0.7 0.7 head-timing-info: old-timing-info: head results: zutils-1.14/recursive.cc:75:78: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:77:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:118:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:164:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:209:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:315:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYSCONFDIR [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:354:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROGVERSION [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:376:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:389:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:398:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:407:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:415:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:423:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:431:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zutils-1.14/rc.cc:442:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/recursive.cc:93:48: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] zutils-1.14/recursive.cc:81:29: style: Variable 'stdotp' can be declared as pointer to const [constVariablePointer] zutils-1.14/zcatgrep.cc:25:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num_formats [valueFlowBailoutIncompleteVar] zutils-1.14/zcatgrep.cc:39:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] zutils-1.14/zcmpdiff.cc:25:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] zutils-1.14/zcmpdiff.cc:39:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] zutils-1.14/zcat.cc:158:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zcat.cc:385:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zcmp.cc:139:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zcmp.cc:215:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zcmp.cc:286:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zcmp.cc:489:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zutils-1.14/zdiff.cc:140:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] zutils-1.14/zdiff.cc:169:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zdiff.cc:243:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] zutils-1.14/zdiff.cc:335:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF [valueFlowBailoutIncompleteVar] zutils-1.14/zdiff.cc:204:26: style: C-style pointer casting [cstyleCast] zutils-1.14/zdiff.cc:414:22: style: C-style pointer casting [cstyleCast] zutils-1.14/zdiff.cc:406:25: style: Local variable 'argv' shadows outer argument [shadowArgument] zutils-1.14/zdiff.cc:258:46: note: Shadowed declaration zutils-1.14/zdiff.cc:406:25: note: Shadow variable zutils-1.14/zdiff.cc:425:9: style: Local variable 'infd' shadows outer variable [shadowVariable] zutils-1.14/zdiff.cc:361:7: note: Shadowed declaration zutils-1.14/zdiff.cc:425:9: note: Shadow variable zutils-1.14/zcat.cc:173:18: style: Variable 'outpos' is assigned a value that is never used. [unreadVariable] zutils-1.14/zcmp.cc:113:9: style: Condition 'prefix' is always false [knownConditionTrueFalse] zutils-1.14/zcmp.cc:110:19: note: Assignment 'prefix=0', assigned value is 0 zutils-1.14/zcmp.cc:113:9: note: Condition 'prefix' is always false zutils-1.14/zcmp.cc:117:9: style: Condition 'prefix' is always false [knownConditionTrueFalse] zutils-1.14/zcmp.cc:110:19: note: Assignment 'prefix=0', assigned value is 0 zutils-1.14/zcmp.cc:117:9: note: Condition 'prefix' is always false zutils-1.14/zgrep.cc:134:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zgrep.cc:331:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GREP [valueFlowBailoutIncompleteVar] zutils-1.14/ztest.cc:99:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] zutils-1.14/ztest.cc:118:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/ztest.cc:193:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zutils-1.14/ztest.cc:355:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zupdate.cc:140:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] zutils-1.14/zupdate.cc:158:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zutils-1.14/zupdate.cc:176:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zupdate.cc:209:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] zutils-1.14/ztest.cc:149:24: style: C-style pointer casting [cstyleCast] zutils-1.14/ztest.cc:229:22: style: C-style pointer casting [cstyleCast] zutils-1.14/ztest.cc:171:14: style: The scope of the variable 'disable_xz' can be reduced. [variableScope] zutils-1.14/ztest.cc:172:14: style: The scope of the variable 'disable_zst' can be reduced. [variableScope] zutils-1.14/ztest.cc:173:11: style: The scope of the variable 'magic_data' can be reduced. [variableScope] zutils-1.14/zgrep.cc:147:24: style: C-style pointer casting [cstyleCast] zutils-1.14/zutils.cc:57:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] zutils-1.14/zutils.cc:82:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zutils.cc:101:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zutils.cc:119:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zutils.cc:176:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zutils.cc:273:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] zutils-1.14/zupdate.cc:182:7: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] zutils-1.14/zupdate.cc:307:26: style: C-style pointer casting [cstyleCast] zutils-1.14/zupdate.cc:333:26: style: C-style pointer casting [cstyleCast] zutils-1.14/zupdate.cc:197:14: style: The scope of the variable 'disable_xz' can be reduced. [variableScope] zutils-1.14/zupdate.cc:198:14: style: The scope of the variable 'disable_zst' can be reduced. [variableScope] zutils-1.14/zupdate.cc:218:20: error: Dereference of an invalid iterator: rname.end() [derefInvalidIterator] zutils-1.14/zutils.cc:209:26: style: C-style pointer casting [cstyleCast] diff: DONE