2024-04-25 03:01 ftp://ftp.de.debian.org/debian/pool/main/h/hfsutils/hfsutils_3.2.6.orig.tar.gz 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 -D__GNUC__ --platform=unix64 -j1 platform: Linux-5.15.0-105-generic-x86_64-with-glibc2.35 python: 3.10.12 client-version: 1.3.56 compiler: g++ (Ubuntu 12.3.0-1ubuntu1~22.04) 12.3.0 cppcheck: head 2.14.0 head-info: 94f28a2 (2024-04-24 20:47:54 +0200) count: 218 218 elapsed-time: 14.6 14.2 head-timing-info: old-timing-info: head results: hfsutils-3.2.6/binhex.c:121:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/binhex.c:142:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/binhex.c:375:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/binhex.c:445:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/binhex.c:569:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/binhex.c:590:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/binhex.c:109:7: error: Resource handle 'dupfd' freed twice. [doubleFree] hfsutils-3.2.6/binhex.c:104:10: note: Resource handle 'dupfd' freed twice. hfsutils-3.2.6/binhex.c:109:7: note: Resource handle 'dupfd' freed twice. hfsutils-3.2.6/binhex.c:360:7: error: Resource handle 'dupfd' freed twice. [doubleFree] hfsutils-3.2.6/binhex.c:355:10: note: Resource handle 'dupfd' freed twice. hfsutils-3.2.6/binhex.c:360:7: note: Resource handle 'dupfd' freed twice. hfsutils-3.2.6/binhex.c:545:18: warning: Uninitialized variable: ptr [uninitvar] hfsutils-3.2.6/binhex.c:561:15: note: Calling function 'bh_read', 1st argument 'word' value is hfsutils-3.2.6/binhex.c:511:34: note: Assignment 'data=buf', assigned value is hfsutils-3.2.6/binhex.c:512:30: note: Assignment 'ptr=data', assigned value is hfsutils-3.2.6/binhex.c:515:13: note: Assuming condition is false hfsutils-3.2.6/binhex.c:545:18: note: Uninitialized variable: ptr hfsutils-3.2.6/charset.c:157:9: style: Local variable 'latin1' shadows outer variable [shadowVariable] hfsutils-3.2.6/charset.c:99:15: note: Shadowed declaration hfsutils-3.2.6/charset.c:157:9: note: Shadow variable hfsutils-3.2.6/charset.c:235:9: style: Local variable 'macroman' shadows outer variable [shadowVariable] hfsutils-3.2.6/charset.c:32:6: note: Shadowed declaration hfsutils-3.2.6/charset.c:235:9: note: Shadow variable hfsutils-3.2.6/copyin.c:72:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_BLOCKSZ [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyin.c:122:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hfs_error [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyin.c:148:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_BLOCKSZ [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyin.c:200:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hfs_error [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyin.c:226:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_BLOCKSZ [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyin.c:280:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_BLOCKSZ [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyin.c:321:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_MAX_FLEN [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyin.c:394:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_ISDIR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyin.c:443:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hfs_error [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyin.c:485:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyin.c:588:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_MAX_FLEN [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyin.c:654:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_MAX_FLEN [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyout.c:67:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_BLOCKSZ [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyout.c:136:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hfs_error [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyout.c:201:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_BLOCKSZ [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyout.c:252:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hfs_error [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyout.c:342:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_BLOCKSZ [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyout.c:396:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_BLOCKSZ [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyout.c:438:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_MAX_FLEN [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyout.c:502:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/copyout.c:567:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hfs_error [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/darray.c:78:32: style: Parameter 'array' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/darray.c:96:40: style: Parameter 'elem' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/dstring.c:92:28: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/dstring.c:101:26: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/glob.c:82:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hfs_charorder [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/glob.c:246:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_FNDR_ISINVISIBLE [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/glob.c:291:14: style: Local variable 'ptr' shadows outer variable [shadowVariable] hfsutils-3.2.6/glob.c:142:33: note: Shadowed declaration hfsutils-3.2.6/glob.c:291:14: note: Shadow variable hfsutils-3.2.6/glob.c:291:20: style: Local variable 'rem' shadows outer argument [shadowArgument] hfsutils-3.2.6/glob.c:138:67: note: Shadowed declaration hfsutils-3.2.6/glob.c:291:20: note: Shadow variable hfsutils-3.2.6/hattrib.c:42:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hattrib.c:78:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hcd.c:44:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_MAX_VLEN [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hcopy.c:57:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cpi_macb [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hcopy.c:94:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_ISDIR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hcopy.c:185:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hfs_error [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hcopy.c:245:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hcopy.c:269:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hcopy.c:315:10: error: Deallocation of an auto-variable ([) results in undefined behaviour. [autovarInvalidDeallocation] hfsutils-3.2.6/hcopy.c:297:15: note: Address of variable taken here. hfsutils-3.2.6/hcopy.c:315:10: note: Deallocating memory that was not dynamically allocated hfsutils-3.2.6/hcwd.c:98:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hcwd.c:221:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hcwd.c:167:6: error: Memory leak: entry.path [memleak] hfsutils-3.2.6/hcwd.c:266:5: error: Memory leak: new.path [memleak] hfsutils-3.2.6/hcwd.c:266:5: error: Memory leak: new.cwd [memleak] hfsutils-3.2.6/hcwd.c:53:22: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/hdel.c:47:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hformat.c:52:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hformat.c:67:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_MODE_ANY [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hformat.c:93:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsck/ck_mdb.c:53:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_ATRB_BUSY [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsck/ck_mdb.c:55:22: style: Condition 'flag' is always false [knownConditionTrueFalse] hfsutils-3.2.6/hfsck/ck_mdb.c:52:14: note: Assignment 'flag=0', assigned value is 0 hfsutils-3.2.6/hfsck/ck_mdb.c:55:22: note: Condition 'flag' is always false hfsutils-3.2.6/hfsck/ck_volume.c:32:23: style: Parameter 'vol' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/hfsck/main.c:46:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsck/main.c:74:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hfsutils_license [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsck/main.c:44:17: style: Parameter 'argv' can be declared as const array [constParameter] hfsutils-3.2.6/hfsck/main.c:187:7: warning: Uninitialized variable: result [uninitvar] hfsutils-3.2.6/hfsck/main.c:171:7: note: Assuming condition is false hfsutils-3.2.6/hfsck/main.c:187:7: note: Uninitialized variable: result hfsutils-3.2.6/hfsck/util.c:137:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsck/util.c:52:29: style: Parameter 'ext' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/hfsck/util.c:100:28: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/hfssh.c:42:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_GLOBAL_ONLY [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsutil.c:76:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hattrib_main [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsutil.c:159:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hfs_error [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsutil.c:173:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hfs_error [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsutil.c:190:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsutil.c:247:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_ISLOCKED [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsutil.c:265:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsutil.c:278:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_MAX_FLEN [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsutil.c:372:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hfsutil.c:244:31: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/hfswish.c:49:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hls.c:102:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hls.c:343:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_ISDIR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hls.c:428:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_ISDIR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hls.c:612:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hls.c:704:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hls.c:809:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hls.c:875:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hls.c:838:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] hfsutils-3.2.6/hmkdir.c:46:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hmount.c:48:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hpwd.c:43:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hpwd.c:39:13: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] hfsutils-3.2.6/hrename.c:46:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_ISDIR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hrename.c:80:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hrmdir.c:46:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/humount.c:45:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hvol.c:50:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_MODE_ANY [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hvol.c:74:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/hvol.c:91:14: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] hfsutils-3.2.6/libhfs/block.c:51:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/block.c:597:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/block.c:635:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/block.c:657:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/block.c:688:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/block.c:726:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/block.c:746:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/block.c:776:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/block.c:661:15: style: Variable 'b' can be declared as pointer to const [constVariablePointer] hfsutils-3.2.6/libhfs/block.c:173:39: error: Uninitialized variable: bnum [uninitvar] hfsutils-3.2.6/libhfs/block.c:231:39: error: Uninitialized variable: bnum [uninitvar] hfsutils-3.2.6/libhfs/btree.c:58:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/btree.c:109:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/btree.c:158:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/btree.c:274:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/btree.c:350:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/btree.c:419:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/btree.c:552:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/btree.c:611:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/btree.c:660:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/file.c:231:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/file.c:367:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/file.c:202:47: style: Parameter 'blocks' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/libhfs/hfs.c:59:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:83:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:125:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:359:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:401:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOTDIR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:488:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:554:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:670:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:741:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:859:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EROFS [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:937:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EROFS [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:985:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:1073:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EROFS [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:1090:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EROFS [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:1121:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EEXIST [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:1152:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOTDIR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:1202:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EISDIR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:1284:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:1437:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:1629:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/hfs.c:246:35: style: Condition 'hfs_closedir(vol->dirs)==-1' is always false [knownConditionTrueFalse] hfsutils-3.2.6/libhfs/hfs.c:246:23: note: Calling function 'hfs_closedir' returns 0 hfsutils-3.2.6/libhfs/hfs.c:246:35: note: Condition 'hfs_closedir(vol->dirs)==-1' is always false hfsutils-3.2.6/libhfs/hfs.c:353:42: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/libhfs/hfs.c:791:26: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/libhfs/hfs.c:1767:40: warning: Uninitialized variable: extent.xdrStABN [uninitvar] hfsutils-3.2.6/libhfs/medium.c:82:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/medium.c:166:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/medium.c:221:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/node.c:78:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/os/unix.c:62:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/os/unix.c:108:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/os/unix.c:127:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/os/unix.c:150:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_BLOCKSZ_BITS [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/os/unix.c:170:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_BLOCKSZ_BITS [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/os/unix.c:190:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_BLOCKSZ_BITS [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/os/unix.c:90:1: style: Label 'fail' is not used. [unusedLabel] hfsutils-3.2.6/libhfs/os/unix.c:112:1: style: Label 'fail' is not used. [unusedLabel] hfsutils-3.2.6/libhfs/os/unix.c:132:1: style: Label 'fail' is not used. [unusedLabel] hfsutils-3.2.6/libhfs/os/unix.c:157:1: style: Label 'fail' is not used. [unusedLabel] hfsutils-3.2.6/libhfs/os/unix.c:177:1: style: Label 'fail' is not used. [unusedLabel] hfsutils-3.2.6/libhfs/os/unix.c:197:1: style: Label 'fail' is not used. [unusedLabel] hfsutils-3.2.6/libhfs/record.c:378:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xdrStABN [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/record.c:396:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xdrStABN [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/volume.c:99:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/volume.c:262:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/volume.c:293:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/volume.c:377:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/volume.c:579:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/volume.c:633:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOSPC [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/volume.c:768:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/volume.c:946:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/volume.c:1037:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xdrStABN [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/libhfs/volume.c:255:25: warning: Uninitialized variable: map.pmPyPartStart [uninitvar] hfsutils-3.2.6/libhfs/volume.c:248:18: note: Assuming condition is false hfsutils-3.2.6/libhfs/volume.c:255:25: note: Uninitialized variable: map.pmPyPartStart hfsutils-3.2.6/librsrc/main.c:42:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/librsrc/main.c:17:3: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] hfsutils-3.2.6/librsrc/rsrc.c:50:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/librsrc/rsrc.c:148:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/librsrc/rsrc.c:223:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/librsrc/rsrc.c:281:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/librsrc/rsrc.c:419:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/librsrc/rsrc.c:455:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOMEM [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/librsrc/rsrc.c:132:31: style: Parameter 'map' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/librsrc/rsrc.c:160:31: style: Parameter 'rfile' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/librsrc/rsrc.c:184:29: style: Parameter 'rfile' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/librsrc/rsrc.c:246:27: style: Parameter 'map' can be declared as pointer to const. However it seems that 'compare_name' is a callback function, if 'map' is declared with const you might also need to cast function pointer(s). [constParameterCallback] hfsutils-3.2.6/librsrc/rsrc.c:392:33: note: You might need to cast the function pointer here hfsutils-3.2.6/librsrc/rsrc.c:246:27: note: Parameter 'map' can be declared as pointer to const hfsutils-3.2.6/librsrc/rsrc.c:324:28: style: Parameter 'rsrc' can be declared as pointer to const [constParameterPointer] hfsutils-3.2.6/librsrc/rsrc.c:437:15: style: Variable 'rsrc' can be declared as pointer to const [constVariablePointer] hfsutils-3.2.6/librsrc/rsrc.c:355:9: style: Variable 'offs1' is assigned a value that is never used. [unreadVariable] hfsutils-3.2.6/librsrc/rsrc.c:358:9: style: Variable 'offs2' is assigned a value that is never used. [unreadVariable] hfsutils-3.2.6/linux/fsck.c:22:26: style: Parameter 'argv' can be declared as const array [constParameter] hfsutils-3.2.6/linux/hdump.c:37:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_OPT_NOCACHE [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/linux/kernel/module.c:48:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MOD_INC_USE_COUNT [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/linux/kernel/module.c:70:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLOCK_SIZE [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/linux/kernel/module.c:46:9: style: Variable 'opts' can be declared as pointer to const [constVariablePointer] hfsutils-3.2.6/linux/kernel/module.c:46:14: style: Variable 'opts' is assigned a value that is never used. [unreadVariable] hfsutils-3.2.6/linux/mkfs.c:22:26: style: Parameter 'argv' can be declared as const array [constParameter] hfsutils-3.2.6/tclhfs.c:99:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hfs_error [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:142:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_ISDIR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:213:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_ISDIR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:288:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:471:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HFS_BLOCKSZ [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:531:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_OK [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:567:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:676:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:711:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:825:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:1168:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:1459:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ERROR [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:1478:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCL_ONE_WORD_KEYS [valueFlowBailoutIncompleteVar] hfsutils-3.2.6/tclhfs.c:305:4: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] hfsutils-3.2.6/tclhfs.c:366:4: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] hfsutils-3.2.6/tclhfs.c:408:4: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] hfsutils-3.2.6/tclhfs.c:445:4: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] hfsutils-3.2.6/tclhfs.c:951:4: warning: %lu in format string (no. 1) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] hfsutils-3.2.6/tclhfs.c:554:18: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] hfsutils-3.2.6/tclhfs.c:1177:22: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] hfsutils-3.2.6/tclhfs.c:1232:13: style: Variable 'entry' is assigned a value that is never used. [unreadVariable] diff: DONE