2026-05-06 07:22 ftp://ftp.de.debian.org/debian/pool/main/b/backuppc-rsync/backuppc-rsync_3.1.3.0.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.12.85+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.70 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.20.0 head-info: 6278f6b (2026-05-05 15:01:04 +0200) count: 214 212 elapsed-time: 6.0 6.0 head-timing-info: old-timing-info: head results: rsync-bpc-3.1.3.0/rsync.h:586:3: error: #error Could not find a 32-bit integer variable [preprocessorErrorDirective] rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:676:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:863:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:1188:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:1343:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:671:62: style:inconclusive: Function 'bpc_attrib_buf2fileFull' argument 2 names different: declaration 'buf' definition 'bufP'. [funcArgNamesDifferent] rsync-bpc-3.1.3.0/backuppc/backuppc.h:365:62: note: Function 'bpc_attrib_buf2fileFull' argument 2 names different: declaration 'buf' definition 'bufP'. rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:671:62: note: Function 'bpc_attrib_buf2fileFull' argument 2 names different: declaration 'buf' definition 'bufP'. rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:691:66: style:inconclusive: Function 'bpc_attrib_dirRead' argument 3 names different: declaration 'attribFileName' definition 'attribFilePath'. [funcArgNamesDifferent] rsync-bpc-3.1.3.0/backuppc/backuppc.h:368:66: note: Function 'bpc_attrib_dirRead' argument 3 names different: declaration 'attribFileName' definition 'attribFilePath'. rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:691:66: note: Function 'bpc_attrib_dirRead' argument 3 names different: declaration 'attribFileName' definition 'attribFilePath'. rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:295:55: style: Parameter 'fileName' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:376:85: style: Variable 'xattr1' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:424:47: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:485:53: style: Parameter 'file' can be declared as pointer to const. However it seems that 'bpc_attrib_getDirEntry' is a callback function, if 'file' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:508:49: note: You might need to cast the function pointer here rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:485:53: note: Parameter 'file' can be declared as pointer to const rsync-bpc-3.1.3.0/backuppc/bpc_attrib.c:599:45: style: Parameter 'bufEnd' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_attribCache.c:175:52: debug: Function::addArguments found argument 'ac' with varid 0. [varid0] rsync-bpc-3.1.3.0/backuppc/bpc_attribCache.c:25:59: style:inconclusive: Function 'bpc_attribCache_init' argument 2 names different: declaration 'host' definition 'hostName'. [funcArgNamesDifferent] rsync-bpc-3.1.3.0/backuppc/backuppc.h:448:59: note: Function 'bpc_attribCache_init' argument 2 names different: declaration 'host' definition 'hostName'. rsync-bpc-3.1.3.0/backuppc/bpc_attribCache.c:25:59: note: Function 'bpc_attribCache_init' argument 2 names different: declaration 'host' definition 'hostName'. rsync-bpc-3.1.3.0/backuppc/bpc_attribCache.c:659:58: style: Parameter 'file' can be declared as pointer to const. However it seems that 'bpc_attribCache_getDirEntry' is a callback function, if 'file' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rsync-bpc-3.1.3.0/backuppc/bpc_attribCache.c:725:54: note: You might need to cast the function pointer here rsync-bpc-3.1.3.0/backuppc/bpc_attribCache.c:659:58: note: Parameter 'file' can be declared as pointer to const rsync-bpc-3.1.3.0/backuppc/bpc_attribCache.c:877:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/backuppc/bpc_attribCache.c:758:22: style: Variable 'status' is assigned a value that is never used. [unreadVariable] rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:61:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ACCESSPERMS [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:237:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_WRLCK [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:250:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_UNLCK [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:263:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:41:7: style: Redundant initialization for 'p'. The initialized value is overwritten before it is read. [redundantInitialization] rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:27:13: note: p is initialized rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:41:7: note: p is overwritten rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:116:32: style: Local variable 'dir' shadows outer variable [shadowVariable] rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:81:10: note: Shadowed declaration rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:116:32: note: Shadow variable rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:190:32: style: Local variable 'dir' shadows outer variable [shadowVariable] rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:162:10: note: Shadowed declaration rsync-bpc-3.1.3.0/backuppc/bpc_dirOps.c:190:32: note: Shadow variable rsync-bpc-3.1.3.0/backuppc/bpc_fileDigest.c:47:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_LEN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_fileZIO.c:54:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_fileZIO.c:136:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_WBITS [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_fileZIO.c:173:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_fileZIO.c:278:81: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_fileZIO.c:337:9: warning: Return value of function deflate() is not used. [ignoredReturnValue] rsync-bpc-3.1.3.0/backuppc/bpc_fileZIO.c:258:32: style: Checking if unsigned expression 'totalRead' is less than zero. [unsignedLessThanZero] rsync-bpc-3.1.3.0/backuppc/bpc_fileZIO.c:414:15: style: Variable 'p' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/backuppc/bpc_hashtable.c:64:16: error: Common realloc mistake: 'FreeList' nulled but not freed upon failure [memleakOnRealloc] rsync-bpc-3.1.3.0/backuppc/bpc_hashtable.c:372:86: style:inconclusive: Function 'bpc_hashtable_iterate' argument 3 names different: declaration '' definition 'arg1'. [funcArgNamesDifferentUnnamed] rsync-bpc-3.1.3.0/backuppc/bpc_hashtable.c:173:34: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_hashtable.c:435:45: style: Parameter 'tbl' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_hashtable.c:87:35: portability: '(void*)key' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] rsync-bpc-3.1.3.0/backuppc/bpc_lib.c:92:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_LEN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_lib.c:216:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_LEN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_lib.c:287:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_lib.c:341:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_lib.c:287:13: portability: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_uint] rsync-bpc-3.1.3.0/backuppc/bpc_lib.c:111:36: style: Parameter 'digest1' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_lib.c:111:57: style: Parameter 'digest2' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_lib.c:117:40: style: Parameter 'digest' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_lib.c:345:69: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_lib.c:351:69: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_lib.c:357:70: style: Parameter 'fmt' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_poolWrite.c:302:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_LEN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_poolWrite.c:688:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_poolWrite.c:783:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_poolWrite.c:899:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXOTH [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_poolWrite.c:212:18: style: Condition 'data' is always true [knownConditionTrueFalse] rsync-bpc-3.1.3.0/backuppc/bpc_poolWrite.c:696:9: error: Resource leak: fdWrite [resourceLeak] rsync-bpc-3.1.3.0/backuppc/bpc_poolWrite.c:660:68: style:inconclusive: Function 'bpc_poolWrite_repeatPoolWrite' argument 2 names different: declaration 'fileName' definition 'fileNameTmp'. [funcArgNamesDifferent] rsync-bpc-3.1.3.0/backuppc/backuppc.h:244:68: note: Function 'bpc_poolWrite_repeatPoolWrite' argument 2 names different: declaration 'fileName' definition 'fileNameTmp'. rsync-bpc-3.1.3.0/backuppc/bpc_poolWrite.c:660:68: note: Function 'bpc_poolWrite_repeatPoolWrite' argument 2 names different: declaration 'fileName' definition 'fileNameTmp'. rsync-bpc-3.1.3.0/backuppc/bpc_poolWrite.c:38:76: style: Parameter 'digest' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_poolWrite.c:455:20: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:122:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:136:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:158:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:244:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:290:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:369:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:422:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:489:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:373:1: error: Resource leak: fd [resourceLeak] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:363:35: style:inconclusive: Function 'bpc_poolRefRequestFsck' argument 1 names different: declaration 'targetDir' definition 'backupDir'. [funcArgNamesDifferent] rsync-bpc-3.1.3.0/backuppc/backuppc.h:120:35: note: Function 'bpc_poolRefRequestFsck' argument 1 names different: declaration 'targetDir' definition 'backupDir'. rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:363:35: note: Function 'bpc_poolRefRequestFsck' argument 1 names different: declaration 'targetDir' definition 'backupDir'. rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:74:17: style: Variable 'd' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:110:17: style: Variable 'd' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:175:46: style: Parameter 'bufLast' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:202:45: style: Parameter 'bufLast' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/backuppc/bpc_refCount.c:369:14: style: Variable 'fd' is assigned a value that is never used. [unreadVariable] rsync-bpc-3.1.3.0/bpc_sysCalls.c:61:33: debug: Function::addArguments found argument 'errFlag' with varid 0. [varid0] rsync-bpc-3.1.3.0/bpc_sysCalls.c:2061:98: debug: Function::addArguments found argument 'flags' with varid 0. [varid0] rsync-bpc-3.1.3.0/ifuncs.h:43:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xbuf [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/ifuncs.h:62:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _S_IFMT [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:63:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:155:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:200:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:312:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:327:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:364:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:498:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:728:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:770:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_LEN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:843:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_LEN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:900:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:919:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:937:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:957:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1064:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1118:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1136:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1170:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXOTH [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1195:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1243:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1315:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1402:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1424:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1455:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1480:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1607:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1690:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1704:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1739:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1775:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1804:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1831:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1857:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1875:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1926:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:2024:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:2052:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:2073:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EMPTY_XBUF [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:2142:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EMPTY_XBUF [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:2204:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/bpc_sysCalls.c:997:9: warning: Either the condition 'file' is redundant or there is possible null pointer dereference: file. [nullPointerRedundantCheck] rsync-bpc-3.1.3.0/bpc_sysCalls.c:987:14: note: Assuming that condition 'file' is not redundant rsync-bpc-3.1.3.0/bpc_sysCalls.c:997:9: note: Null pointer dereference rsync-bpc-3.1.3.0/bpc_sysCalls.c:998:14: warning: Either the condition 'file' is redundant or there is possible null pointer dereference: file. [nullPointerRedundantCheck] rsync-bpc-3.1.3.0/bpc_sysCalls.c:987:14: note: Assuming that condition 'file' is not redundant rsync-bpc-3.1.3.0/bpc_sysCalls.c:998:14: note: Null pointer dereference rsync-bpc-3.1.3.0/bpc_sysCalls.c:1921:70: warning: Either the condition '!file' is redundant or there is possible null pointer dereference: file. [nullPointerRedundantCheck] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1925:11: note: Assuming that condition '!file' is not redundant rsync-bpc-3.1.3.0/bpc_sysCalls.c:1921:70: note: Null pointer dereference rsync-bpc-3.1.3.0/bpc_sysCalls.c:83:16: style: Local variable 'BPC_HardLinkMax' shadows outer variable [shadowVariable] rsync-bpc-3.1.3.0/backuppc/backuppc.h:29:12: note: Shadowed declaration rsync-bpc-3.1.3.0/bpc_sysCalls.c:83:16: note: Shadow variable rsync-bpc-3.1.3.0/bpc_sysCalls.c:84:16: style: Local variable 'BPC_PoolV3Enabled' shadows outer variable [shadowVariable] rsync-bpc-3.1.3.0/backuppc/backuppc.h:30:12: note: Shadowed declaration rsync-bpc-3.1.3.0/bpc_sysCalls.c:84:16: note: Shadow variable rsync-bpc-3.1.3.0/bpc_sysCalls.c:484:48: style: Parameter 'ac' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:484:96: style: Parameter 'fileNameLog' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:751:38: style: Parameter 'file_sum' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:898:40: style: Parameter 'fileName' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:898:56: style: Parameter 'status' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1011:30: style: Variable 'fileOld' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1132:22: style: Variable 'file' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1419:22: style: Variable 'file' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1490:22: style: Variable 'bufPnew' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1826:22: style: Variable 'file' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1852:22: style: Variable 'file' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:2064:23: style: Variable 'xattr' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:2133:23: style: Variable 'xattr' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/ifuncs.h:69:23: style: Parameter 'di' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/ifuncs.h:79:21: style: Parameter 'sx_p' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/ifuncs.h:90:21: style: Parameter 'sx_p' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1201:16: style: Variable 'file' is assigned a value that is never used. [unreadVariable] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1606:16: style: Variable 'file' is assigned a value that is never used. [unreadVariable] rsync-bpc-3.1.3.0/bpc_sysCalls.c:1930:15: style: Variable 'cnt' is assigned a value that is never used. [unreadVariable] rsync-bpc-3.1.3.0/bpc_sysCalls.c:2171:18: style: Variable 'xattr' is assigned a value that is never used. [unreadVariable] rsync-bpc-3.1.3.0/lib/compat.c:58:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/compat.c:41:9: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] rsync-bpc-3.1.3.0/lib/compat.c:75:2: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] rsync-bpc-3.1.3.0/lib/compat.c:28:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:69:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAI_NONAME [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:94:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAI_MEMORY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:104:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAI_FAIL [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:116:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:140:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:179:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAI_MEMORY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:236:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAI_MEMORY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:272:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:406:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_NUMERICHOST [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:450:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_NUMERICSERV [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:483:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAI_FAIL [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:109:33: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:116:4: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:224:7: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:407:24: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:451:24: portability: Non reentrant function 'getservbyport' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyport_r'. [prohibitedgetservbyportCalled] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:60:46: style: Parameter 'hp' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/lib/getaddrinfo.c:451:19: style: Variable 'se' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/lib/getpass.c:30:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable False [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/inet_ntop.c:56:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/inet_ntop.c:82:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/inet_pton.c:58:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/inet_pton.c:110:14: error: Uninitialized variable: tmp [uninitvar] rsync-bpc-3.1.3.0/lib/inet_pton.c:108:13: note: Assuming condition is false rsync-bpc-3.1.3.0/lib/inet_pton.c:110:14: note: Uninitialized variable: tmp rsync-bpc-3.1.3.0/lib/mdfour.c:91:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD4_DIGEST_LEN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/mdfour.c:43:30: style: Parameter 'M' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/lib/mdfour.c:196:50: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/lib/permstring.c:42:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_ISUID [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/pool_alloc.c:66:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POOL_INTERN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/pool_alloc.c:103:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POOL_PREPEND [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/pool_alloc.c:126:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POOL_NO_QALIGN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/pool_alloc.c:202:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POOL_NO_QALIGN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/pool_alloc.c:281:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POOL_CLEAR [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/pool_alloc.c:348:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/pool_alloc.c:356:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] rsync-bpc-3.1.3.0/lib/pool_alloc.c:357:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] rsync-bpc-3.1.3.0/lib/pool_alloc.c:347:22: style: Variable 'cur' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/lib/pool_alloc.c:37:12: style: union member 'Anonymous0::p' is never used. [unusedStructMember] rsync-bpc-3.1.3.0/lib/snprintf.c:1179:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chunks [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/lib/snprintf.c:763:19: style: Condition 'maxlen>0' is always true [knownConditionTrueFalse] rsync-bpc-3.1.3.0/lib/snprintf.c:760:13: note: Assuming that condition 'maxlen!=0' is not redundant rsync-bpc-3.1.3.0/lib/snprintf.c:763:19: note: Condition 'maxlen>0' is always true rsync-bpc-3.1.3.0/lib/snprintf.c:1049:5: style: Condition 'caps' is always false [knownConditionTrueFalse] rsync-bpc-3.1.3.0/lib/snprintf.c:985:13: note: Assignment 'caps=0', assigned value is 0 rsync-bpc-3.1.3.0/lib/snprintf.c:1049:5: note: Condition 'caps' is always false rsync-bpc-3.1.3.0/lib/snprintf.c:786:13: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] rsync-bpc-3.1.3.0/lib/snprintf.c:279:2: error: va_list 'args' used before va_start() was called. [va_list_usedBeforeStarted] rsync-bpc-3.1.3.0/lib/snprintf.c:1246:2: error: va_list 'ap2' used before va_start() was called. [va_list_usedBeforeStarted] rsync-bpc-3.1.3.0/lib/snprintf.c:1247:35: error: va_list 'ap2' used before va_start() was called. [va_list_usedBeforeStarted] rsync-bpc-3.1.3.0/lib/snprintf.c:1248:2: error: va_list 'ap2' used before va_start() was called. [va_list_usedBeforeStarted] rsync-bpc-3.1.3.0/lib/sysacls.c:2761:2: error: #error No ACL functions defined for this platform! [preprocessorErrorDirective] rsync-bpc-3.1.3.0/popt/findme.c:14:12: style: Variable 'path' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/popt/popt.c:960:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/popt/popt.c:1225:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/popt/popt.c:414:31: error: Memory leak: argv [memleak] rsync-bpc-3.1.3.0/popt/popt.c:463:2: error: Memory leak: argv [memleak] rsync-bpc-3.1.3.0/popt/popt.c:477:5: error: Memory leak: argv [memleak] rsync-bpc-3.1.3.0/popt/popt.c:627:6: error: Common realloc mistake: 't' nulled but not freed upon failure [memleakOnRealloc] rsync-bpc-3.1.3.0/popt/popt.c:1163:6: error: Common realloc mistake: 'items' nulled but not freed upon failure [memleakOnRealloc] rsync-bpc-3.1.3.0/popt/popt.c:76:13: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/popt/popt.c:104:13: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/popt/popt.c:136:13: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/popt/popt.c:746:13: style: Variable 'localOptString' can be declared as pointer to const [constVariablePointer] rsync-bpc-3.1.3.0/popt/popt.c:139:38: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] rsync-bpc-3.1.3.0/popt/poptconfig.c:104:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/popt/popthelp.c:38:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/popt/popthelp.c:526:15: style: The if condition is the same as the previous if condition [duplicateCondition] rsync-bpc-3.1.3.0/popt/popthelp.c:519:15: note: First condition rsync-bpc-3.1.3.0/popt/popthelp.c:526:15: note: Second condition rsync-bpc-3.1.3.0/popt/popthelp.c:32:23: style: Parameter 'key' can be declared as pointer to const. However it seems that 'displayArgs' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] rsync-bpc-3.1.3.0/popt/popthelp.c:74:45: note: You might need to cast the function pointer here rsync-bpc-3.1.3.0/popt/popthelp.c:32:23: note: Parameter 'key' can be declared as pointer to const rsync-bpc-3.1.3.0/popt/popthelp.c:204:4: style: Variable 'l' is assigned a value that is never used. [unreadVariable] rsync-bpc-3.1.3.0/popt/poptparse.c:91:7: error: Common realloc mistake: 'argv' nulled but not freed upon failure [memleakOnRealloc] rsync-bpc-3.1.3.0/popt/poptparse.c:190:3: error: Common realloc mistake: 'argstr' nulled but not freed upon failure [memleakOnRealloc] rsync-bpc-3.1.3.0/popt/poptparse.c:219:6: error: Common realloc mistake: 'argstr' nulled but not freed upon failure [memleakOnRealloc] rsync-bpc-3.1.3.0/wildtest.c:66:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] rsync-bpc-3.1.3.0/wildtest.c:131:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] diff: head rsync-bpc-3.1.3.0/backuppc/bpc_hashtable.c:372:86: style:inconclusive: Function 'bpc_hashtable_iterate' argument 3 names different: declaration '' definition 'arg1'. [funcArgNamesDifferentUnnamed] head rsync-bpc-3.1.3.0/backuppc/bpc_poolWrite.c:38:76: style: Parameter 'digest' can be declared as pointer to const [constParameterPointer] head rsync-bpc-3.1.3.0/bpc_sysCalls.c:1826:22: style: Variable 'file' can be declared as pointer to const [constVariablePointer] 2.20.0 rsync-bpc-3.1.3.0/popt/popt.c:638:5: error: Common realloc mistake: 't' nulled but not freed upon failure [memleakOnRealloc] DONE