2024-04-15 21:07 ftp://ftp.de.debian.org/debian/pool/main/d/davfs2/davfs2_1.7.0.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 8cd680b (2024-04-15 22:43:04 +0200) count: 211 121 elapsed-time: 10.6 21.4 head-timing-info: old-timing-info: head results: davfs2-1.7.0/src/kernel_interface.c:152:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/kernel_interface.c:192:14: style: Condition '*dev<=0' is always false [knownConditionTrueFalse] davfs2-1.7.0/src/kernel_interface.c:160:14: note: Assuming that condition '*dev<=0' is not redundant davfs2-1.7.0/src/kernel_interface.c:192:14: note: Condition '*dev<=0' is always false davfs2-1.7.0/src/umount_davfs.c:73:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/dav_fuse.c:205:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/dav_fuse.c:483:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/dav_fuse.c:584:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/dav_fuse.c:622:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/dav_fuse.c:658:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/dav_fuse.c:698:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOTSUP [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/dav_fuse.c:752:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/dav_fuse.c:788:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/dav_fuse.c:917:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOSYS [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/dav_fuse.c:960:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/umount_davfs.c:155:18: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] davfs2-1.7.0/src/umount_davfs.c:77:11: style: Variable 'short_options' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/umount_davfs.c:128:11: style: Variable 'umount_command' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/webdav.c:336:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NE_DBG_HTTPPLAIN [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:533:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:643:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EACCES [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:713:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NE_DEPTH_ONE [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:779:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NE_REDIRECT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:907:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EEXIST [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:1045:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EEXIST [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:1174:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:1211:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:1262:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:1319:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NE_FEATURE_SSL [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:1373:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:1417:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:1683:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NE_ABUFSIZ [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:1712:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/webdav.c:1994:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:417:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:638:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:769:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXUSR [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:826:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:840:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:908:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:973:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:999:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1050:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1102:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1169:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1202:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1255:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1317:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1356:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPERM [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1368:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1535:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1553:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1606:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1729:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXUSR [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1846:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOTDIR [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1887:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EISDIR [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:1957:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EISDIR [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:2340:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXUSR [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:2439:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:2548:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:2582:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:2614:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:2661:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EACCES [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:2762:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:2832:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXG [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:3189:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable atime [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:3234:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uid [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:3290:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:3393:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable size [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:3419:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:3455:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:3494:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/cache.c:3736:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/dav_fuse.c:392:17: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] davfs2-1.7.0/src/dav_fuse.c:444:9: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] davfs2-1.7.0/src/dav_fuse.c:472:9: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] davfs2-1.7.0/src/dav_fuse.c:575:9: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] davfs2-1.7.0/src/dav_fuse.c:575:9: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] davfs2-1.7.0/src/dav_fuse.c:742:9: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] davfs2-1.7.0/src/dav_fuse.c:782:9: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] davfs2-1.7.0/src/dav_fuse.c:819:9: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] davfs2-1.7.0/src/dav_fuse.c:876:9: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] davfs2-1.7.0/src/dav_fuse.c:876:9: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] davfs2-1.7.0/src/dav_fuse.c:952:9: warning: %i in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] davfs2-1.7.0/src/dav_fuse.c:152:59: style: Parameter 'keep_on_running' can be declared as pointer to const [constParameterPointer] davfs2-1.7.0/src/dav_fuse.c:463:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/dav_fuse.c:567:28: style: Variable 'ih' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/dav_fuse.c:643:27: style: Variable 'in' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/dav_fuse.c:915:15: style: Variable 'st' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/webdav.c:452:17: style: Condition 'client_cert' is always true [knownConditionTrueFalse] davfs2-1.7.0/src/webdav.c:1068:9: error: Resource leak: fd [resourceLeak] davfs2-1.7.0/src/webdav.c:1071:9: error: Resource leak: fd [resourceLeak] davfs2-1.7.0/src/webdav.c:1605:13: error: Memory leak: ne [memleak] davfs2-1.7.0/src/webdav.c:2064:65: warning:inconclusive: Either the condition 'issuer' is redundant or there is possible null pointer dereference: issuer. [nullPointerRedundantCheck] davfs2-1.7.0/src/webdav.c:2072:9: note: Assuming that condition 'issuer' is not redundant davfs2-1.7.0/src/webdav.c:2064:65: note: Null pointer dereference davfs2-1.7.0/src/webdav.c:2065:66: warning:inconclusive: Either the condition 'subject' is redundant or there is possible null pointer dereference: subject. [nullPointerRedundantCheck] davfs2-1.7.0/src/webdav.c:2073:9: note: Assuming that condition 'subject' is not redundant davfs2-1.7.0/src/webdav.c:2065:66: note: Null pointer dereference davfs2-1.7.0/src/webdav.c:1552:14: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] davfs2-1.7.0/src/webdav.c:1673:12: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'auth' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/webdav.c:1341:49: note: You might need to cast the function pointer here davfs2-1.7.0/src/webdav.c:1673:12: note: Parameter 'userdata' can be declared as pointer to const davfs2-1.7.0/src/webdav.c:1763:15: style: Variable 'es' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/cache.c:465:5: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] davfs2-1.7.0/src/cache.c:922:25: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/cache.c:1065:25: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/cache.c:1382:14: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/cache.c:1395:33: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/cache.c:1399:36: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] davfs2-1.7.0/src/cache.c:1409:14: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] davfs2-1.7.0/src/cache.c:2449:25: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/cache.c:2458:25: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] davfs2-1.7.0/src/cache.c:2760:25: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/cache.c:2775:25: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] davfs2-1.7.0/src/cache.c:2780:14: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] davfs2-1.7.0/src/cache.c:2811:25: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] davfs2-1.7.0/src/cache.c:2843:14: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] davfs2-1.7.0/src/cache.c:3039:21: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] davfs2-1.7.0/src/cache.c:3045:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] davfs2-1.7.0/src/cache.c:3051:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] davfs2-1.7.0/src/cache.c:3058:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] davfs2-1.7.0/src/cache.c:3067:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] davfs2-1.7.0/src/cache.c:732:9: warning: %llu in format string (no. 2) requires 'unsigned long long' but the argument type is 'signed long long'. [invalidPrintfArgType_uint] davfs2-1.7.0/src/cache.c:1573:9: warning: %lli in format string (no. 1) requires 'long long' but the argument type is 'unsigned long long'. [invalidPrintfArgType_sint] davfs2-1.7.0/src/cache.c:2551:9: error: Resource leak: fd [resourceLeak] davfs2-1.7.0/src/cache.c:2585:9: error: Resource leak: fd [resourceLeak] davfs2-1.7.0/src/cache.c:3072:59: error: Null pointer dereference [nullPointer] davfs2-1.7.0/src/cache.c:3073:46: error: Null pointer dereference [nullPointer] davfs2-1.7.0/src/cache.c:3557:33: error: Null pointer dereference [nullPointer] davfs2-1.7.0/src/cache.c:2866:13: style: Checking if unsigned expression 'len' is less than zero. [unsignedLessThanZero] davfs2-1.7.0/src/cache.c:2566:33: style:inconclusive: Function 'create_dir_cache_file' argument 1 names different: declaration 'node' definition 'dir'. [funcArgNamesDifferent] davfs2-1.7.0/src/cache.c:442:33: note: Function 'create_dir_cache_file' argument 1 names different: declaration 'node' definition 'dir'. davfs2-1.7.0/src/cache.c:2566:33: note: Function 'create_dir_cache_file' argument 1 names different: declaration 'node' definition 'dir'. davfs2-1.7.0/src/cache.c:2200:9: style: Local variable 'changed' shadows outer variable [shadowVariable] davfs2-1.7.0/src/cache.c:154:28: note: Shadowed declaration davfs2-1.7.0/src/cache.c:2200:9: note: Shadow variable davfs2-1.7.0/src/cache.c:274:27: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] davfs2-1.7.0/src/cache.c:313:35: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] davfs2-1.7.0/src/cache.c:328:27: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] davfs2-1.7.0/src/cache.c:376:21: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] davfs2-1.7.0/src/cache.c:458:32: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] davfs2-1.7.0/src/cache.c:922:20: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/cache.c:1065:20: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/cache.c:1171:17: style: Variable 'fh' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/cache.c:1395:28: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/cache.c:1399:31: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/cache.c:1549:59: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] davfs2-1.7.0/src/cache.c:1557:17: style: Variable 'fh' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/cache.c:2070:31: style: Parameter 'node' can be declared as pointer to const [constParameterPointer] davfs2-1.7.0/src/cache.c:2449:20: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/cache.c:2458:19: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/cache.c:3039:16: style: Variable 'lt' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/cache.c:3511:22: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'xml_start_date' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/cache.c:2879:33: note: You might need to cast the function pointer here davfs2-1.7.0/src/cache.c:3511:22: note: Parameter 'userdata' can be declared as pointer to const davfs2-1.7.0/src/cache.c:3547:25: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'xml_start_decimal' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/cache.c:2880:33: note: You might need to cast the function pointer here davfs2-1.7.0/src/cache.c:3547:25: note: Parameter 'userdata' can be declared as pointer to const davfs2-1.7.0/src/cache.c:3607:22: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'xml_start_mode' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/cache.c:2882:33: note: You might need to cast the function pointer here davfs2-1.7.0/src/cache.c:3607:22: note: Parameter 'userdata' can be declared as pointer to const davfs2-1.7.0/src/cache.c:3652:22: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'xml_start_root' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/cache.c:2875:33: note: You might need to cast the function pointer here davfs2-1.7.0/src/cache.c:3652:22: note: Parameter 'userdata' can be declared as pointer to const davfs2-1.7.0/src/cache.c:3673:22: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'xml_start_size' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/cache.c:2883:33: note: You might need to cast the function pointer here davfs2-1.7.0/src/cache.c:3673:22: note: Parameter 'userdata' can be declared as pointer to const davfs2-1.7.0/src/cache.c:3695:24: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'xml_start_string' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/cache.c:2888:37: note: You might need to cast the function pointer here davfs2-1.7.0/src/cache.c:3695:24: note: Parameter 'userdata' can be declared as pointer to const davfs2-1.7.0/src/mount_davfs.c:229:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:375:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:407:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:481:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:630:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:685:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:763:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:943:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:1008:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DAV_SYS_CONF_DIR [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:1164:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:1255:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:1412:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:1433:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:1480:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NE_DBG_HTTP [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:1636:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:1731:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:2242:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:2381:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:2610:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROGRAM_NAME [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:2644:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] davfs2-1.7.0/src/mount_davfs.c:405:25: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] davfs2-1.7.0/src/mount_davfs.c:415:29: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] davfs2-1.7.0/src/mount_davfs.c:496:25: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] davfs2-1.7.0/src/mount_davfs.c:510:29: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/mount_davfs.c:573:29: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] davfs2-1.7.0/src/mount_davfs.c:587:29: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/mount_davfs.c:606:33: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] davfs2-1.7.0/src/mount_davfs.c:768:29: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/mount_davfs.c:773:29: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] davfs2-1.7.0/src/mount_davfs.c:786:10: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/mount_davfs.c:791:25: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] davfs2-1.7.0/src/mount_davfs.c:981:29: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/mount_davfs.c:1010:25: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/mount_davfs.c:1649:19: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] davfs2-1.7.0/src/mount_davfs.c:1657:19: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] davfs2-1.7.0/src/mount_davfs.c:1729:29: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] davfs2-1.7.0/src/mount_davfs.c:2338:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] davfs2-1.7.0/src/mount_davfs.c:2363:14: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] davfs2-1.7.0/src/mount_davfs.c:629:19: style: Condition 'is_mounted()' is always false [knownConditionTrueFalse] davfs2-1.7.0/src/mount_davfs.c:629:19: note: Calling function 'is_mounted' returns 0 davfs2-1.7.0/src/mount_davfs.c:629:19: note: Condition 'is_mounted()' is always false davfs2-1.7.0/src/mount_davfs.c:385:9: error: Memory leak: line [memleak] davfs2-1.7.0/src/mount_davfs.c:972:13: warning: Either the condition '!mpoint' is redundant or there is possible null pointer dereference: mpoint. [nullPointerRedundantCheck] davfs2-1.7.0/src/mount_davfs.c:971:13: note: Assuming that condition '!mpoint' is not redundant davfs2-1.7.0/src/mount_davfs.c:972:13: note: Null pointer dereference davfs2-1.7.0/src/mount_davfs.c:972:13: error: Null pointer dereference [nullPointer] davfs2-1.7.0/src/mount_davfs.c:2014:23: style: Variable 'state' is reassigned a value before the old one has been used. [redundantAssignment] davfs2-1.7.0/src/mount_davfs.c:2010:27: note: state is assigned davfs2-1.7.0/src/mount_davfs.c:2014:23: note: state is overwritten davfs2-1.7.0/src/mount_davfs.c:573:23: style: Local variable 'grp' shadows outer variable [shadowVariable] davfs2-1.7.0/src/mount_davfs.c:496:19: note: Shadowed declaration davfs2-1.7.0/src/mount_davfs.c:573:23: note: Shadow variable davfs2-1.7.0/src/mount_davfs.c:606:27: style: Local variable 'grp' shadows outer variable [shadowVariable] davfs2-1.7.0/src/mount_davfs.c:496:19: note: Shadowed declaration davfs2-1.7.0/src/mount_davfs.c:606:27: note: Shadow variable davfs2-1.7.0/src/mount_davfs.c:1115:21: style: Local variable 'st' shadows outer variable [shadowVariable] davfs2-1.7.0/src/mount_davfs.c:1031:17: note: Shadowed declaration davfs2-1.7.0/src/mount_davfs.c:1115:21: note: Shadow variable davfs2-1.7.0/src/mount_davfs.c:403:26: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] davfs2-1.7.0/src/mount_davfs.c:405:19: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:415:24: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:496:19: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:573:23: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:587:24: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:606:27: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:627:31: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] davfs2-1.7.0/src/mount_davfs.c:649:11: style: Variable 'file' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:768:24: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:773:23: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:785:20: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:791:19: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:919:11: style: Variable 'short_options' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:981:24: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:1630:20: style: Variable 'pwd' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:1631:19: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] davfs2-1.7.0/src/mount_davfs.c:2338:11: style: Variable 'np' can be declared as pointer to const [constVariablePointer] diff: head davfs2-1.7.0/src/cache.c:1050:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1102:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1169:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1202:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1255:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1317:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1356:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPERM [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1368:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1535:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1553:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1606:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1729:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXUSR [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1846:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOTDIR [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1887:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EISDIR [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:1957:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EISDIR [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:2340:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXUSR [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:2439:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:2548:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:2582:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:2614:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:2661:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EACCES [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:2762:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:2832:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXG [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:3189:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable atime [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:3234:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uid [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:3290:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:3393:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable size [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:3419:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:3455:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable path [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:3494:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:3511:22: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'xml_start_date' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/cache.c:2879:33: note: You might need to cast the function pointer here davfs2-1.7.0/src/cache.c:3511:22: note: Parameter 'userdata' can be declared as pointer to const head davfs2-1.7.0/src/cache.c:3547:25: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'xml_start_decimal' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/cache.c:2880:33: note: You might need to cast the function pointer here davfs2-1.7.0/src/cache.c:3547:25: note: Parameter 'userdata' can be declared as pointer to const head davfs2-1.7.0/src/cache.c:3607:22: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'xml_start_mode' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/cache.c:2882:33: note: You might need to cast the function pointer here davfs2-1.7.0/src/cache.c:3607:22: note: Parameter 'userdata' can be declared as pointer to const head davfs2-1.7.0/src/cache.c:3652:22: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'xml_start_root' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/cache.c:2875:33: note: You might need to cast the function pointer here davfs2-1.7.0/src/cache.c:3652:22: note: Parameter 'userdata' can be declared as pointer to const head davfs2-1.7.0/src/cache.c:3673:22: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'xml_start_size' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/cache.c:2883:33: note: You might need to cast the function pointer here davfs2-1.7.0/src/cache.c:3673:22: note: Parameter 'userdata' can be declared as pointer to const head davfs2-1.7.0/src/cache.c:3695:24: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'xml_start_string' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] davfs2-1.7.0/src/cache.c:2888:37: note: You might need to cast the function pointer here davfs2-1.7.0/src/cache.c:3695:24: note: Parameter 'userdata' can be declared as pointer to const head davfs2-1.7.0/src/cache.c:3736:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:638:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:769:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXUSR [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:826:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:840:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:908:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:973:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/cache.c:999:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] 2.13.0 davfs2-1.7.0/src/dav_fuse.c:196:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXIT_FAILURE [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/dav_fuse.c:205:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/dav_fuse.c:483:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/dav_fuse.c:584:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/dav_fuse.c:622:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/dav_fuse.c:658:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/dav_fuse.c:698:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOTSUP [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/dav_fuse.c:752:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/dav_fuse.c:788:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/dav_fuse.c:917:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOSYS [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/dav_fuse.c:960:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:1008:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DAV_SYS_CONF_DIR [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:1164:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:1255:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:1412:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:1433:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:1480:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NE_DBG_HTTP [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:1636:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:1731:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:2242:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:2381:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:2610:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROGRAM_NAME [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:2644:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:375:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:385:9: error: Memory leak: line [memleak] head davfs2-1.7.0/src/mount_davfs.c:407:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:481:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:630:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:685:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:763:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/mount_davfs.c:943:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:1045:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EEXIST [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:1174:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:1211:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:1262:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:1319:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NE_FEATURE_SSL [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:1373:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:1417:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:1683:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NE_ABUFSIZ [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:1712:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:1994:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:2064:65: warning:inconclusive: Either the condition 'issuer' is redundant or there is possible null pointer dereference: issuer. [nullPointerRedundantCheck] davfs2-1.7.0/src/webdav.c:2072:9: note: Assuming that condition 'issuer' is not redundant davfs2-1.7.0/src/webdav.c:2064:65: note: Null pointer dereference head davfs2-1.7.0/src/webdav.c:2065:66: warning:inconclusive: Either the condition 'subject' is redundant or there is possible null pointer dereference: subject. [nullPointerRedundantCheck] davfs2-1.7.0/src/webdav.c:2073:9: note: Assuming that condition 'subject' is not redundant davfs2-1.7.0/src/webdav.c:2065:66: note: Null pointer dereference head davfs2-1.7.0/src/webdav.c:533:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:643:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EACCES [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:713:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NE_DEPTH_ONE [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:779:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NE_REDIRECT [valueFlowBailoutIncompleteVar] head davfs2-1.7.0/src/webdav.c:907:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EEXIST [valueFlowBailoutIncompleteVar] DONE