2026-05-16 17:15 ftp://ftp.de.debian.org/debian/pool/main/s/seafile/seafile_9.0.18.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=openssl --library=libcurl --library=sqlite3 --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 -j96 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.4.0 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0 cppcheck: head 2.20.0 head-info: d901661 (2026-05-16 19:12:58 +0200) count: 873 664 elapsed-time: 1.1 0.4 head-timing-info: old-timing-info: head results: seafile-9.0.18/common/curl-init.c:17:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CRYPTO_LOCK [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/block-mgr.c:238:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/cdc/cdc.c:49:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/mq-mgr.c:18:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_async_queue_unref [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/cdc/cdc.c:121:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/mq-mgr.c:27:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable json_decref [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/cdc/cdc.c:237:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/block-backend-fs.c:71:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/block-backend-fs.c:146:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/block-backend-fs.c:178:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/block-backend-fs.c:227:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/block-backend-fs.c:332:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/block-backend.c:27:9: error: Memory leak: block_dir [memleak] seafile-9.0.18/common/block-backend.c:55:5: error: Memory leak: backend [memleak] seafile-9.0.18/common/log.c:121:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_LEVEL_DEBUG [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/log.c:133:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_LOG_FLAG_FATAL [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/log.c:169:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/log.c:349:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/seafile-error.c:217:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable N_SYNC_ERROR_ID [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/log.c:360:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/seafile-error.c:225:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable N_SYNC_ERROR_ID [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/set-perm.c:303:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/index/index.h:362:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DT_REG [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/cdc/rabin-checksum.c:136:30: style: Argument 'poly' shadows outer variable [shadowVariable] seafile-9.0.18/common/cdc/rabin-checksum.c:38:18: note: Shadowed variable seafile-9.0.18/common/cdc/rabin-checksum.c:136:30: note: Shadow argument seafile-9.0.18/common/cdc/rabin-checksum.c:166:35: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/block-mgr.c:163:41: style:inconclusive: Function 'seaf_block_manager_foreach_block' argument 5 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/block-mgr.c:54:44: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/cdc/rabin-checksum.c:100:28: error: Shifting signed 64-bit value by 63 bits is undefined behaviour [shiftTooManyBitsSigned] seafile-9.0.18/common/cdc/rabin-checksum.c:114:28: error: Shifting signed 64-bit value by 63 bits is undefined behaviour [shiftTooManyBitsSigned] seafile-9.0.18/common/cdc/rabin-checksum.c:113:19: note: Assuming that condition 'i<64' is not redundant seafile-9.0.18/common/cdc/rabin-checksum.c:114:28: note: Shift seafile-9.0.18/common/obj-store.c:116:35: style:inconclusive: Function 'seaf_obj_store_foreach_obj' argument 5 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/obj-store.c:125:38: style:inconclusive: Function 'seaf_obj_store_copy_obj' argument 2 names different: declaration 'src_store_id' definition 'src_repo_id'. [funcArgNamesDifferent] seafile-9.0.18/common/obj-store.h:64:38: note: Function 'seaf_obj_store_copy_obj' argument 2 names different: declaration 'src_store_id' definition 'src_repo_id'. seafile-9.0.18/common/obj-store.c:125:38: note: Function 'seaf_obj_store_copy_obj' argument 2 names different: declaration 'src_store_id' definition 'src_repo_id'. seafile-9.0.18/common/obj-store.c:127:38: style:inconclusive: Function 'seaf_obj_store_copy_obj' argument 4 names different: declaration 'dst_store_id' definition 'dst_repo_id'. [funcArgNamesDifferent] seafile-9.0.18/common/obj-store.h:66:38: note: Function 'seaf_obj_store_copy_obj' argument 4 names different: declaration 'dst_store_id' definition 'dst_repo_id'. seafile-9.0.18/common/obj-store.c:127:38: note: Function 'seaf_obj_store_copy_obj' argument 4 names different: declaration 'dst_store_id' definition 'dst_repo_id'. seafile-9.0.18/common/obj-store.c:21:37: style: Parameter 'seaf' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/obj-store.c:39:36: style: Parameter 'obj_store' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/obj-store.c:41:37: style: Parameter 'ev_mgr' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/obj-backend-fs.c:232:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/obj-backend-fs.c:274:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/obj-backend-fs.c:431:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/seafile-error.c:6:9: style: struct member 'SyncErrorInfo::error_id' is never used. [unusedStructMember] seafile-9.0.18/msi/custom/custom.c:20:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_OK [valueFlowBailoutIncompleteVar] seafile-9.0.18/msi/custom/custom.c:32:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KEY_READ [valueFlowBailoutIncompleteVar] seafile-9.0.18/msi/custom/custom.c:75:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HKEY_LOCAL_MACHINE [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/log.c:66:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] seafile-9.0.18/common/log.c:98:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] seafile-9.0.18/common/log.c:302:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] seafile-9.0.18/common/log.c:261:9: error: Dereferencing 'eventfile' after it is deallocated / released [deallocuse] seafile-9.0.18/common/index/name-hash.c:162:102: style:inconclusive: Function 'index_name_exists' argument 4 names different: declaration 'igncase' definition 'icase'. [funcArgNamesDifferent] seafile-9.0.18/common/index/index.h:562:43: note: Function 'index_name_exists' argument 4 names different: declaration 'igncase' definition 'icase'. seafile-9.0.18/common/index/name-hash.c:162:102: note: Function 'index_name_exists' argument 4 names different: declaration 'igncase' definition 'icase'. seafile-9.0.18/common/index/index.h:311:82: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/index/index.h:354:66: style: Parameter 'ce' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/password-hash.c:164:34: style:inconclusive: Function 'pwd_hash_derive_key' argument 3 names different: declaration 'repo_salt' definition 'salt'. [funcArgNamesDifferent] seafile-9.0.18/common/password-hash.h:19:34: note: Function 'pwd_hash_derive_key' argument 3 names different: declaration 'repo_salt' definition 'salt'. seafile-9.0.18/common/password-hash.c:164:34: note: Function 'pwd_hash_derive_key' argument 3 names different: declaration 'repo_salt' definition 'salt'. seafile-9.0.18/daemon/seaf-daemon.c:560:45: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] seafile-9.0.18/common/password-hash.c:51:41: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/password-hash.c:99:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/branch-mgr.c:185:69: style: Parameter 'branch' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/branch-mgr.c:283:72: style: Parameter 'branch' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/branch-mgr.c:457:15: style: Variable 'commit_id' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/branch-mgr.c:586:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/branch-mgr.c:587:11: style: Variable 'commit_id' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/log.c:130:31: style:inconclusive: Function 'seafile_log_init' argument 1 names different: declaration 'logfile' definition '_logfile'. [funcArgNamesDifferent] seafile-9.0.18/common/log.h:23:35: note: Function 'seafile_log_init' argument 1 names different: declaration 'logfile' definition '_logfile'. seafile-9.0.18/common/log.c:130:31: note: Function 'seafile_log_init' argument 1 names different: declaration 'logfile' definition '_logfile'. seafile-9.0.18/common/log.c:294:35: style:inconclusive: Function 'seafile_event_message' argument 1 names different: declaration 'msg' definition 'message'. [funcArgNamesDifferent] seafile-9.0.18/common/log.h:69:41: note: Function 'seafile_event_message' argument 1 names different: declaration 'msg' definition 'message'. seafile-9.0.18/common/log.c:294:35: note: Function 'seafile_event_message' argument 1 names different: declaration 'msg' definition 'message'. seafile-9.0.18/common/log.c:58:16: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/log.c:90:16: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/log.c:297:16: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/msi/custom/custom.c:50:5: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] seafile-9.0.18/msi/custom/custom.c:49:18: note: Assuming allocation function fails seafile-9.0.18/msi/custom/custom.c:49:18: note: Assignment 'buf=malloc(len+1)', assigned value is 0 seafile-9.0.18/msi/custom/custom.c:50:5: note: Null pointer dereference seafile-9.0.18/msi/custom/custom.c:85:13: warning: If memory allocation fails, then there is a possible null pointer dereference: path2 [nullPointerOutOfMemory] seafile-9.0.18/msi/custom/custom.c:84:26: note: Assuming allocation function fails seafile-9.0.18/msi/custom/custom.c:84:26: note: Assignment 'path2=malloc(n+3)', assigned value is 0 seafile-9.0.18/msi/custom/custom.c:85:13: note: Null pointer dereference seafile-9.0.18/msi/custom/custom.c:86:5: warning: If memory allocation fails, then there is a possible null pointer dereference: path2 [nullPointerOutOfMemory] seafile-9.0.18/msi/custom/custom.c:84:26: note: Assuming allocation function fails seafile-9.0.18/msi/custom/custom.c:84:26: note: Assignment 'path2=malloc(n+3)', assigned value is 0 seafile-9.0.18/msi/custom/custom.c:86:5: note: Null pointer dereference seafile-9.0.18/msi/custom/custom.c:87:5: warning: If memory allocation fails, then there is a possible null pointer dereference: path2 [nullPointerOutOfMemory] seafile-9.0.18/msi/custom/custom.c:84:26: note: Assuming allocation function fails seafile-9.0.18/msi/custom/custom.c:84:26: note: Assignment 'path2=malloc(n+3)', assigned value is 0 seafile-9.0.18/msi/custom/custom.c:87:5: note: Null pointer dereference seafile-9.0.18/msi/custom/custom.c:88:5: warning: If memory allocation fails, then there is a possible null pointer dereference: path2 [nullPointerOutOfMemory] seafile-9.0.18/msi/custom/custom.c:84:26: note: Assuming allocation function fails seafile-9.0.18/msi/custom/custom.c:84:26: note: Assignment 'path2=malloc(n+3)', assigned value is 0 seafile-9.0.18/msi/custom/custom.c:88:5: note: Null pointer dereference seafile-9.0.18/common/index/hash.c:84:84: style:inconclusive: Function 'for_each_hash' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/daemon/notif-mgr.c:370:29: error: There is an unknown macro here somewhere. Configuration is required. If SEAFILE_CLIENT_VERSION is a macro then please configure it. [unknownMacro] seafile-9.0.18/common/cdc/cdc.c:67:34: style: Checking if unsigned expression 'file_descr->block_min_sz' is less than zero. [unsignedLessThanZero] seafile-9.0.18/common/cdc/cdc.c:69:34: style: Checking if unsigned expression 'file_descr->block_max_sz' is less than zero. [unsignedLessThanZero] seafile-9.0.18/common/cdc/cdc.c:71:30: style: Checking if unsigned expression 'file_descr->block_sz' is less than zero. [unsignedLessThanZero] seafile-9.0.18/lib/db.c:116:60: style:inconclusive: Function 'sqlite_foreach_selected_row' argument 4 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/lib/db.c:76:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/db.c:83:11: style: Variable 'sql' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/commit-mgr.c:41:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/commit-mgr.c:220:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ev_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/commit-mgr.c:351:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable commit_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/vc-common.c:50:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable commit_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/vc-common.c:175:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable commit_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/vc-common.c:281:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable commit_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/vc-common.c:331:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable commit_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/vc-common.c:441:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable commit_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/vc-common.c:509:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable commit_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/change-set.c:630:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/common/index/cache-tree.c:213:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/obj-backend-fs.c:74:5: warning: Return value of function g_file_get_contents() is not used. [ignoredReturnValue] seafile-9.0.18/common/obj-backend-fs.c:146:1: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] seafile-9.0.18/common/obj-backend-fs.c:221:1: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] seafile-9.0.18/daemon/cevent.c:51:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/filelock-mgr.c:144:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/filelock-mgr.c:302:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/filelock-mgr.c:303:23: debug: Scope::checkVariable found variable 'new_val' with varid 0. [varid0] seafile-9.0.18/common/obj-backend-fs.c:31:21: style: Parameter 'priv' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/obj-backend-fs.c:295:29: style: Parameter 'data' can be declared as pointer to const. However it seems that 'obj_backend_fs_write' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/common/obj-backend-fs.c:534:19: note: You might need to cast the function pointer here seafile-9.0.18/common/obj-backend-fs.c:295:29: note: Parameter 'data' can be declared as pointer to const seafile-9.0.18/common/obj-backend-fs.c:363:13: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/obj-backend-fs.c:461:13: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/block-backend-fs.c:116:45: style: Parameter 'bend' can be declared as pointer to const. However it seems that 'block_backend_fs_close_block' is a callback function, if 'bend' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/common/block-backend-fs.c:498:25: note: You might need to cast the function pointer here seafile-9.0.18/common/block-backend-fs.c:116:45: note: Parameter 'bend' can be declared as pointer to const seafile-9.0.18/common/block-backend-fs.c:117:42: style: Parameter 'handle' can be declared as pointer to const. However it seems that 'block_backend_fs_close_block' is a callback function, if 'handle' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/common/block-backend-fs.c:498:25: note: You might need to cast the function pointer here seafile-9.0.18/common/block-backend-fs.c:117:42: note: Parameter 'handle' can be declared as pointer to const seafile-9.0.18/common/block-backend-fs.c:264:13: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/block-backend-fs.c:362:13: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/block-backend-fs.c:420:13: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/block-backend-fs.c:452:13: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/job-mgr.c:68:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/job-mgr.c:79:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/job-mgr.c:96:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-macos.c:596:23: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/wt-monitor-macos.c:643:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/wt-monitor-linux.c:468:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/wt-monitor-linux.c:644:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/wt-monitor-linux.c:713:23: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/wt-monitor-linux.c:762:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/wt-monitor-win32.c:765:23: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/wt-monitor-win32.c:817:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/wt-monitor.c:19:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor.c:50:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/cevent.c:41:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] seafile-9.0.18/daemon/job-mgr.c:133:48: style:inconclusive: Function 'seaf_job_manager_schedule_job' argument 3 names different: declaration '' definition 'done_func'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/daemon/job-mgr.c:134:38: style:inconclusive: Function 'seaf_job_manager_schedule_job' argument 4 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/lib/net.c:91:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/net.c:122:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/net.c:156:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AI_PASSIVE [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/net.c:251:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_SETFL [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/net.c:286:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/net.c:337:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/timer.c:38:24: style: Variable 'timer->in_callback' is reassigned a value before the old one has been used. [redundantAssignment] seafile-9.0.18/daemon/timer.c:36:24: note: timer->in_callback is assigned seafile-9.0.18/daemon/timer.c:38:24: note: timer->in_callback is overwritten seafile-9.0.18/lib/net.c:385:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/net.c:445:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/net.c:482:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_IP [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/net.c:598:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in_addr [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/net.c:666:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_DGRAM [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/net.c:732:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/cevent.c:63:65: style:inconclusive: Function 'cevent_manager_register' argument 3 names different: declaration '' definition 'handler_data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/daemon/cevent.c:92:33: style:inconclusive: Function 'cevent_manager_add_event' argument 3 names different: declaration 'event_data' definition 'data'. [funcArgNamesDifferent] seafile-9.0.18/daemon/cevent.h:54:38: note: Function 'cevent_manager_add_event' argument 3 names different: declaration 'event_data' definition 'data'. seafile-9.0.18/daemon/cevent.c:92:33: note: Function 'cevent_manager_add_event' argument 3 names different: declaration 'event_data' definition 'data'. seafile-9.0.18/daemon/timer.c:47:30: style:inconclusive: Function 'seaf_timer_free' argument 1 names different: declaration 'timer' definition 'ptimer'. [funcArgNamesDifferent] seafile-9.0.18/daemon/timer.h:25:35: note: Function 'seaf_timer_free' argument 1 names different: declaration 'timer' definition 'ptimer'. seafile-9.0.18/daemon/timer.c:47:30: note: Function 'seaf_timer_free' argument 1 names different: declaration 'timer' definition 'ptimer'. seafile-9.0.18/daemon/timer.c:78:33: style:inconclusive: Function 'seaf_timer_new' argument 2 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/daemon/timer.c:79:33: style:inconclusive: Function 'seaf_timer_new' argument 3 names different: declaration '' definition 'interval_milliseconds'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/daemon/clone-mgr.c:558:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/clone-mgr.c:766:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/clone-mgr.c:957:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/seafile-session.c:59:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_SIGNAL_RUN_LAST [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/seafile-session.c:267:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/seafile-session.c:327:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_REGULAR [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/task.c:424:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable get_property [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/task.c:462:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/task.c:719:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable get_property [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/task.c:753:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/vc-utils.c:52:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CE_REMOVE [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/vc-utils.c:143:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/vc-utils.c:197:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/vc-utils.c:295:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seafile_write_chunk [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/vc-utils.c:400:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/filelock-mgr.c:42:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_hash_table_destroy [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/filelock-mgr.c:144:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/filelock-mgr.c:302:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/filelock-mgr.c:400:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/filelock-mgr.c:522:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/filelock-mgr.c:582:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/filelock-mgr.c:647:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/change-set.c:327:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EMPTY_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/change-set.c:630:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/change-set.c:719:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EMPTY_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-macos.c:99:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-macos.c:128:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-macos.c:175:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-macos.c:226:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_NORMALIZE_NFC [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-macos.c:290:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_NORMALIZE_NFC [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-macos.c:433:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_NORMALIZE_NFD [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-macos.c:493:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kCFFileDescriptorReadCallBack [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-macos.c:514:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kCFFileDescriptorReadCallBack [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-macos.c:596:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-macos.c:643:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/seafile-crypt.c:264:9: error: Memory leak: buf [memleak] seafile-9.0.18/daemon/wt-monitor-win32.c:219:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_NOTIFY_CHANGE_FILE_NAME [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-win32.c:261:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OVERLAPPED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-win32.c:385:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_ACTION_RENAMED_OLD_NAME [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-win32.c:475:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_ACTION_RENAMED_OLD_NAME [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-win32.c:521:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PFILE_NOTIFY_INFORMATION [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-win32.c:566:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-win32.c:644:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_SHARE_READ [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-win32.c:765:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-win32.c:817:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/seafile-crypt.c:200:29: warning: Function 'seafile_generate_magic' argument order different: declaration 'version, repo_id, repo_salt, passwd, magic' definition 'version, repo_id, passwd, repo_salt, magic' [funcArgOrderDifferent] seafile-9.0.18/common/seafile-crypt.h:63:29: note: Function 'seafile_generate_magic' argument order different: declaration 'version, repo_id, repo_salt, passwd, magic' definition 'version, repo_id, passwd, repo_salt, magic' seafile-9.0.18/common/seafile-crypt.c:200:29: note: Function 'seafile_generate_magic' argument order different: declaration 'version, repo_id, repo_salt, passwd, magic' definition 'version, repo_id, passwd, repo_salt, magic' seafile-9.0.18/common/rpc-service.c:38:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seaf [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:104:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seaf [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:110:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seaf [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:116:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seaf [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/seafile-crypt.c:38:48: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/rpc-service.c:124:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable seaf [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/seafile-crypt.c:38:68: style: Parameter 'iv' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/rpc-service.c:140:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable upload_limit [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/seafile-crypt.c:544:32: style: Parameter 'crypt' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/rpc-service.c:151:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable download_limit [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:162:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:174:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clone_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:196:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:238:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:267:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clone_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:278:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clone_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:299:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:317:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HTTP_TASK_TYPE_DOWNLOAD [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:354:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable http_tx_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:364:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable last_sent_bytes [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:370:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable last_recv_bytes [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:377:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repo_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:441:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:471:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:492:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:504:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:522:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sync_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:528:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sync_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:533:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sync_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:547:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:579:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:611:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:638:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mq_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:645:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:662:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:675:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repo_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:681:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repo_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:687:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repo_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:703:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:724:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable started [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:758:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable clone_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:775:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:806:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:841:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:867:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:896:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:965:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_BAD_ARGS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/rpc-service.c:1029:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sync_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/diff-simple.c:77:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/diff-simple.c:104:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mode [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/diff-simple.c:166:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable entries [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/diff-simple.c:235:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fs_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-linux.c:220:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IN_MOVED_FROM [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/diff-simple.c:338:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repo_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-linux.c:289:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IN_MODIFY [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/diff-simple.c:462:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable repo_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-linux.c:329:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IN_IGNORED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-linux.c:411:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FIONREAD [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-linux.c:468:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-linux.c:529:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-linux.c:596:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-linux.c:644:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-linux.c:713:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-linux.c:762:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/http-tx-mgr.c:774:65: error: There is an unknown macro here somewhere. Configuration is required. If SEAFILE_CLIENT_VERSION is a macro then please configure it. [unknownMacro] seafile-9.0.18/daemon/sync-mgr.c:2275:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/sync-mgr.c:2425:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/sync-mgr.c:3118:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/sync-mgr.c:3144:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/sync-mgr.c:3182:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/seafile-session.c:143:33: style:inconclusive: Function 'seafile_session_new' argument 3 names different: declaration 'config_dir' definition 'ccnet_dir'. [funcArgNamesDifferent] seafile-9.0.18/daemon/seafile-session.h:112:33: note: Function 'seafile_session_new' argument 3 names different: declaration 'config_dir' definition 'ccnet_dir'. seafile-9.0.18/daemon/seafile-session.c:143:33: note: Function 'seafile_session_new' argument 3 names different: declaration 'config_dir' definition 'ccnet_dir'. seafile-9.0.18/daemon/seafile-session.c:258:39: style: Parameter 'session' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/index/cache-tree.c:22:5: warning: If memory allocation fails, then there is a possible null pointer dereference: it [nullPointerOutOfMemory] seafile-9.0.18/common/index/cache-tree.c:21:35: note: Assuming allocation function fails seafile-9.0.18/common/index/cache-tree.c:21:35: note: Assignment 'it=calloc(1,sizeof(struct cache_tree))', assigned value is 0 seafile-9.0.18/common/index/cache-tree.c:22:5: note: Null pointer dereference seafile-9.0.18/common/index/cache-tree.c:95:5: warning: If memory allocation fails, then there is a possible null pointer dereference: down [nullPointerOutOfMemory] seafile-9.0.18/common/index/cache-tree.c:94:18: note: Assuming allocation function fails seafile-9.0.18/common/index/cache-tree.c:94:18: note: Assignment 'down=malloc(sizeof(*down)+pathlen+1)', assigned value is 0 seafile-9.0.18/common/index/cache-tree.c:95:5: note: Null pointer dereference seafile-9.0.18/common/index/cache-tree.c:96:5: warning: If memory allocation fails, then there is a possible null pointer dereference: down [nullPointerOutOfMemory] seafile-9.0.18/common/index/cache-tree.c:94:18: note: Assuming allocation function fails seafile-9.0.18/common/index/cache-tree.c:94:18: note: Assignment 'down=malloc(sizeof(*down)+pathlen+1)', assigned value is 0 seafile-9.0.18/common/index/cache-tree.c:96:5: note: Null pointer dereference seafile-9.0.18/common/index/cache-tree.c:97:12: warning: If memory allocation fails, then there is a possible null pointer dereference: down [nullPointerOutOfMemory] seafile-9.0.18/common/index/cache-tree.c:94:18: note: Assuming allocation function fails seafile-9.0.18/common/index/cache-tree.c:94:18: note: Assignment 'down=malloc(sizeof(*down)+pathlen+1)', assigned value is 0 seafile-9.0.18/common/index/cache-tree.c:97:12: note: Null pointer dereference seafile-9.0.18/common/index/cache-tree.c:98:5: warning: If memory allocation fails, then there is a possible null pointer dereference: down [nullPointerOutOfMemory] seafile-9.0.18/common/index/cache-tree.c:94:18: note: Assuming allocation function fails seafile-9.0.18/common/index/cache-tree.c:94:18: note: Assignment 'down=malloc(sizeof(*down)+pathlen+1)', assigned value is 0 seafile-9.0.18/common/index/cache-tree.c:98:5: note: Null pointer dereference seafile-9.0.18/common/index/cache-tree.c:26:42: style:inconclusive: Function 'cache_tree_free' argument 1 names different: declaration '' definition 'it_p'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/cache-tree.c:108:67: style:inconclusive: Function 'cache_tree_find_subtree' argument 1 names different: declaration '' definition 'it'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/cache-tree.c:109:60: style:inconclusive: Function 'cache_tree_find_subtree' argument 2 names different: declaration '' definition 'path'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/cache-tree.c:109:70: style:inconclusive: Function 'cache_tree_find_subtree' argument 3 names different: declaration '' definition 'pathlen'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/cache-tree.c:109:83: style:inconclusive: Function 'cache_tree_find_subtree' argument 4 names different: declaration '' definition 'create'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/cache-tree.c:337:27: style:inconclusive: Function 'cache_tree_update' argument 2 names different: declaration 'version' definition 'repo_version'. [funcArgNamesDifferent] seafile-9.0.18/common/index/cache-tree.h:39:48: note: Function 'cache_tree_update' argument 2 names different: declaration 'version' definition 'repo_version'. seafile-9.0.18/common/index/cache-tree.c:337:27: note: Function 'cache_tree_update' argument 2 names different: declaration 'version' definition 'repo_version'. seafile-9.0.18/common/index/cache-tree.c:339:42: style:inconclusive: Function 'cache_tree_update' argument 4 names different: declaration '' definition 'it'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/cache-tree.c:340:44: style:inconclusive: Function 'cache_tree_update' argument 5 names different: declaration '' definition 'cache'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/cache-tree.c:341:27: style:inconclusive: Function 'cache_tree_update' argument 6 names different: declaration '' definition 'entries'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/cache-tree.c:342:27: style:inconclusive: Function 'cache_tree_update' argument 7 names different: declaration '' definition 'missing_ok'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/cache-tree.c:343:27: style:inconclusive: Function 'cache_tree_update' argument 8 names different: declaration '' definition 'dryrun'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/cache-tree.c:344:32: style:inconclusive: Function 'cache_tree_update' argument 9 names different: declaration '' definition 'commit_cb'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/cache-tree.c:61:32: style: Variable 'mdl' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/index/cache-tree.c:177:29: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/index/cache-tree.c:287:29: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/task.c:215:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/task.c:242:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/task.c:269:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/task.c:296:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/task.c:483:47: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_task_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/task.c:424:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/task.c:483:47: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/task.c:525:47: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_task_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/task.c:425:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/task.c:525:47: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/task.c:598:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/task.c:647:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/task.c:674:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/task.c:701:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/task.c:774:53: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_clone_task_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/task.c:719:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/task.c:774:53: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/task.c:804:53: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_clone_task_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/task.c:720:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/task.c:804:53: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/net.c:369:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] seafile-9.0.18/lib/net.c:294:9: error: Resource leak: sockfd [resourceLeak] seafile-9.0.18/lib/net.c:302:9: error: Resource leak: sockfd [resourceLeak] seafile-9.0.18/lib/net.c:307:9: error: Resource leak: sockfd [resourceLeak] seafile-9.0.18/lib/net.c:318:13: error: Resource leak: sockfd [resourceLeak] seafile-9.0.18/lib/net.c:681:9: error: Resource leak: recvfd [resourceLeak] seafile-9.0.18/lib/net.c:675:12: warning: If memory allocation fails, then there is a possible null pointer dereference: sarecv [nullPointerOutOfMemory] seafile-9.0.18/lib/net.c:674:20: note: Assuming allocation function fails seafile-9.0.18/lib/net.c:674:20: note: Assignment 'sarecv=malloc(salen)', assigned value is 0 seafile-9.0.18/lib/net.c:675:12: note: Null pointer dereference seafile-9.0.18/lib/net.c:677:22: warning: If memory allocation fails, then there is a possible null pointer dereference: sarecv [nullPointerOutOfMemory] seafile-9.0.18/lib/net.c:674:20: note: Assuming allocation function fails seafile-9.0.18/lib/net.c:674:20: note: Assignment 'sarecv=malloc(salen)', assigned value is 0 seafile-9.0.18/lib/net.c:677:22: note: Null pointer dereference seafile-9.0.18/lib/net.c:419:30: style: Variable 'sin' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/vc-utils.c:30:30: style:inconclusive: Function 'commit_trees_cb' argument 3 names different: declaration 'modifier' definition 'worktree'. [funcArgNamesDifferent] seafile-9.0.18/daemon/vc-utils.h:23:30: note: Function 'commit_trees_cb' argument 3 names different: declaration 'modifier' definition 'worktree'. seafile-9.0.18/daemon/vc-utils.c:30:30: note: Function 'commit_trees_cb' argument 3 names different: declaration 'modifier' definition 'worktree'. seafile-9.0.18/daemon/filelock-mgr.c:129:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/filelock-mgr.c:130:11: style: Variable 'path' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/filelock-mgr.c:131:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/filelock-mgr.c:177:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/filelock-mgr.c:203:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/filelock-mgr.c:229:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/filelock-mgr.c:251:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/filelock-mgr.c:266:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/filelock-mgr.c:311:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/filelock-mgr.c:394:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/vc-utils.c:35:29: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/vc-utils.c:116:17: style: Variable 'dent' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/wt-monitor-macos.c:606:57: style: Condition 'handle_refresh_repo(monitor,cmd->repo_id)<0' is always false [knownConditionTrueFalse] seafile-9.0.18/daemon/wt-monitor-macos.c:606:33: note: Calling function 'handle_refresh_repo' returns 0 seafile-9.0.18/daemon/wt-monitor-macos.c:606:57: note: Condition 'handle_refresh_repo(monitor,cmd->repo_id)<0' is always false seafile-9.0.18/daemon/wt-monitor-win32.c:775:54: style: Condition 'handle_refresh_repo(priv,cmd->repo_id)<0' is always false [knownConditionTrueFalse] seafile-9.0.18/daemon/wt-monitor-win32.c:775:33: note: Calling function 'handle_refresh_repo' returns 0 seafile-9.0.18/daemon/wt-monitor-win32.c:775:54: note: Condition 'handle_refresh_repo(priv,cmd->repo_id)<0' is always false seafile-9.0.18/daemon/wt-monitor-macos.c:617:38: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/wt-monitor-macos.c:617:38: note: Shadow argument seafile-9.0.18/daemon/wt-monitor-macos.c:268:15: style: Variable 'last' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/wt-monitor-macos.c:559:37: style: Parameter 'monitor' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/wt-monitor-win32.c:788:38: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/wt-monitor-win32.c:788:38: note: Shadow argument seafile-9.0.18/daemon/wt-monitor-win32.c:176:15: style: Variable 'last' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/wt-monitor-win32.c:515:23: style: Parameter 'event_buf' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/wt-monitor-win32.c:728:52: style: Parameter 'priv' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/index/index.c:90:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/index/index.c:284:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/index/index.c:1716:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/index/index.c:1747:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/index/index.c:1763:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/index/index.c:2000:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-win32.c:444:56: warning: Division by result of sizeof(). g_utf16_to_utf8() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] seafile-9.0.18/daemon/wt-monitor-win32.c:447:52: warning: Division by result of sizeof(). g_utf16_to_utf8() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] seafile-9.0.18/daemon/clone-mgr.c:63:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_LOCAL_DATA_CORRUPT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:135:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_WRITE_LOCAL_DATA [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:198:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_NOT_ENOUGH_MEMORY [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:270:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_NOT_ENOUGH_MEMORY [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:286:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_NOT_ENOUGH_MEMORY [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:311:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_NO_ERROR [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:507:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_GENERAL_ERROR [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:558:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:766:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:957:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:1439:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IGNORE_REASON_END_SPACE_PERIOD [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:1575:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_LOCAL_DATA_CORRUPT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:1611:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_LOCAL_DATA_CORRUPT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/clone-mgr.c:1648:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_LOCAL_DATA_CORRUPT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-win32.c:46:10: style: struct member 'EventInfo::name' is never used. [unusedStructMember] seafile-9.0.18/common/vc-common.c:594:49: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] seafile-9.0.18/common/vc-common.c:80:9: warning: If memory allocation fails, then there is a possible null pointer dereference: rslt [nullPointerOutOfMemory] seafile-9.0.18/common/vc-common.c:78:18: note: Assuming allocation function fails seafile-9.0.18/common/vc-common.c:78:18: note: Assignment 'rslt=calloc(cnt,sizeof(*rslt))', assigned value is 0 seafile-9.0.18/common/vc-common.c:80:9: note: Null pointer dereference seafile-9.0.18/common/vc-common.c:85:18: warning: If memory allocation fails, then there is a possible null pointer dereference: rslt [nullPointerOutOfMemory] seafile-9.0.18/common/vc-common.c:78:18: note: Assuming allocation function fails seafile-9.0.18/common/vc-common.c:78:18: note: Assignment 'rslt=calloc(cnt,sizeof(*rslt))', assigned value is 0 seafile-9.0.18/common/vc-common.c:85:18: note: Null pointer dereference seafile-9.0.18/common/vc-common.c:85:30: warning: If memory allocation fails, then there is a possible null pointer dereference: rslt [nullPointerOutOfMemory] seafile-9.0.18/common/vc-common.c:78:18: note: Assuming allocation function fails seafile-9.0.18/common/vc-common.c:78:18: note: Assignment 'rslt=calloc(cnt,sizeof(*rslt))', assigned value is 0 seafile-9.0.18/common/vc-common.c:85:30: note: Null pointer dereference seafile-9.0.18/common/vc-common.c:87:39: warning: If memory allocation fails, then there is a possible null pointer dereference: rslt [nullPointerOutOfMemory] seafile-9.0.18/common/vc-common.c:78:18: note: Assuming allocation function fails seafile-9.0.18/common/vc-common.c:78:18: note: Assignment 'rslt=calloc(cnt,sizeof(*rslt))', assigned value is 0 seafile-9.0.18/common/vc-common.c:85:26: note: Assuming condition is false seafile-9.0.18/common/vc-common.c:87:39: note: Null pointer dereference seafile-9.0.18/common/vc-common.c:160:20: warning: If memory allocation fails, then there is a possible null pointer dereference: twos [nullPointerOutOfMemory] seafile-9.0.18/common/vc-common.c:236:23: note: Assuming allocation function fails seafile-9.0.18/common/vc-common.c:236:23: note: Assignment 'twos=calloc(n,sizeof(struct SeafCommit*))', assigned value is 0 seafile-9.0.18/common/vc-common.c:242:44: note: Calling function 'merge_bases_many', 3rd argument 'twos' value is 0 seafile-9.0.18/common/vc-common.c:160:20: note: Null pointer dereference seafile-9.0.18/common/vc-common.c:222:5: warning: If memory allocation fails, then there is a possible null pointer dereference: twos [nullPointerOutOfMemory] seafile-9.0.18/common/vc-common.c:221:35: note: Assuming allocation function fails seafile-9.0.18/common/vc-common.c:221:12: note: Assignment 'twos=(struct SeafCommit**)calloc(1,sizeof(struct SeafCommit*))', assigned value is 0 seafile-9.0.18/common/vc-common.c:222:5: note: Null pointer dereference seafile-9.0.18/common/vc-common.c:238:13: warning: If memory allocation fails, then there is a possible null pointer dereference: twos [nullPointerOutOfMemory] seafile-9.0.18/common/vc-common.c:236:23: note: Assuming allocation function fails seafile-9.0.18/common/vc-common.c:236:23: note: Assignment 'twos=calloc(n,sizeof(struct SeafCommit*))', assigned value is 0 seafile-9.0.18/common/vc-common.c:238:13: note: Null pointer dereference seafile-9.0.18/common/vc-common.c:584:32: style:inconclusive: Function 'gen_conflict_path' argument 1 names different: declaration 'original_path' definition 'origin_path'. [funcArgNamesDifferent] seafile-9.0.18/common/vc-common.h:36:32: note: Function 'gen_conflict_path' argument 1 names different: declaration 'original_path' definition 'origin_path'. seafile-9.0.18/common/vc-common.c:584:32: note: Function 'gen_conflict_path' argument 1 names different: declaration 'original_path' definition 'origin_path'. seafile-9.0.18/common/vc-common.c:13:68: style: Parameter 'unused' can be declared as pointer to const. However it seems that 'compare_commit_by_time' is a callback function, if 'unused' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/common/vc-common.c:134:54: note: You might need to cast the function pointer here seafile-9.0.18/common/vc-common.c:13:68: note: Parameter 'unused' can be declared as pointer to const seafile-9.0.18/common/vc-common.c:43:34: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/vc-common.c:215:21: style: Variable 'iter' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/vc-common.c:318:37: style: Parameter 'commit' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/vc-common.c:534:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/rpc-service.c:332:23: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/rpc-service.c:376:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/rpc-service.c:413:10: style: Variable 'allzeros' can be declared as const array [constVariable] seafile-9.0.18/common/rpc-service.c:734:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/rpc-service.c:993:20: style: Variable 'de' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/wt-monitor-linux.c:723:54: style: Condition 'handle_refresh_repo(priv,cmd->repo_id)<0' is always false [knownConditionTrueFalse] seafile-9.0.18/daemon/wt-monitor-linux.c:723:33: note: Calling function 'handle_refresh_repo' returns 0 seafile-9.0.18/daemon/wt-monitor-linux.c:723:54: note: Condition 'handle_refresh_repo(priv,cmd->repo_id)<0' is always false seafile-9.0.18/common/rpc-service.c:740:22: style: Variable 'worktree' is allocated memory that is never used. [unusedAllocatedMemory] seafile-9.0.18/lib/utils.c:172:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:200:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:469:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:879:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:903:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:932:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:961:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:1146:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:1191:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:1285:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:1533:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in6_addr [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:2266:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:2398:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_NORMALIZE_NFC [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/utils.c:2687:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/wt-monitor-linux.c:736:38: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/wt-monitor-linux.c:736:38: note: Shadow argument seafile-9.0.18/daemon/wt-monitor-linux.c:189:15: style: Variable 'last' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/wt-monitor-linux.c:287:35: style: Parameter 'e1' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/wt-monitor-linux.c:287:61: style: Parameter 'e2' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/wt-monitor-linux.c:408:11: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/wt-monitor-linux.c:523:20: style: Variable 'dent' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/wt-monitor-linux.c:659:37: style: Parameter 'handle' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/wt-monitor-linux.c:676:52: style: Parameter 'priv' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/commit-mgr.c:327:12: warning: Identical condition and return expression 'commit', return value is always 0 [identicalConditionAfterEarlyExit] seafile-9.0.18/common/commit-mgr.c:320:9: note: If condition 'commit' is true, the function will return/exit seafile-9.0.18/common/commit-mgr.c:327:12: note: Returning identical expression 'commit' seafile-9.0.18/common/commit-mgr.c:392:9: error: Memory leak: commit_hash [memleak] seafile-9.0.18/common/commit-mgr.c:66:30: style:inconclusive: Function 'seaf_commit_new' argument 4 names different: declaration 'author_name' definition 'creator_name'. [funcArgNamesDifferent] seafile-9.0.18/common/commit-mgr.h:61:30: note: Function 'seaf_commit_new' argument 4 names different: declaration 'author_name' definition 'creator_name'. seafile-9.0.18/common/commit-mgr.c:66:30: note: Function 'seaf_commit_new' argument 4 names different: declaration 'author_name' definition 'creator_name'. seafile-9.0.18/common/commit-mgr.c:377:58: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_with_limit' argument 6 names different: declaration '' definition 'limit'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/commit-mgr.c:378:60: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_with_limit' argument 7 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/commit-mgr.c:379:63: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_with_limit' argument 8 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/commit-mgr.c:563:49: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree' argument 6 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/commit-mgr.c:564:52: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree' argument 7 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/commit-mgr.c:576:59: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_truncated' argument 6 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/commit-mgr.c:577:62: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_truncated' argument 7 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/commit-mgr.c:663:38: style:inconclusive: Function 'commit_from_json_object' argument 1 names different: declaration 'id' definition 'commit_id'. [funcArgNamesDifferent] seafile-9.0.18/common/commit-mgr.c:37:38: note: Function 'commit_from_json_object' argument 1 names different: declaration 'id' definition 'commit_id'. seafile-9.0.18/common/commit-mgr.c:663:38: note: Function 'commit_from_json_object' argument 1 names different: declaration 'id' definition 'commit_id'. seafile-9.0.18/common/commit-mgr.c:331:68: style: Parameter 'unused' can be declared as pointer to const. However it seems that 'compare_commit_by_time' is a callback function, if 'unused' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/common/commit-mgr.c:490:44: note: You might need to cast the function pointer here seafile-9.0.18/common/commit-mgr.c:331:68: note: Parameter 'unused' can be declared as pointer to const seafile-9.0.18/common/commit-mgr.c:254:14: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/daemon/change-set.c:61:46: style: Parameter 'seaf_dent' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/change-set.c:318:77: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/lib/repo.c:1496:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable get_property [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/repo.c:1578:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/repo.c:1971:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable get_property [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/repo.c:2002:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/repo.c:2126:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable get_property [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/repo.c:2153:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/repo.c:2313:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable get_property [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/repo.c:2344:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/repo.c:2619:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable get_property [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/repo.c:2657:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/repo.c:2919:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable get_property [valueFlowBailoutIncompleteVar] seafile-9.0.18/lib/repo.c:2953:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_TYPE_OBJECT [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:127:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ev_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:144:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable block_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:304:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FETCH_CHECKOUT_FAILED [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:538:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_SORT_KEYS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:576:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_SORT_KEYS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:650:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable block_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:704:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:789:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:935:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:1254:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_SORT_KEYS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:1325:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:1719:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_SORT_KEYS [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:2300:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fs_mgr [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:2426:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_DIR_MISSING [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:2502:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_GENERAL [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:2623:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_ERR_DIR_MISSING [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:2685:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/fs-mgr.c:2815:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_CHECKSUM_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:7028:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/repo-mgr.c:8466:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/repo-mgr.c:8491:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] seafile-9.0.18/daemon/sync-mgr.c:343:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:539:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_ACCESS_DENIED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:596:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_NO_ERROR [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:636:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable N_SYNC_ERROR_ID [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:702:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_NOT_ENOUGH_MEMORY [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:732:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_NOT_ENOUGH_MEMORY [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:746:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_IS_DIR [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:856:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_SERVER_REPO_DELETED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:883:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_LOCAL_DATA_CORRUPT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:956:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_NOT_ENOUGH_MEMORY [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:1027:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_INDEX_ERROR [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:1075:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_NOT_ENOUGH_MEMORY [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:1108:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_NO_ERROR [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:1370:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable diff_entry_free [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:1383:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JSON_COMPACT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:1529:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EMPTY_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:1715:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURRENT_SYNC_PROTO_VERSION [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:1731:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CURRENT_SYNC_PROTO_VERSION [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:2275:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:2425:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:2757:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_SERVER_REPO_DELETED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:2794:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_SERVER_REPO_DELETED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:3118:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:3144:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:3182:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:3329:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] seafile-9.0.18/common/diff-simple.c:717:13: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] seafile-9.0.18/common/diff-simple.c:721:13: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] seafile-9.0.18/common/diff-simple.c:721:13: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] seafile-9.0.18/common/diff-simple.c:7:56: style: Parameter 'sha1' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/diff-simple.c:62:26: style: Parameter 'denta' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/diff-simple.c:62:45: style: Parameter 'dentb' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/diff-simple.c:98:11: style: Variable 'dirname' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/diff-simple.c:160:11: style: Variable 'first_name' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/diff-simple.c:331:48: style: Parameter 'commit2' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/diff-simple.c:334:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/diff-simple.c:623:36: style: Parameter 'de_dir' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/diff-simple.c:623:55: style: Parameter 'de_file' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/diff-simple.c:659:16: style: Variable 'de' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/diff-simple.c:707:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/diff-simple.c:709:16: style: Variable 'de' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/diff-simple.c:743:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/diff-simple.c:745:11: style: Variable 'add_mod_file' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/diff-simple.c:745:33: style: Variable 'removed_file' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/diff-simple.c:746:11: style: Variable 'renamed_file' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/diff-simple.c:746:33: style: Variable 'renamed_dir' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/diff-simple.c:747:11: style: Variable 'new_dir' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/diff-simple.c:747:28: style: Variable 'removed_dir' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/clone-mgr.c:801:15: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] seafile-9.0.18/daemon/clone-mgr.c:1162:42: style:inconclusive: Function 'seaf_clone_manager_add_task' argument 10 names different: declaration 'worktree' definition 'worktree_in'. [funcArgNamesDifferent] seafile-9.0.18/daemon/clone-mgr.h:100:42: note: Function 'seaf_clone_manager_add_task' argument 10 names different: declaration 'worktree' definition 'worktree_in'. seafile-9.0.18/daemon/clone-mgr.c:1162:42: note: Function 'seaf_clone_manager_add_task' argument 10 names different: declaration 'worktree' definition 'worktree_in'. seafile-9.0.18/daemon/clone-mgr.c:1548:39: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/clone-mgr.c:1548:39: note: Shadow argument seafile-9.0.18/lib/repo.c:596:35: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/lib/repo.c:615:37: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/lib/repo.c:638:37: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/lib/repo.c:763:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:790:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:817:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:844:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:871:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:942:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:991:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:1018:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:1031:41: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/lib/repo.c:1054:41: style: Parameter 'self' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/lib/repo.c:1179:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:1206:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:1233:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:1282:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:1309:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:1380:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:1407:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:1434:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:1599:47: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_repo_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/repo.c:1496:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/repo.c:1599:47: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/repo.c:1725:47: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_repo_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/repo.c:1497:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/repo.c:1725:47: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/repo.c:1904:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:1931:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2023:52: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_sync_task_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/repo.c:1971:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/repo.c:2023:52: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/repo.c:2050:52: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_sync_task_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/repo.c:1972:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/repo.c:2050:52: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/repo.c:2108:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2174:55: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_session_info_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/repo.c:2126:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/repo.c:2174:55: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/repo.c:2192:55: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_session_info_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/repo.c:2127:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/repo.c:2192:55: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/repo.c:2241:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2268:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2295:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2365:53: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_diff_entry_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/repo.c:2313:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/repo.c:2365:53: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/repo.c:2389:53: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_diff_entry_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/repo.c:2314:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/repo.c:2389:53: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/repo.c:2444:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2471:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2520:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2547:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2574:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2601:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2678:58: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_encryption_info_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/repo.c:2619:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/repo.c:2678:58: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/repo.c:2714:58: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_encryption_info_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/repo.c:2620:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/repo.c:2714:58: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/repo.c:2803:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2830:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2857:9: style: Variable 'old_value' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/repo.c:2974:58: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_file_sync_error_get_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/repo.c:2919:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/repo.c:2974:58: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/lib/repo.c:3007:58: style: Parameter 'pspec' can be declared as pointer to const. However it seems that '_vala_seafile_file_sync_error_set_property' is a callback function, if 'pspec' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/lib/repo.c:2920:41: note: You might need to cast the function pointer here seafile-9.0.18/lib/repo.c:3007:58: note: Parameter 'pspec' can be declared as pointer to const seafile-9.0.18/daemon/clone-mgr.c:169:41: style: Parameter 'result' can be declared as pointer to const. However it seems that 'check_head_commit_done' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/clone-mgr.c:195:50: note: You might need to cast the function pointer here seafile-9.0.18/daemon/clone-mgr.c:169:41: note: Parameter 'result' can be declared as pointer to const seafile-9.0.18/daemon/clone-mgr.c:205:11: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/clone-mgr.c:229:59: style: Parameter 'result' can be declared as pointer to const. However it seems that 'check_http_fileserver_protocol_done' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/clone-mgr.c:268:53: note: You might need to cast the function pointer here seafile-9.0.18/daemon/clone-mgr.c:229:59: note: Parameter 'result' can be declared as pointer to const seafile-9.0.18/daemon/clone-mgr.c:250:48: style: Parameter 'result' can be declared as pointer to const. However it seems that 'check_http_protocol_done' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/clone-mgr.c:284:49: note: You might need to cast the function pointer here seafile-9.0.18/daemon/clone-mgr.c:250:48: note: Parameter 'result' can be declared as pointer to const seafile-9.0.18/daemon/clone-mgr.c:471:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/clone-mgr.c:752:16: style: Variable 'task' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/clone-mgr.c:763:20: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/clone-mgr.c:764:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/clone-mgr.c:767:16: style: Variable 'task' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/clone-mgr.c:908:11: style: Variable 'p1' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/clone-mgr.c:908:16: style: Variable 'p2' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/clone-mgr.c:1167:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/clone-mgr.c:1228:15: style: Variable 'sync_info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/clone-mgr.c:1343:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/clone-mgr.c:1402:15: style: Variable 'sync_info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/utils.c:2690:33: style: Condition 'case_conflict_recursive(worktree,path,conflict_path,no_case_conflict_hash)' is always false [knownConditionTrueFalse] seafile-9.0.18/lib/utils.c:2690:33: note: Calling function 'case_conflict_recursive' returns 0 seafile-9.0.18/lib/utils.c:2690:33: note: Condition 'case_conflict_recursive(worktree,path,conflict_path,no_case_conflict_hash)' is always false seafile-9.0.18/lib/utils.c:476:12: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] seafile-9.0.18/lib/utils.c:1213:18: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] seafile-9.0.18/lib/utils.c:1218:18: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] seafile-9.0.18/lib/utils.c:1825:9: error: Memory leak: dst [memleak] seafile-9.0.18/lib/utils.c:1850:9: error: Memory leak: dst [memleak] seafile-9.0.18/lib/utils.c:109:22: style:inconclusive: Function 'ccnet_strlcpy' argument 1 names different: declaration 'dst' definition 'dest'. [funcArgNamesDifferent] seafile-9.0.18/lib/utils.h:197:29: note: Function 'ccnet_strlcpy' argument 1 names different: declaration 'dst' definition 'dest'. seafile-9.0.18/lib/utils.c:109:22: note: Function 'ccnet_strlcpy' argument 1 names different: declaration 'dst' definition 'dest'. seafile-9.0.18/lib/utils.c:146:34: style:inconclusive: Function 'checkdir_with_mkdir' argument 1 names different: declaration 'path' definition 'dir'. [funcArgNamesDifferent] seafile-9.0.18/lib/utils.h:219:38: note: Function 'checkdir_with_mkdir' argument 1 names different: declaration 'path' definition 'dir'. seafile-9.0.18/lib/utils.c:146:34: note: Function 'checkdir_with_mkdir' argument 1 names different: declaration 'path' definition 'dir'. seafile-9.0.18/lib/utils.c:1544:68: style:inconclusive: Function 'parse_key_value_pairs' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/lib/utils.c:1574:70: style:inconclusive: Function 'parse_key_value_pairs2' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/lib/utils.c:1714:45: style:inconclusive: Function 'string_list_join' argument 2 names different: declaration 'strbuf' definition 'str'. [funcArgNamesDifferent] seafile-9.0.18/lib/utils.h:269:50: note: Function 'string_list_join' argument 2 names different: declaration 'strbuf' definition 'str'. seafile-9.0.18/lib/utils.c:1714:45: note: Function 'string_list_join' argument 2 names different: declaration 'strbuf' definition 'str'. seafile-9.0.18/lib/utils.c:2685:36: style:inconclusive: Function 'is_path_case_conflict' argument 1 names different: declaration 'full_path' definition 'worktree'. [funcArgNamesDifferent] seafile-9.0.18/lib/utils.h:441:36: note: Function 'is_path_case_conflict' argument 1 names different: declaration 'full_path' definition 'worktree'. seafile-9.0.18/lib/utils.c:2685:36: note: Function 'is_path_case_conflict' argument 1 names different: declaration 'full_path' definition 'worktree'. seafile-9.0.18/common/index/index.c:345:49: style: Condition 'convert_from_disk(disk_ce,&ce)<0' is always false [knownConditionTrueFalse] seafile-9.0.18/common/index/index.c:345:34: note: Calling function 'convert_from_disk' returns 0 seafile-9.0.18/common/index/index.c:345:49: note: Condition 'convert_from_disk(disk_ce,&ce)<0' is always false seafile-9.0.18/common/index/index.c:355:51: style: Condition 'convert_from_disk2(disk_ce2,&ce)<0' is always false [knownConditionTrueFalse] seafile-9.0.18/common/index/index.c:355:35: note: Calling function 'convert_from_disk2' returns 0 seafile-9.0.18/common/index/index.c:355:51: note: Condition 'convert_from_disk2(disk_ce2,&ce)<0' is always false seafile-9.0.18/lib/utils.c:852:11: style: Variable 'file_name' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/utils.c:1207:24: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/utils.c:1639:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/utils.c:1716:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/utils.c:1759:12: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/utils.c:1759:27: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/utils.c:2216:11: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/lib/utils.c:2678:100: style: Parameter 'no_case_conflict_hash' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/lib/utils.c:2700:58: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/lib/utils.c:148:9: style: Unused variable: ret [unusedVariable] seafile-9.0.18/lib/utils.c:492:13: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/lib/utils.c:516:13: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/lib/utils.c:540:13: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/common/index/index.h:334:19: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:994:60: note: Calling function 'ce_namelen', 1st argument 'ce' value is 0 seafile-9.0.18/common/index/index.h:332:13: note: Assuming condition is false seafile-9.0.18/common/index/index.h:334:19: note: Null pointer dereference seafile-9.0.18/lib/utils.c:650:13: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/common/index/index.c:81:9: warning: If memory allocation fails, then there is a possible null pointer dereference: hdr [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:307:14: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:307:14: note: Assignment 'mm=mmap(NULL,mmap_size,PROT_READ|PROT_WRITE,MAP_PRIVATE,fd,0)', assigned value is 0 seafile-9.0.18/common/index/index.c:314:9: note: hdr is assigned 'mm' here. seafile-9.0.18/common/index/index.c:315:20: note: Calling function 'verify_hdr', 1st argument 'hdr' value is 0 seafile-9.0.18/common/index/index.c:81:9: note: Null pointer dereference seafile-9.0.18/common/index/index.c:85:9: warning: If memory allocation fails, then there is a possible null pointer dereference: hdr [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:307:14: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:307:14: note: Assignment 'mm=mmap(NULL,mmap_size,PROT_READ|PROT_WRITE,MAP_PRIVATE,fd,0)', assigned value is 0 seafile-9.0.18/common/index/index.c:314:9: note: hdr is assigned 'mm' here. seafile-9.0.18/common/index/index.c:315:20: note: Calling function 'verify_hdr', 1st argument 'hdr' value is 0 seafile-9.0.18/common/index/index.c:81:28: note: Assuming condition is false seafile-9.0.18/common/index/index.c:85:9: note: Null pointer dereference seafile-9.0.18/common/index/index.c:133:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:131:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:131:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:133:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:134:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:131:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:131:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:134:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:135:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:131:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:131:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:135:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:136:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:131:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:131:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:136:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:137:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:131:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:131:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:137:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:138:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:131:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:131:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:138:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:139:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:131:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:131:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:139:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:140:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:131:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:131:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:140:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:142:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:131:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:131:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:142:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:144:13: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:131:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:131:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:144:13: note: Null pointer dereference seafile-9.0.18/common/index/index.c:150:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:131:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:131:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:150:12: note: Null pointer dereference seafile-9.0.18/common/index/index.c:175:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:173:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:173:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:175:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:176:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:173:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:173:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:176:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:177:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:173:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:173:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:177:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:178:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:173:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:173:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:178:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:179:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:173:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:173:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:179:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:180:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:173:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:173:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:180:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:181:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:173:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:173:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:181:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:182:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:173:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:173:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:182:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:184:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:173:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:173:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:184:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:186:13: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:173:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:173:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:186:13: note: Null pointer dereference seafile-9.0.18/common/index/index.c:192:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:173:17: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:173:17: note: Assignment 'ret=calloc(1,((offsetof(struct cache_entry,name)+(len)+8)&~7))', assigned value is 0 seafile-9.0.18/common/index/index.c:192:12: note: Null pointer dereference seafile-9.0.18/common/index/index.c:442:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:990:26: note: Calling function 'fill_stat_cache_info', 1st argument 'ce' value is 0 seafile-9.0.18/common/index/index.c:442:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:443:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:990:26: note: Calling function 'fill_stat_cache_info', 1st argument 'ce' value is 0 seafile-9.0.18/common/index/index.c:443:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:444:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:990:26: note: Calling function 'fill_stat_cache_info', 1st argument 'ce' value is 0 seafile-9.0.18/common/index/index.c:444:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:445:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:990:26: note: Calling function 'fill_stat_cache_info', 1st argument 'ce' value is 0 seafile-9.0.18/common/index/index.c:445:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:446:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:990:26: note: Calling function 'fill_stat_cache_info', 1st argument 'ce' value is 0 seafile-9.0.18/common/index/index.c:446:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:447:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:990:26: note: Calling function 'fill_stat_cache_info', 1st argument 'ce' value is 0 seafile-9.0.18/common/index/index.c:447:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:448:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:990:26: note: Calling function 'fill_stat_cache_info', 1st argument 'ce' value is 0 seafile-9.0.18/common/index/index.c:448:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:449:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:990:26: note: Calling function 'fill_stat_cache_info', 1st argument 'ce' value is 0 seafile-9.0.18/common/index/index.c:449:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:450:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:990:26: note: Calling function 'fill_stat_cache_info', 1st argument 'ce' value is 0 seafile-9.0.18/common/index/index.c:450:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:988:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:988:12: note: Null pointer dereference seafile-9.0.18/common/index/index.c:989:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:989:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:992:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:992:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:994:39: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:994:39: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1047:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1042:87: note: Assuming condition is false seafile-9.0.18/common/index/index.c:1047:13: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1048:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1042:87: note: Assuming condition is false seafile-9.0.18/common/index/index.c:1048:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1049:5: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:987:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:987:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1042:87: note: Assuming condition is false seafile-9.0.18/common/index/index.c:1049:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1109:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1108:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1108:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1109:12: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1110:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1108:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1108:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1110:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1112:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1108:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1108:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1112:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1113:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1108:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1108:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1113:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1115:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1108:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1108:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1115:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1250:13: warning: If memory allocation fails, then there is a possible null pointer dereference: new_ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1249:21: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1249:21: note: Assignment 'new_ce=calloc(size,1)', assigned value is 0 seafile-9.0.18/common/index/index.c:1250:13: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1251:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new_ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1249:21: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1249:21: note: Assignment 'new_ce=calloc(size,1)', assigned value is 0 seafile-9.0.18/common/index/index.c:1251:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1252:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new_ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1249:21: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1249:21: note: Assignment 'new_ce=calloc(size,1)', assigned value is 0 seafile-9.0.18/common/index/index.c:1252:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1253:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new_ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1249:21: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1249:21: note: Assignment 'new_ce=calloc(size,1)', assigned value is 0 seafile-9.0.18/common/index/index.c:1253:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1254:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new_ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1249:21: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1249:21: note: Assignment 'new_ce=calloc(size,1)', assigned value is 0 seafile-9.0.18/common/index/index.c:1254:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1255:13: warning: If memory allocation fails, then there is a possible null pointer dereference: new_ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1249:21: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1249:21: note: Assignment 'new_ce=calloc(size,1)', assigned value is 0 seafile-9.0.18/common/index/index.c:1255:13: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1277:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1276:22: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1276:22: note: Assignment 'ret=calloc(1,sizeof(struct cache_entry*))', assigned value is 0 seafile-9.0.18/common/index/index.c:1277:10: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1334:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1329:18: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1329:18: note: Assignment 'ret=calloc(*n_entries,sizeof(struct cache_entry*))', assigned value is 0 seafile-9.0.18/common/index/index.c:1334:9: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1655:13: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1653:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1653:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1655:13: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1656:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1653:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1653:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1656:12: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1657:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1653:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1653:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1657:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1658:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1653:16: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1653:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1658:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1754:16: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1752:25: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1752:25: note: Assignment 'buf=mmap(NULL,size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 seafile-9.0.18/common/index/index.c:1754:16: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1931:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ondisk [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1927:48: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1927:48: note: Assignment 'ondisk=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1931:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1932:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ondisk [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1927:48: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1927:48: note: Assignment 'ondisk=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1932:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1933:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ondisk [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1927:48: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1927:48: note: Assignment 'ondisk=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1933:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1934:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ondisk [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1927:48: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1927:48: note: Assignment 'ondisk=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1934:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1935:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ondisk [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1927:48: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1927:48: note: Assignment 'ondisk=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1935:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1936:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ondisk [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1927:48: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1927:48: note: Assignment 'ondisk=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1936:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1937:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ondisk [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1927:48: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1927:48: note: Assignment 'ondisk=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1937:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1938:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ondisk [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1927:48: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1927:48: note: Assignment 'ondisk=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1938:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1939:13: warning: If memory allocation fails, then there is a possible null pointer dereference: ondisk [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1927:48: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1927:48: note: Assignment 'ondisk=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1939:13: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1940:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ondisk [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1927:48: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1927:48: note: Assignment 'ondisk=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1940:5: note: Null pointer dereference seafile-9.0.18/common/index/index.c:1941:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ondisk [nullPointerOutOfMemory] seafile-9.0.18/common/index/index.c:1927:48: note: Assuming allocation function fails seafile-9.0.18/common/index/index.c:1927:48: note: Assignment 'ondisk=calloc(1,size)', assigned value is 0 seafile-9.0.18/common/index/index.c:1941:12: note: Null pointer dereference seafile-9.0.18/common/index/index.c:265:41: style:inconclusive: Function 'read_index_from' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:394:41: style:inconclusive: Function 'is_index_unborn' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:399:46: style:inconclusive: Function 'unmerged_index' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:409:47: style:inconclusive: Function 'cache_name_compare' argument 2 names different: declaration 'len1' definition 'flags1'. [funcArgNamesDifferent] seafile-9.0.18/common/index/index.h:590:54: note: Function 'cache_name_compare' argument 2 names different: declaration 'len1' definition 'flags1'. seafile-9.0.18/common/index/index.c:409:47: note: Function 'cache_name_compare' argument 2 names different: declaration 'len1' definition 'flags1'. seafile-9.0.18/common/index/index.c:409:78: style:inconclusive: Function 'cache_name_compare' argument 4 names different: declaration 'len2' definition 'flags2'. [funcArgNamesDifferent] seafile-9.0.18/common/index/index.h:590:83: note: Function 'cache_name_compare' argument 4 names different: declaration 'len2' definition 'flags2'. seafile-9.0.18/common/index/index.c:409:78: note: Function 'cache_name_compare' argument 4 names different: declaration 'len2' definition 'flags2'. seafile-9.0.18/common/index/index.c:585:39: style:inconclusive: Function 'ie_match_stat' argument 1 names different: declaration '' definition 'ce'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:585:53: style:inconclusive: Function 'ie_match_stat' argument 2 names different: declaration '' definition 'st'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:586:32: style:inconclusive: Function 'ie_match_stat' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:678:46: style:inconclusive: Function 'index_name_pos' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:700:47: style:inconclusive: Function 'remove_index_entry_at' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:743:48: style:inconclusive: Function 'remove_file_from_index' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:922:41: style:inconclusive: Function 'add_index_entry' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:963:30: style:inconclusive: Function 'add_to_index' argument 10 names different: declaration '' definition 'modifier'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:964:28: style:inconclusive: Function 'add_to_index' argument 11 names different: declaration '' definition 'added'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:965:28: style:inconclusive: Function 'add_to_index' argument 12 names different: declaration '' definition 'record_index_error'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:1359:29: style:inconclusive: Function 'rename_index_entries' argument 6 names different: declaration '' definition 'cb_data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:1970:37: style:inconclusive: Function 'write_index' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:2056:39: style:inconclusive: Function 'discard_index' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/index/index.c:201:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/index/index.c:372:31: style: Variable 'exthdr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/index/index.c:440:61: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/index/index.c:466:66: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/index/index.c:686:29: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/index/index.c:754:38: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/index/index.c:754:61: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/index/index.c:1067:82: style: Parameter 'ce' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/index/index.c:1081:25: style: Variable 'next' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/index/index.c:1101:59: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/index/index.c:1124:30: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/index/index.c:1498:29: style: Parameter 'dirents' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/index/index.c:1503:18: style: Variable 'dent' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/index/index.c:1545:18: style: Variable 'slash' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/index/index.c:1722:49: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/index/index.c:1734:53: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:203:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:277:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:428:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:475:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:584:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:952:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAFILE_TYPE_FILE_SYNC_ERROR [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:1341:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:1468:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_DIR_NAME_LEN [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:1659:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_UPDATE_TO_READ_ONLY_REPO [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:1806:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:2376:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:2562:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:2666:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:2856:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:3435:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_NORMALIZE_NFC [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:3693:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_STATUS_DELETED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:3898:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_NORMALIZE_NFC [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:4358:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_UPDATE_TO_READ_ONLY_REPO [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:4527:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:4553:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CE_ADDED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:4637:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:4802:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable diff_entry_free [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:5072:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_NO_ERROR [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:5247:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAFILE_FILE_ID_ATTR [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:5391:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CheckoutBlockAux [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:5657:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IGNORE_REASON_END_SPACE_PERIOD [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:5733:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IGNORE_REASON_END_SPACE_PERIOD [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:5824:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_STATUS_DIR_ADDED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:5961:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EMPTY_SHA1 [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:5996:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_STATUS_DIR_ADDED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:6042:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:6220:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_NORMALIZE_NFC [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:6299:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:6345:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:6374:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_STATUS_RENAMED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:6542:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:7028:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:7083:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:7135:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:7206:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:7355:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:7395:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:7574:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:8466:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:8491:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/repo-mgr.c:8701:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] seafile-9.0.18/daemon/sync-mgr.c:1609:44: style:inconclusive: Function 'seaf_sync_manager_update_repo' argument 3 names different: declaration 'commit_id' definition 'head_commit'. [funcArgNamesDifferent] seafile-9.0.18/daemon/sync-mgr.h:195:44: note: Function 'seaf_sync_manager_update_repo' argument 3 names different: declaration 'commit_id' definition 'head_commit'. seafile-9.0.18/daemon/sync-mgr.c:1609:44: note: Function 'seaf_sync_manager_update_repo' argument 3 names different: declaration 'commit_id' definition 'head_commit'. seafile-9.0.18/daemon/sync-mgr.c:151:40: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/sync-mgr.c:151:40: note: Shadow argument seafile-9.0.18/daemon/sync-mgr.c:2734:39: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/sync-mgr.c:2734:39: note: Shadow argument seafile-9.0.18/daemon/sync-mgr.c:2766:40: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/sync-mgr.c:2766:40: note: Shadow argument seafile-9.0.18/daemon/sync-mgr.c:215:42: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/sync-mgr.c:230:11: style: Variable 'repo_name' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:231:11: style: Variable 'type' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:386:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:741:36: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/sync-mgr.c:924:41: style: Parameter 'result' can be declared as pointer to const. However it seems that 'check_head_commit_done' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/sync-mgr.c:951:50: note: You might need to cast the function pointer here seafile-9.0.18/daemon/sync-mgr.c:924:41: note: Parameter 'result' can be declared as pointer to const seafile-9.0.18/daemon/sync-mgr.c:944:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:1124:26: style: Variable 'state' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:1179:37: style: Parameter 'manager' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/sync-mgr.c:1179:56: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/sync-mgr.c:1194:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:1218:11: style: Variable 'server_head' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:1272:14: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:1339:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:1413:28: style: Variable 'result' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:1508:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:1660:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:1684:11: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:1824:11: style: Variable 'colon' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:1894:68: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'cmp_repos_by_sync_time' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/sync-mgr.c:2598:43: note: You might need to cast the function pointer here seafile-9.0.18/daemon/sync-mgr.c:1894:68: note: Parameter 'user_data' can be declared as pointer to const seafile-9.0.18/daemon/sync-mgr.c:2155:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:2184:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:2185:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:2307:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:2334:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:2335:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:2490:48: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/sync-mgr.c:2494:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:2529:30: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/sync-mgr.c:2686:19: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:2735:35: style: Parameter 'tx_task' can be declared as pointer to const. However it seems that 'on_repo_http_fetched' is a callback function, if 'tx_task' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/sync-mgr.c:325:5: note: You might need to cast the function pointer here seafile-9.0.18/daemon/sync-mgr.c:2735:35: note: Parameter 'tx_task' can be declared as pointer to const seafile-9.0.18/daemon/sync-mgr.c:2767:36: style: Parameter 'tx_task' can be declared as pointer to const. However it seems that 'on_repo_http_uploaded' is a callback function, if 'tx_task' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/sync-mgr.c:327:5: note: You might need to cast the function pointer here seafile-9.0.18/daemon/sync-mgr.c:2767:36: note: Parameter 'tx_task' can be declared as pointer to const seafile-9.0.18/daemon/sync-mgr.c:2817:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:2818:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:2851:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:2852:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:2880:58: style: Parameter 'mgr' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/sync-mgr.c:2889:34: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/sync-mgr.c:3020:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:3021:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/sync-mgr.c:3033:10: style: Variable 'allzeros' can be declared as const array [constVariable] seafile-9.0.18/daemon/sync-mgr.c:3056:15: style: Variable 'sync_info' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/fs-mgr.c:2571:9: style: Condition 'file_id' is always true [knownConditionTrueFalse] seafile-9.0.18/common/fs-mgr.c:2596:9: style: Condition 'dir_id' is always true [knownConditionTrueFalse] seafile-9.0.18/daemon/sync-mgr.c:1272:14: style: Variable 'dir' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/daemon/sync-mgr.c:2657:16: style: Variable 'now' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/common/fs-mgr.c:2914:13: style: Redundant initialization for 'ret'. The initialized value is overwritten before it is read. [redundantInitialization] seafile-9.0.18/common/fs-mgr.c:2900:18: note: ret is initialized seafile-9.0.18/common/fs-mgr.c:2914:13: note: ret is overwritten seafile-9.0.18/common/fs-mgr.c:271:50: style:inconclusive: Function 'seaf_fs_manager_checkout_file' argument 5 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/fs-mgr.c:2143:38: style:inconclusive: Function 'seaf_fs_manager_traverse_tree' argument 6 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/fs-mgr.c:2144:41: style:inconclusive: Function 'seaf_fs_manager_traverse_tree' argument 7 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/fs-mgr.c:2212:38: style:inconclusive: Function 'seaf_fs_manager_traverse_path' argument 7 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] seafile-9.0.18/common/fs-mgr.c:433:23: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/fs-mgr.c:1641:33: style: Parameter 'dirent' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/common/fs-mgr.c:1817:17: style: Variable 'dent' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/fs-mgr.c:1817:24: style: Variable 'dent_n' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/fs-mgr.c:2093:17: style: Variable 'seaf_dent' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/fs-mgr.c:2316:17: style: Variable 'seaf_dent' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/fs-mgr.c:2371:17: style: Variable 'seaf_dent' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/fs-mgr.c:2419:17: style: Variable 'dent' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/fs-mgr.c:2421:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/fs-mgr.c:2433:16: style: Variable 'l' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/common/fs-mgr.c:2479:19: style: Variable 'name' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:6596:9: style: The if condition is the same as the previous if condition [duplicateCondition] seafile-9.0.18/daemon/repo-mgr.c:6568:9: note: First condition seafile-9.0.18/daemon/repo-mgr.c:6596:9: note: Second condition seafile-9.0.18/daemon/repo-mgr.c:1210:54: style: Condition 'save_branch_repo_map(repo->manager,branch)<0' is always false [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:1210:30: note: Calling function 'save_branch_repo_map' returns 0 seafile-9.0.18/daemon/repo-mgr.c:1210:54: note: Condition 'save_branch_repo_map(repo->manager,branch)<0' is always false seafile-9.0.18/daemon/repo-mgr.c:2434:49: style: Condition 'check_locked_file_before_remove(fset,ce->name)' is always true [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:2434:49: note: Calling function 'check_locked_file_before_remove' returns 1 seafile-9.0.18/daemon/repo-mgr.c:2434:49: note: Condition 'check_locked_file_before_remove(fset,ce->name)' is always true seafile-9.0.18/daemon/repo-mgr.c:3680:45: style: Condition 'check_locked_file_before_remove(fset,event->path)' is always true [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:3680:45: note: Calling function 'check_locked_file_before_remove' returns 1 seafile-9.0.18/daemon/repo-mgr.c:3680:45: note: Condition 'check_locked_file_before_remove(fset,event->path)' is always true seafile-9.0.18/daemon/repo-mgr.c:3704:41: style: Condition 'check_locked_file_before_remove(fset,event->path)' is always true [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:3704:41: note: Calling function 'check_locked_file_before_remove' returns 1 seafile-9.0.18/daemon/repo-mgr.c:3704:41: note: Condition 'check_locked_file_before_remove(fset,event->path)' is always true seafile-9.0.18/daemon/repo-mgr.c:4412:49: style: Condition 'check_locked_file_before_remove(fset,event->path)' is always true [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:4412:49: note: Calling function 'check_locked_file_before_remove' returns 1 seafile-9.0.18/daemon/repo-mgr.c:4412:49: note: Condition 'check_locked_file_before_remove(fset,event->path)' is always true seafile-9.0.18/daemon/repo-mgr.c:5667:38: style: Condition 'is_adding_files_case_conflict(adding_files,de->name,&conflict_path,no_case_conflict_hash)' is always false [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:5667:38: note: Calling function 'is_adding_files_case_conflict' returns 0 seafile-9.0.18/daemon/repo-mgr.c:5667:38: note: Condition 'is_adding_files_case_conflict(adding_files,de->name,&conflict_path,no_case_conflict_hash)' is always false seafile-9.0.18/daemon/repo-mgr.c:6812:17: style: Condition 'checkout_directly' is always false [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:6811:59: note: Calling function 'handle_de_rename' returns 0 seafile-9.0.18/daemon/repo-mgr.c:6811:59: note: Assignment 'checkout_directly=handle_de_rename(http_task,worktree,de,&istate,no_case_conflict_hash)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:6812:17: note: Condition 'checkout_directly' is always false seafile-9.0.18/daemon/repo-mgr.c:1331:9: error: Memory leak: dirname [memleak] seafile-9.0.18/daemon/repo-mgr.c:3894:9: error: Memory leak: dir [memleak] seafile-9.0.18/daemon/repo-mgr.c:4880:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assuming allocation function fails seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:4880:12: note: Null pointer dereference seafile-9.0.18/daemon/repo-mgr.c:4881:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assuming allocation function fails seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:4881:5: note: Null pointer dereference seafile-9.0.18/daemon/repo-mgr.c:4883:13: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assuming allocation function fails seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:4883:13: note: Null pointer dereference seafile-9.0.18/daemon/repo-mgr.c:4884:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assuming allocation function fails seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:4884:5: note: Null pointer dereference seafile-9.0.18/daemon/repo-mgr.c:4885:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assuming allocation function fails seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:4885:5: note: Null pointer dereference seafile-9.0.18/daemon/repo-mgr.c:4886:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assuming allocation function fails seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:4886:5: note: Null pointer dereference seafile-9.0.18/daemon/repo-mgr.c:4966:13: style: Redundant initialization for 'ret'. The initialized value is overwritten before it is read. [redundantInitialization] seafile-9.0.18/daemon/repo-mgr.c:4950:13: note: ret is initialized seafile-9.0.18/daemon/repo-mgr.c:4966:13: note: ret is overwritten seafile-9.0.18/daemon/repo-mgr.c:7446:46: style:inconclusive: Function 'seaf_repo_manager_add_repo' argument 1 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] seafile-9.0.18/daemon/repo-mgr.h:189:46: note: Function 'seaf_repo_manager_add_repo' argument 1 names different: declaration 'mgr' definition 'manager'. seafile-9.0.18/daemon/repo-mgr.c:7446:46: note: Function 'seaf_repo_manager_add_repo' argument 1 names different: declaration 'mgr' definition 'manager'. seafile-9.0.18/daemon/repo-mgr.c:8461:51: style:inconclusive: Function 'seaf_repo_manager_get_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] seafile-9.0.18/daemon/repo-mgr.h:218:51: note: Function 'seaf_repo_manager_get_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. seafile-9.0.18/daemon/repo-mgr.c:8461:51: note: Function 'seaf_repo_manager_get_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. seafile-9.0.18/daemon/repo-mgr.c:8486:64: style:inconclusive: Function 'seaf_repo_manager_get_repo_id_list_by_server' argument 1 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] seafile-9.0.18/daemon/repo-mgr.h:221:64: note: Function 'seaf_repo_manager_get_repo_id_list_by_server' argument 1 names different: declaration 'mgr' definition 'manager'. seafile-9.0.18/daemon/repo-mgr.c:8486:64: note: Function 'seaf_repo_manager_get_repo_id_list_by_server' argument 1 names different: declaration 'mgr' definition 'manager'. seafile-9.0.18/daemon/repo-mgr.c:8511:52: style:inconclusive: Function 'seaf_repo_manager_set_repo_email' argument 1 names different: declaration 'manager' definition 'mgr'. [funcArgNamesDifferent] seafile-9.0.18/daemon/repo-mgr.h:243:52: note: Function 'seaf_repo_manager_set_repo_email' argument 1 names different: declaration 'manager' definition 'mgr'. seafile-9.0.18/daemon/repo-mgr.c:8511:52: note: Function 'seaf_repo_manager_set_repo_email' argument 1 names different: declaration 'manager' definition 'mgr'. seafile-9.0.18/daemon/repo-mgr.c:8546:57: style:inconclusive: Function 'seaf_repo_manager_set_repo_relay_info' argument 1 names different: declaration 'manager' definition 'mgr'. [funcArgNamesDifferent] seafile-9.0.18/daemon/repo-mgr.h:248:57: note: Function 'seaf_repo_manager_set_repo_relay_info' argument 1 names different: declaration 'manager' definition 'mgr'. seafile-9.0.18/daemon/repo-mgr.c:8546:57: note: Function 'seaf_repo_manager_set_repo_relay_info' argument 1 names different: declaration 'manager' definition 'mgr'. seafile-9.0.18/daemon/repo-mgr.c:6933:40: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/repo-mgr.c:6933:40: note: Shadow argument seafile-9.0.18/daemon/repo-mgr.c:328:25: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:329:17: style: Variable 'perm' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:568:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:569:17: style: Variable 'perm' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:835:11: style: Variable 'permission' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:869:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:1093:19: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:1825:29: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:1910:29: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:2350:49: style: Parameter 'fset' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:2536:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:2537:11: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:2991:48: style: Parameter 'istate' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:2994:35: style: Parameter 'ignore_list' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:2995:43: style: Parameter 'fset' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:2998:39: style: Parameter 'changeset' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:3241:31: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:3492:33: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:4207:39: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:4224:41: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:4246:22: style: Variable 'next_event' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:4347:37: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:4591:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:4593:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:4635:22: style: Variable 'mgr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:4981:17: style: Variable 'task' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:5021:28: style: Parameter 'contents' can be declared as pointer to const. However it seems that 'update_enc_block_cb' is a callback function, if 'contents' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/repo-mgr.c:5089:39: note: You might need to cast the function pointer here seafile-9.0.18/daemon/repo-mgr.c:5021:28: note: Parameter 'contents' can be declared as pointer to const seafile-9.0.18/daemon/repo-mgr.c:5025:17: style: Variable 'task' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:5068:110: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'checkout_block_cb' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/repo-mgr.c:5429:40: note: You might need to cast the function pointer here seafile-9.0.18/daemon/repo-mgr.c:5068:110: note: Parameter 'user_data' can be declared as pointer to const seafile-9.0.18/daemon/repo-mgr.c:5199:33: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:5199:47: style: Parameter 'block_map' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:5216:69: style: Parameter 'aux' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:5291:44: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:5350:20: style: Variable 'fset' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:5475:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:5482:17: style: Variable 'http_task' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:6026:35: style: Parameter 'de' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:6238:33: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:6355:41: style: Parameter 'ce' can be declared as pointer to const. However it seems that 'update_sync_status' is a callback function, if 'ce' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/repo-mgr.c:6822:43: note: You might need to cast the function pointer here seafile-9.0.18/daemon/repo-mgr.c:6355:41: note: Parameter 'ce' can be declared as pointer to const seafile-9.0.18/daemon/repo-mgr.c:6357:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:6469:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:6689:25: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:7147:25: style: Parameter 'contents' can be declared as pointer to const. However it seems that 'get_enc_block_cb' is a callback function, if 'contents' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/repo-mgr.c:7178:35: note: You might need to cast the function pointer here seafile-9.0.18/daemon/repo-mgr.c:7147:25: note: Parameter 'contents' can be declared as pointer to const seafile-9.0.18/daemon/repo-mgr.c:7165:26: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:7670:51: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:7733:15: style: Variable 'res' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:7751:61: style: Parameter 'branch' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:7769:76: style: Parameter 'branch' can be declared as pointer to const [constParameterPointer] seafile-9.0.18/daemon/repo-mgr.c:8603:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:8604:15: style: Variable 'r' can be declared as pointer to const [constVariablePointer] seafile-9.0.18/daemon/repo-mgr.c:6946:23: warning: Division by result of sizeof(). g_malloc0_n() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] seafile-9.0.18/daemon/repo-mgr.c:4949:12: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/daemon/repo-mgr.c:5348:26: style: Variable 'worktree' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/daemon/repo-mgr.c:5350:25: style: Variable 'fset' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/daemon/repo-mgr.c:6211:30: style: Variable 'builtin_ignored' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/daemon/repo-mgr.c:6469:19: style: Variable 'repo_id' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/daemon/repo-mgr.c:6470:22: style: Variable 'repo_version' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/daemon/repo-mgr.c:6471:23: style: Variable 'is_clone' is assigned a value that is never used. [unreadVariable] seafile-9.0.18/daemon/repo-mgr.c:6472:25: style: Unused variable: ce [unusedVariable] diff: head seafile-9.0.18/common/block-mgr.c:163:41: style:inconclusive: Function 'seaf_block_manager_foreach_block' argument 5 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/cdc/rabin-checksum.c:136:30: style: Argument 'poly' shadows outer variable [shadowVariable] seafile-9.0.18/common/cdc/rabin-checksum.c:38:18: note: Shadowed variable seafile-9.0.18/common/cdc/rabin-checksum.c:136:30: note: Shadow argument head seafile-9.0.18/common/commit-mgr.c:377:58: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_with_limit' argument 6 names different: declaration '' definition 'limit'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/commit-mgr.c:378:60: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_with_limit' argument 7 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/commit-mgr.c:379:63: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_with_limit' argument 8 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/commit-mgr.c:563:49: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree' argument 6 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/commit-mgr.c:564:52: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree' argument 7 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/commit-mgr.c:576:59: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_truncated' argument 6 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/commit-mgr.c:577:62: style:inconclusive: Function 'seaf_commit_manager_traverse_commit_tree_truncated' argument 7 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] 2.20.0 seafile-9.0.18/common/commit-mgr.c:634:15: style: The if condition is the same as the previous if condition [duplicateCondition] seafile-9.0.18/common/commit-mgr.c:631:15: note: First condition seafile-9.0.18/common/commit-mgr.c:634:15: note: Second condition head seafile-9.0.18/common/fs-mgr.c:2143:38: style:inconclusive: Function 'seaf_fs_manager_traverse_tree' argument 6 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/fs-mgr.c:2144:41: style:inconclusive: Function 'seaf_fs_manager_traverse_tree' argument 7 names different: declaration '' definition 'skip_errors'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/fs-mgr.c:2212:38: style:inconclusive: Function 'seaf_fs_manager_traverse_path' argument 7 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/fs-mgr.c:271:50: style:inconclusive: Function 'seaf_fs_manager_checkout_file' argument 5 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/cache-tree.c:108:67: style:inconclusive: Function 'cache_tree_find_subtree' argument 1 names different: declaration '' definition 'it'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/cache-tree.c:109:60: style:inconclusive: Function 'cache_tree_find_subtree' argument 2 names different: declaration '' definition 'path'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/cache-tree.c:109:70: style:inconclusive: Function 'cache_tree_find_subtree' argument 3 names different: declaration '' definition 'pathlen'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/cache-tree.c:109:83: style:inconclusive: Function 'cache_tree_find_subtree' argument 4 names different: declaration '' definition 'create'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/cache-tree.c:26:42: style:inconclusive: Function 'cache_tree_free' argument 1 names different: declaration '' definition 'it_p'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/cache-tree.c:339:42: style:inconclusive: Function 'cache_tree_update' argument 4 names different: declaration '' definition 'it'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/cache-tree.c:340:44: style:inconclusive: Function 'cache_tree_update' argument 5 names different: declaration '' definition 'cache'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/cache-tree.c:341:27: style:inconclusive: Function 'cache_tree_update' argument 6 names different: declaration '' definition 'entries'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/cache-tree.c:342:27: style:inconclusive: Function 'cache_tree_update' argument 7 names different: declaration '' definition 'missing_ok'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/cache-tree.c:343:27: style:inconclusive: Function 'cache_tree_update' argument 8 names different: declaration '' definition 'dryrun'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/cache-tree.c:344:32: style:inconclusive: Function 'cache_tree_update' argument 9 names different: declaration '' definition 'commit_cb'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/hash.c:84:84: style:inconclusive: Function 'for_each_hash' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:1359:29: style:inconclusive: Function 'rename_index_entries' argument 6 names different: declaration '' definition 'cb_data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:1970:37: style:inconclusive: Function 'write_index' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:2056:39: style:inconclusive: Function 'discard_index' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:265:41: style:inconclusive: Function 'read_index_from' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:394:41: style:inconclusive: Function 'is_index_unborn' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:399:46: style:inconclusive: Function 'unmerged_index' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:585:39: style:inconclusive: Function 'ie_match_stat' argument 1 names different: declaration '' definition 'ce'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:585:53: style:inconclusive: Function 'ie_match_stat' argument 2 names different: declaration '' definition 'st'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:586:32: style:inconclusive: Function 'ie_match_stat' argument 3 names different: declaration '' definition 'options'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:678:46: style:inconclusive: Function 'index_name_pos' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:700:47: style:inconclusive: Function 'remove_index_entry_at' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:743:48: style:inconclusive: Function 'remove_file_from_index' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:922:41: style:inconclusive: Function 'add_index_entry' argument 1 names different: declaration '' definition 'istate'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:963:30: style:inconclusive: Function 'add_to_index' argument 10 names different: declaration '' definition 'modifier'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:964:28: style:inconclusive: Function 'add_to_index' argument 11 names different: declaration '' definition 'added'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/index/index.c:965:28: style:inconclusive: Function 'add_to_index' argument 12 names different: declaration '' definition 'record_index_error'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/common/obj-store.c:116:35: style:inconclusive: Function 'seaf_obj_store_foreach_obj' argument 5 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/daemon/cevent.c:63:65: style:inconclusive: Function 'cevent_manager_register' argument 3 names different: declaration '' definition 'handler_data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/daemon/change-set.c:318:77: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/change-set.c:327:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EMPTY_SHA1 [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/change-set.c:61:46: style: Parameter 'seaf_dent' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/change-set.c:630:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head seafile-9.0.18/daemon/change-set.c:630:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/change-set.c:719:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EMPTY_SHA1 [valueFlowBailoutIncompleteVar] 2.20.0 seafile-9.0.18/daemon/change-set.c:742:45: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] head seafile-9.0.18/daemon/clone-mgr.c:1548:39: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/clone-mgr.c:1548:39: note: Shadow argument head seafile-9.0.18/daemon/filelock-mgr.c:129:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/filelock-mgr.c:130:11: style: Variable 'path' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/filelock-mgr.c:131:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/filelock-mgr.c:144:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head seafile-9.0.18/daemon/filelock-mgr.c:144:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/filelock-mgr.c:177:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/filelock-mgr.c:203:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/filelock-mgr.c:229:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/filelock-mgr.c:251:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/filelock-mgr.c:266:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/filelock-mgr.c:302:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head seafile-9.0.18/daemon/filelock-mgr.c:302:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/filelock-mgr.c:303:23: debug: Scope::checkVariable found variable 'new_val' with varid 0. [varid0] head seafile-9.0.18/daemon/filelock-mgr.c:311:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/filelock-mgr.c:394:15: style: Variable 'info' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/filelock-mgr.c:400:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/filelock-mgr.c:42:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable g_hash_table_destroy [valueFlowBailoutIncompleteVar] 2.20.0 seafile-9.0.18/daemon/filelock-mgr.c:479:72: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] head seafile-9.0.18/daemon/filelock-mgr.c:522:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/filelock-mgr.c:582:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/filelock-mgr.c:647:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/job-mgr.c:133:48: style:inconclusive: Function 'seaf_job_manager_schedule_job' argument 3 names different: declaration '' definition 'done_func'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/daemon/job-mgr.c:134:38: style:inconclusive: Function 'seaf_job_manager_schedule_job' argument 4 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/daemon/repo-mgr.c:1093:19: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:1210:54: style: Condition 'save_branch_repo_map(repo->manager,branch)<0' is always false [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:1210:30: note: Calling function 'save_branch_repo_map' returns 0 seafile-9.0.18/daemon/repo-mgr.c:1210:54: note: Condition 'save_branch_repo_map(repo->manager,branch)<0' is always false head seafile-9.0.18/daemon/repo-mgr.c:1331:9: error: Memory leak: dirname [memleak] head seafile-9.0.18/daemon/repo-mgr.c:1341:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:1468:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_DIR_NAME_LEN [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:1659:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_UPDATE_TO_READ_ONLY_REPO [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:1806:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:1825:29: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:1910:29: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] 2.20.0 seafile-9.0.18/daemon/repo-mgr.c:198:21: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_FORMAT is a macro then please configure it. [unknownMacro] head seafile-9.0.18/daemon/repo-mgr.c:203:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:2350:49: style: Parameter 'fset' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:2376:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:2434:49: style: Condition 'check_locked_file_before_remove(fset,ce->name)' is always true [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:2434:49: note: Calling function 'check_locked_file_before_remove' returns 1 seafile-9.0.18/daemon/repo-mgr.c:2434:49: note: Condition 'check_locked_file_before_remove(fset,ce->name)' is always true head seafile-9.0.18/daemon/repo-mgr.c:2536:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:2537:11: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:2562:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:2666:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:277:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:2856:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:2991:48: style: Parameter 'istate' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:2994:35: style: Parameter 'ignore_list' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:2995:43: style: Parameter 'fset' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:2998:39: style: Parameter 'changeset' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:3241:31: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:328:25: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:329:17: style: Variable 'perm' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:3435:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_NORMALIZE_NFC [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:3492:33: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:3680:45: style: Condition 'check_locked_file_before_remove(fset,event->path)' is always true [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:3680:45: note: Calling function 'check_locked_file_before_remove' returns 1 seafile-9.0.18/daemon/repo-mgr.c:3680:45: note: Condition 'check_locked_file_before_remove(fset,event->path)' is always true head seafile-9.0.18/daemon/repo-mgr.c:3693:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_STATUS_DELETED [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:3704:41: style: Condition 'check_locked_file_before_remove(fset,event->path)' is always true [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:3704:41: note: Calling function 'check_locked_file_before_remove' returns 1 seafile-9.0.18/daemon/repo-mgr.c:3704:41: note: Condition 'check_locked_file_before_remove(fset,event->path)' is always true head seafile-9.0.18/daemon/repo-mgr.c:3894:9: error: Memory leak: dir [memleak] head seafile-9.0.18/daemon/repo-mgr.c:3898:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_NORMALIZE_NFC [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:4207:39: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:4224:41: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:4246:22: style: Variable 'next_event' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:428:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:4347:37: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:4358:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_UPDATE_TO_READ_ONLY_REPO [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:4412:49: style: Condition 'check_locked_file_before_remove(fset,event->path)' is always true [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:4412:49: note: Calling function 'check_locked_file_before_remove' returns 1 seafile-9.0.18/daemon/repo-mgr.c:4412:49: note: Condition 'check_locked_file_before_remove(fset,event->path)' is always true head seafile-9.0.18/daemon/repo-mgr.c:4527:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:4553:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CE_ADDED [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:4591:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:4593:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:4635:22: style: Variable 'mgr' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:4637:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:475:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:4802:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable diff_entry_free [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:4880:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assuming allocation function fails seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:4880:12: note: Null pointer dereference head seafile-9.0.18/daemon/repo-mgr.c:4881:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assuming allocation function fails seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:4881:5: note: Null pointer dereference head seafile-9.0.18/daemon/repo-mgr.c:4883:13: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assuming allocation function fails seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:4883:13: note: Null pointer dereference head seafile-9.0.18/daemon/repo-mgr.c:4884:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assuming allocation function fails seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:4884:5: note: Null pointer dereference head seafile-9.0.18/daemon/repo-mgr.c:4885:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assuming allocation function fails seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:4885:5: note: Null pointer dereference head seafile-9.0.18/daemon/repo-mgr.c:4886:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ce [nullPointerOutOfMemory] seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assuming allocation function fails seafile-9.0.18/daemon/repo-mgr.c:4879:16: note: Assignment 'ce=calloc(1,size)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:4886:5: note: Null pointer dereference head seafile-9.0.18/daemon/repo-mgr.c:4949:12: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] head seafile-9.0.18/daemon/repo-mgr.c:4966:13: style: Redundant initialization for 'ret'. The initialized value is overwritten before it is read. [redundantInitialization] seafile-9.0.18/daemon/repo-mgr.c:4950:13: note: ret is initialized seafile-9.0.18/daemon/repo-mgr.c:4966:13: note: ret is overwritten head seafile-9.0.18/daemon/repo-mgr.c:4981:17: style: Variable 'task' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:5021:28: style: Parameter 'contents' can be declared as pointer to const. However it seems that 'update_enc_block_cb' is a callback function, if 'contents' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/repo-mgr.c:5089:39: note: You might need to cast the function pointer here seafile-9.0.18/daemon/repo-mgr.c:5021:28: note: Parameter 'contents' can be declared as pointer to const head seafile-9.0.18/daemon/repo-mgr.c:5025:17: style: Variable 'task' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:5068:110: style: Parameter 'user_data' can be declared as pointer to const. However it seems that 'checkout_block_cb' is a callback function, if 'user_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/repo-mgr.c:5429:40: note: You might need to cast the function pointer here seafile-9.0.18/daemon/repo-mgr.c:5068:110: note: Parameter 'user_data' can be declared as pointer to const head seafile-9.0.18/daemon/repo-mgr.c:5072:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SYNC_ERROR_ID_NO_ERROR [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:5199:33: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:5199:47: style: Parameter 'block_map' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:5216:69: style: Parameter 'aux' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:5247:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAFILE_FILE_ID_ATTR [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:5291:44: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:5348:26: style: Variable 'worktree' is assigned a value that is never used. [unreadVariable] head seafile-9.0.18/daemon/repo-mgr.c:5350:20: style: Variable 'fset' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:5350:25: style: Variable 'fset' is assigned a value that is never used. [unreadVariable] head seafile-9.0.18/daemon/repo-mgr.c:5391:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CheckoutBlockAux [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:5475:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:5482:17: style: Variable 'http_task' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:5657:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IGNORE_REASON_END_SPACE_PERIOD [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:5667:38: style: Condition 'is_adding_files_case_conflict(adding_files,de->name,&conflict_path,no_case_conflict_hash)' is always false [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:5667:38: note: Calling function 'is_adding_files_case_conflict' returns 0 seafile-9.0.18/daemon/repo-mgr.c:5667:38: note: Condition 'is_adding_files_case_conflict(adding_files,de->name,&conflict_path,no_case_conflict_hash)' is always false head seafile-9.0.18/daemon/repo-mgr.c:568:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:569:17: style: Variable 'perm' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:5733:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IGNORE_REASON_END_SPACE_PERIOD [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:5824:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_STATUS_DIR_ADDED [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:584:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLITE_TRANSIENT [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:5961:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EMPTY_SHA1 [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:5996:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_STATUS_DIR_ADDED [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:6026:35: style: Parameter 'de' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:6042:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:6211:30: style: Variable 'builtin_ignored' is assigned a value that is never used. [unreadVariable] head seafile-9.0.18/daemon/repo-mgr.c:6220:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_NORMALIZE_NFC [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:6238:33: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:6299:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:6345:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_FILE_TEST_EXISTS [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:6355:41: style: Parameter 'ce' can be declared as pointer to const. However it seems that 'update_sync_status' is a callback function, if 'ce' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/repo-mgr.c:6822:43: note: You might need to cast the function pointer here seafile-9.0.18/daemon/repo-mgr.c:6355:41: note: Parameter 'ce' can be declared as pointer to const head seafile-9.0.18/daemon/repo-mgr.c:6357:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:6374:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_STATUS_RENAMED [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:6469:11: style: Variable 'repo_id' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:6469:19: style: Variable 'repo_id' is assigned a value that is never used. [unreadVariable] head seafile-9.0.18/daemon/repo-mgr.c:6470:22: style: Variable 'repo_version' is assigned a value that is never used. [unreadVariable] head seafile-9.0.18/daemon/repo-mgr.c:6471:23: style: Variable 'is_clone' is assigned a value that is never used. [unreadVariable] head seafile-9.0.18/daemon/repo-mgr.c:6472:25: style: Unused variable: ce [unusedVariable] head seafile-9.0.18/daemon/repo-mgr.c:6542:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:6596:9: style: The if condition is the same as the previous if condition [duplicateCondition] seafile-9.0.18/daemon/repo-mgr.c:6568:9: note: First condition seafile-9.0.18/daemon/repo-mgr.c:6596:9: note: Second condition head seafile-9.0.18/daemon/repo-mgr.c:6689:25: style: Variable 'ce' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:6812:17: style: Condition 'checkout_directly' is always false [knownConditionTrueFalse] seafile-9.0.18/daemon/repo-mgr.c:6811:59: note: Calling function 'handle_de_rename' returns 0 seafile-9.0.18/daemon/repo-mgr.c:6811:59: note: Assignment 'checkout_directly=handle_de_rename(http_task,worktree,de,&istate,no_case_conflict_hash)', assigned value is 0 seafile-9.0.18/daemon/repo-mgr.c:6812:17: note: Condition 'checkout_directly' is always false head seafile-9.0.18/daemon/repo-mgr.c:6933:40: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/repo-mgr.c:6933:40: note: Shadow argument head seafile-9.0.18/daemon/repo-mgr.c:6946:23: warning: Division by result of sizeof(). g_malloc0_n() expects a size in bytes, did you intend to multiply instead? [sizeofDivisionMemfunc] head seafile-9.0.18/daemon/repo-mgr.c:7028:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head seafile-9.0.18/daemon/repo-mgr.c:7028:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:7083:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:7135:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:7147:25: style: Parameter 'contents' can be declared as pointer to const. However it seems that 'get_enc_block_cb' is a callback function, if 'contents' is declared with const you might also need to cast function pointer(s). [constParameterCallback] seafile-9.0.18/daemon/repo-mgr.c:7178:35: note: You might need to cast the function pointer here seafile-9.0.18/daemon/repo-mgr.c:7147:25: note: Parameter 'contents' can be declared as pointer to const head seafile-9.0.18/daemon/repo-mgr.c:7165:26: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:7206:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:7355:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_USEC_PER_SEC [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:7395:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PTHREAD_CREATE_DETACHED [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:7446:46: style:inconclusive: Function 'seaf_repo_manager_add_repo' argument 1 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] seafile-9.0.18/daemon/repo-mgr.h:189:46: note: Function 'seaf_repo_manager_add_repo' argument 1 names different: declaration 'mgr' definition 'manager'. seafile-9.0.18/daemon/repo-mgr.c:7446:46: note: Function 'seaf_repo_manager_add_repo' argument 1 names different: declaration 'mgr' definition 'manager'. head seafile-9.0.18/daemon/repo-mgr.c:7574:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:7670:51: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:7733:15: style: Variable 'res' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:7751:61: style: Parameter 'branch' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:7769:76: style: Parameter 'branch' can be declared as pointer to const [constParameterPointer] head seafile-9.0.18/daemon/repo-mgr.c:835:11: style: Variable 'permission' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:8461:51: style:inconclusive: Function 'seaf_repo_manager_get_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] seafile-9.0.18/daemon/repo-mgr.h:218:51: note: Function 'seaf_repo_manager_get_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. seafile-9.0.18/daemon/repo-mgr.c:8461:51: note: Function 'seaf_repo_manager_get_repo_list' argument 1 names different: declaration 'mgr' definition 'manager'. head seafile-9.0.18/daemon/repo-mgr.c:8466:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head seafile-9.0.18/daemon/repo-mgr.c:8466:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:8486:64: style:inconclusive: Function 'seaf_repo_manager_get_repo_id_list_by_server' argument 1 names different: declaration 'mgr' definition 'manager'. [funcArgNamesDifferent] seafile-9.0.18/daemon/repo-mgr.h:221:64: note: Function 'seaf_repo_manager_get_repo_id_list_by_server' argument 1 names different: declaration 'mgr' definition 'manager'. seafile-9.0.18/daemon/repo-mgr.c:8486:64: note: Function 'seaf_repo_manager_get_repo_id_list_by_server' argument 1 names different: declaration 'mgr' definition 'manager'. head seafile-9.0.18/daemon/repo-mgr.c:8491:19: debug: Scope::checkVariable found variable 'value' with varid 0. [varid0] head seafile-9.0.18/daemon/repo-mgr.c:8491:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable value [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:8511:52: style:inconclusive: Function 'seaf_repo_manager_set_repo_email' argument 1 names different: declaration 'manager' definition 'mgr'. [funcArgNamesDifferent] seafile-9.0.18/daemon/repo-mgr.h:243:52: note: Function 'seaf_repo_manager_set_repo_email' argument 1 names different: declaration 'manager' definition 'mgr'. seafile-9.0.18/daemon/repo-mgr.c:8511:52: note: Function 'seaf_repo_manager_set_repo_email' argument 1 names different: declaration 'manager' definition 'mgr'. head seafile-9.0.18/daemon/repo-mgr.c:8546:57: style:inconclusive: Function 'seaf_repo_manager_set_repo_relay_info' argument 1 names different: declaration 'manager' definition 'mgr'. [funcArgNamesDifferent] seafile-9.0.18/daemon/repo-mgr.h:248:57: note: Function 'seaf_repo_manager_set_repo_relay_info' argument 1 names different: declaration 'manager' definition 'mgr'. seafile-9.0.18/daemon/repo-mgr.c:8546:57: note: Function 'seaf_repo_manager_set_repo_relay_info' argument 1 names different: declaration 'manager' definition 'mgr'. head seafile-9.0.18/daemon/repo-mgr.c:8603:12: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:8604:15: style: Variable 'r' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:869:15: style: Variable 'repo' can be declared as pointer to const [constVariablePointer] head seafile-9.0.18/daemon/repo-mgr.c:8701:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAF_PATH_MAX [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/repo-mgr.c:952:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEAFILE_TYPE_FILE_SYNC_ERROR [valueFlowBailoutIncompleteVar] head seafile-9.0.18/daemon/sync-mgr.c:151:40: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/sync-mgr.c:151:40: note: Shadow argument head seafile-9.0.18/daemon/sync-mgr.c:2734:39: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/sync-mgr.c:2734:39: note: Shadow argument head seafile-9.0.18/daemon/sync-mgr.c:2766:40: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/sync-mgr.c:2766:40: note: Shadow argument head seafile-9.0.18/daemon/timer.c:78:33: style:inconclusive: Function 'seaf_timer_new' argument 2 names different: declaration '' definition 'user_data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/daemon/timer.c:79:33: style:inconclusive: Function 'seaf_timer_new' argument 3 names different: declaration '' definition 'interval_milliseconds'. [funcArgNamesDifferentUnnamed] 2.20.0 seafile-9.0.18/daemon/timer.c:79:33: style:inconclusive: Function 'seaf_timer_new' argument 3 names different: declaration 'timeout_milliseconds' definition 'interval_milliseconds'. [funcArgNamesDifferent] seafile-9.0.18/daemon/timer.h:20:46: note: Function 'seaf_timer_new' argument 3 names different: declaration 'timeout_milliseconds' definition 'interval_milliseconds'. seafile-9.0.18/daemon/timer.c:79:33: note: Function 'seaf_timer_new' argument 3 names different: declaration 'timeout_milliseconds' definition 'interval_milliseconds'. head seafile-9.0.18/daemon/wt-monitor-linux.c:736:38: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/wt-monitor-linux.c:736:38: note: Shadow argument head seafile-9.0.18/daemon/wt-monitor-macos.c:617:38: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/wt-monitor-macos.c:617:38: note: Shadow argument head seafile-9.0.18/daemon/wt-monitor-win32.c:788:38: style: Argument 'seaf' shadows outer variable [shadowVariable] seafile-9.0.18/daemon/seafile-session.h:107:24: note: Shadowed variable seafile-9.0.18/daemon/wt-monitor-win32.c:788:38: note: Shadow argument head seafile-9.0.18/lib/db.c:116:60: style:inconclusive: Function 'sqlite_foreach_selected_row' argument 4 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/lib/utils.c:1544:68: style:inconclusive: Function 'parse_key_value_pairs' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] head seafile-9.0.18/lib/utils.c:1574:70: style:inconclusive: Function 'parse_key_value_pairs2' argument 3 names different: declaration '' definition 'data'. [funcArgNamesDifferentUnnamed] DONE