2026-05-01 14:12 ftp://ftp.de.debian.org/debian/pool/main/c/csync2/csync2_2.0-42-g83b3644.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=sqlite3 --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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 137 137 elapsed-time: 0.6 0.3 head-timing-info: old-timing-info: head results: csync2-2.0-42-g83b3644/cygwin/cs2hintd.c:46:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/cygwin/cs2hintd.c:67:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/action.c:48:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_PATHNAME [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/action.c:110:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/csync2.c:102:1: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_STRING is a macro then please configure it. [unknownMacro] csync2-2.0-42-g83b3644/check.c:340:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable alphasort [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/conn.c:126:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOCK_STREAM [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/conn.c:169:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/conn.c:229:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/conn.c:498:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/cygwin/cs2hintd.c:39:2: warning: Return value of function vasprintf() is not used. [ignoredReturnValue] csync2-2.0-42-g83b3644/action.c:111:11: error: Return value of allocation function 'open' is not stored. [leakReturnValNotUsed] csync2-2.0-42-g83b3644/action.c:112:11: error: Return value of allocation function 'open' is not stored. [leakReturnValNotUsed] csync2-2.0-42-g83b3644/csync2.h:305:3: warning: If memory allocation fails, then there is a possible null pointer dereference: *listhandle [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/csync2.h:304:22: note: Assuming allocation function fails csync2-2.0-42-g83b3644/csync2.h:304:22: note: Assignment '*listhandle=malloc(sizeof(struct textlist))', assigned value is 0 csync2-2.0-42-g83b3644/csync2.h:305:3: note: Null pointer dereference csync2-2.0-42-g83b3644/csync2.h:315:3: warning: If memory allocation fails, then there is a possible null pointer dereference: *listhandle [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/csync2.h:314:22: note: Assuming allocation function fails csync2-2.0-42-g83b3644/csync2.h:314:22: note: Assignment '*listhandle=malloc(sizeof(struct textlist))', assigned value is 0 csync2-2.0-42-g83b3644/csync2.h:315:3: note: Null pointer dereference csync2-2.0-42-g83b3644/action.c:79:16: warning: If memory allocation fails, then there is a possible null pointer dereference: command_clr [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/action.c:66:28: note: Assuming allocation function fails csync2-2.0-42-g83b3644/action.c:66:28: note: Assignment 'command_clr=strdup(url_decode(command))', assigned value is 0 csync2-2.0-42-g83b3644/action.c:79:16: note: Null pointer dereference csync2-2.0-42-g83b3644/action.c:99:17: warning: If memory allocation fails, then there is a possible null pointer dereference: pos [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/action.c:89:30: note: Assuming allocation function fails csync2-2.0-42-g83b3644/action.c:89:22: note: Assignment 'pos=real_command=malloc(len)', assigned value is 0 csync2-2.0-42-g83b3644/action.c:93:18: note: Assuming condition is false csync2-2.0-42-g83b3644/action.c:99:17: note: Null pointer dereference csync2-2.0-42-g83b3644/action.c:67:8: style: Variable 'logfile_clr' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/action.c:68:23: style: Variable 'mark' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/action.c:72:2: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/action.c:132:28: style: Variable 't' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/action.c:134:2: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/db.c:315:2: error: #error "No database backend available. Please install either libpg, libmysqlclient or libsqlite, reconfigure and recompile" [preprocessorErrorDirective] csync2-2.0-42-g83b3644/conn.c:624:11: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/conn.c:128:18: style: Condition 'bind_to_myhostname' is always true [knownConditionTrueFalse] csync2-2.0-42-g83b3644/conn.c:547:14: style: Checking if unsigned expression 'b->rlen' is less than zero. [unsignedLessThanZero] csync2-2.0-42-g83b3644/conn.c:76:36: style:inconclusive: Function 'conn_response' argument 1 names different: declaration '' definition 'i'. [funcArgNamesDifferentUnnamed] csync2-2.0-42-g83b3644/conn.c:100:60: style:inconclusive: Function 'conn_response_to_enum' argument 1 names different: declaration '' definition 'response'. [funcArgNamesDifferentUnnamed] csync2-2.0-42-g83b3644/conn.c:115:57: style: Parameter 'peer_ai' can be declared as pointer to const [constParameterPointer] csync2-2.0-42-g83b3644/conn.c:118:28: style: Variable 'rp' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/conn.c:602:25: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:178:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:223:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/checktxt.c:49:2: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/checktxt.c:52:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/checktxt.c:55:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/checktxt.c:58:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/checktxt.c:61:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/checktxt.c:64:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/checktxt.c:67:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/checktxt.c:70:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/checktxt.c:73:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/checktxt.c:76:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/checktxt.c:82:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/checktxt.c:86:3: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] csync2-2.0-42-g83b3644/checktxt.c:93:4: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/checktxt.c:89:17: note: Assuming allocation function fails csync2-2.0-42-g83b3644/checktxt.c:89:17: note: Assignment 'buffer=malloc(len)', assigned value is 0 csync2-2.0-42-g83b3644/checktxt.c:93:4: note: Null pointer dereference csync2-2.0-42-g83b3644/checktxt.c:95:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/checktxt.c:89:17: note: Assuming allocation function fails csync2-2.0-42-g83b3644/checktxt.c:89:17: note: Assignment 'buffer=malloc(len)', assigned value is 0 csync2-2.0-42-g83b3644/checktxt.c:95:2: note: Null pointer dereference csync2-2.0-42-g83b3644/db_api.c:125:22: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/db_api.c:124:22: note: Assuming allocation function fails csync2-2.0-42-g83b3644/db_api.c:124:22: note: Assignment 'tmp=strdup(db_str)', assigned value is 0 csync2-2.0-42-g83b3644/db_api.c:125:22: note: Null pointer dereference csync2-2.0-42-g83b3644/db_api.c:126:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/db_api.c:124:22: note: Assuming allocation function fails csync2-2.0-42-g83b3644/db_api.c:124:22: note: Assignment 'tmp=strdup(db_str)', assigned value is 0 csync2-2.0-42-g83b3644/db_api.c:126:5: note: Null pointer dereference csync2-2.0-42-g83b3644/db_api.c:127:4: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/db_api.c:124:22: note: Assuming allocation function fails csync2-2.0-42-g83b3644/db_api.c:124:22: note: Assignment 'tmp=strdup(db_str)', assigned value is 0 csync2-2.0-42-g83b3644/db_api.c:127:4: note: Null pointer dereference csync2-2.0-42-g83b3644/db_api.c:184:2: warning: Either the condition 'conn==NULL' is redundant or there is possible null pointer dereference: conn. [nullPointerRedundantCheck] csync2-2.0-42-g83b3644/db_api.c:181:11: note: Assuming that condition 'conn==NULL' is not redundant csync2-2.0-42-g83b3644/db_api.c:184:2: note: Null pointer dereference csync2-2.0-42-g83b3644/db_api.c:114:25: style:inconclusive: Function 'db_open' argument 1 names different: declaration 'file' definition 'db_str'. [funcArgNamesDifferent] csync2-2.0-42-g83b3644/db_api.h:55:31: note: Function 'db_open' argument 1 names different: declaration 'file' definition 'db_str'. csync2-2.0-42-g83b3644/db_api.c:114:25: note: Function 'db_open' argument 1 names different: declaration 'file' definition 'db_str'. csync2-2.0-42-g83b3644/db_api.c:202:41: style:inconclusive: Function 'db_exec' argument 2 names different: declaration 'exec' definition 'sql'. [funcArgNamesDifferent] csync2-2.0-42-g83b3644/db_api.h:58:47: note: Function 'db_exec' argument 2 names different: declaration 'exec' definition 'sql'. csync2-2.0-42-g83b3644/db_api.c:202:41: note: Function 'db_exec' argument 2 names different: declaration 'exec' definition 'sql'. csync2-2.0-42-g83b3644/db_api.c:211:49: style:inconclusive: Function 'db_prepare_stmt' argument 2 names different: declaration 'statement' definition 'sql'. [funcArgNamesDifferent] csync2-2.0-42-g83b3644/db_api.h:61:55: note: Function 'db_prepare_stmt' argument 2 names different: declaration 'statement' definition 'sql'. csync2-2.0-42-g83b3644/db_api.c:211:49: note: Function 'db_prepare_stmt' argument 2 names different: declaration 'statement' definition 'sql'. csync2-2.0-42-g83b3644/db_api.c:211:79: style:inconclusive: Function 'db_prepare_stmt' argument 4 names different: declaration 'value' definition 'pptail'. [funcArgNamesDifferent] csync2-2.0-42-g83b3644/db_api.h:61:90: note: Function 'db_prepare_stmt' argument 4 names different: declaration 'value' definition 'pptail'. csync2-2.0-42-g83b3644/db_api.c:211:79: note: Function 'db_prepare_stmt' argument 4 names different: declaration 'value' definition 'pptail'. csync2-2.0-42-g83b3644/db_api.c:260:2: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/check.c:217:28: style: Variable 't' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/check.c:229:2: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/check.c:265:24: style: Variable 'p' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/check.c:305:3: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/check.c:388:23: style: Variable 'p' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/error.c:100:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/getrealfn.c:111:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/error.c:50:60: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] csync2-2.0-42-g83b3644/error.c:91:37: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] csync2-2.0-42-g83b3644/groups.c:44:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_PATHNAME [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/groups.c:95:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_PATHNAME [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/getrealfn.c:55:8: warning: If memory allocation fails, then there is a possible null pointer dereference: tempfn [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/getrealfn.c:52:17: note: Assuming allocation function fails csync2-2.0-42-g83b3644/getrealfn.c:52:17: note: Assignment 'tempfn=strdup(filename)', assigned value is 0 csync2-2.0-42-g83b3644/getrealfn.c:55:8: note: Null pointer dereference csync2-2.0-42-g83b3644/getrealfn.c:58:3: warning: If memory allocation fails, then there is a possible null pointer dereference: tempfn [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/getrealfn.c:52:17: note: Assuming allocation function fails csync2-2.0-42-g83b3644/getrealfn.c:52:17: note: Assignment 'tempfn=strdup(filename)', assigned value is 0 csync2-2.0-42-g83b3644/getrealfn.c:58:3: note: Null pointer dereference csync2-2.0-42-g83b3644/getrealfn.c:66:31: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tempfn [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/getrealfn.c:52:17: note: Assuming allocation function fails csync2-2.0-42-g83b3644/getrealfn.c:52:17: note: Assignment 'tempfn=strdup(filename)', assigned value is 0 csync2-2.0-42-g83b3644/getrealfn.c:66:31: note: Null pointer dereference csync2-2.0-42-g83b3644/getrealfn.c:66:22: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] csync2-2.0-42-g83b3644/getrealfn.c:52:17: note: Assuming allocation function fails csync2-2.0-42-g83b3644/getrealfn.c:52:17: note: Assignment 'tempfn=strdup(filename)', assigned value is 0 csync2-2.0-42-g83b3644/getrealfn.c:66:22: note: Null pointer addition csync2-2.0-42-g83b3644/rsync.c:111:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/rsync.c:148:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IWUSR [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/rsync.c:266:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/rsync.c:335:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/rsync.c:402:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/rsync.c:440:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/rsync.c:508:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/rsync.c:591:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/rsync.c:623:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/rsync.c:719:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/rsync.c:735:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/prefixsubst.c:31:23: style: Variable 'p' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/prefixsubst.c:65:23: style: Variable 'p' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:231:3: warning: Return value of function pipe() is not used. [ignoredReturnValue] csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:201:20: style: Condition 'argc>=3' is always true [knownConditionTrueFalse] csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:198:11: note: Assuming that condition 'argc>=3' is not redundant csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:201:20: note: Condition 'argc>=3' is always true csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:213:20: style: Condition 'argc>=2' is always true [knownConditionTrueFalse] csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:211:11: note: Assuming that condition 'argc>=2' is not redundant csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:213:20: note: Condition 'argc>=2' is always true csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:224:3: error: Memory leak: dbname [memleak] csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:77:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:79:2: note: Found duplicate branches for 'if' and 'else'. csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:77:2: note: Found duplicate branches for 'if' and 'else'. csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:85:2: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:87:2: note: Found duplicate branches for 'if' and 'else'. csync2-2.0-42-g83b3644/cygwin/cs2monitor.c:85:2: note: Found duplicate branches for 'if' and 'else'. csync2-2.0-42-g83b3644/groups.c:197:4: error: Common realloc mistake: 'plist' nulled but not freed upon failure [memleakOnRealloc] csync2-2.0-42-g83b3644/groups.c:118:23: style: Variable 'p' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/groups.c:154:28: style: Variable 'h' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/groups.c:179:28: style: Variable 'h' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/groups.c:213:27: style: Variable 'h' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/groups.c:225:27: style: Variable 'h' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/urlencode.c:58:2: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/urlencode.c:46:14: note: Assuming allocation function fails csync2-2.0-42-g83b3644/urlencode.c:46:14: note: Assignment 'out=malloc(len+1)', assigned value is 0 csync2-2.0-42-g83b3644/urlencode.c:48:16: note: Assuming condition is false csync2-2.0-42-g83b3644/urlencode.c:58:2: note: Null pointer dereference csync2-2.0-42-g83b3644/urlencode.c:86:2: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/urlencode.c:76:14: note: Assuming allocation function fails csync2-2.0-42-g83b3644/urlencode.c:76:14: note: Assignment 'out=malloc(len+1)', assigned value is 0 csync2-2.0-42-g83b3644/urlencode.c:86:2: note: Null pointer dereference csync2-2.0-42-g83b3644/update.c:908:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/daemon.c:54:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/daemon.c:152:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/daemon.c:247:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/daemon.c:336:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/daemon.c:362:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/daemon.c:411:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/daemon.c:480:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sa_family [valueFlowBailoutIncompleteVar] csync2-2.0-42-g83b3644/rsync.c:168:7: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] csync2-2.0-42-g83b3644/rsync.c:649:10: warning: Either the condition '!new_file' is redundant or there is possible null pointer dereference: new_file. [nullPointerRedundantCheck] csync2-2.0-42-g83b3644/rsync.c:643:7: note: Assuming that condition '!new_file' is not redundant csync2-2.0-42-g83b3644/rsync.c:649:10: note: Null pointer dereference csync2-2.0-42-g83b3644/update.c:944:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] csync2-2.0-42-g83b3644/update.c:952:8: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] csync2-2.0-42-g83b3644/csync2.h:306:32: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/update.c:1021:37: note: Assuming allocation function fails csync2-2.0-42-g83b3644/update.c:1021:37: note: Calling function 'textlist_add', 2nd argument 'strdup(l_file)' value is 0 csync2-2.0-42-g83b3644/csync2.h:306:32: note: Null pointer dereference csync2-2.0-42-g83b3644/update.c:912:28: warning: If resource allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfResources] csync2-2.0-42-g83b3644/update.c:909:11: note: Assuming allocation function fails csync2-2.0-42-g83b3644/update.c:909:11: note: Assignment 'p=popen(buffer,"w")', assigned value is 0 csync2-2.0-42-g83b3644/update.c:912:28: note: Null pointer dereference csync2-2.0-42-g83b3644/update.c:63:22: style: Variable 't' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/update.c:600:2: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/update.c:617:19: style: Variable 't' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/update.c:653:8: style: Variable 'skip_subtree' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/update.c:718:2: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/update.c:828:28: style: Variable 't' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/update.c:830:2: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/update.c:927:21: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/update.c:967:35: style: Variable 'diff_ent' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/update.c:1009:2: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/update.c:1122:28: style: Variable 'h' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/update.c:1152:2: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/update.c:1182:2: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/daemon.c:170:17: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] csync2-2.0-42-g83b3644/daemon.c:452:12: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] csync2-2.0-42-g83b3644/daemon.c:708:10: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] csync2-2.0-42-g83b3644/daemon.c:442:15: warning: Either the condition 'result' is redundant or there is possible null pointer dereference: result. [nullPointerRedundantCheck] csync2-2.0-42-g83b3644/daemon.c:440:6: note: Assuming that condition 'result' is not redundant csync2-2.0-42-g83b3644/daemon.c:442:15: note: Null pointer dereference csync2-2.0-42-g83b3644/daemon.c:768:13: warning: If memory allocation fails, then there is a possible null pointer dereference: active_grouplist [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/daemon.c:762:30: note: Assuming allocation function fails csync2-2.0-42-g83b3644/daemon.c:762:30: note: Assignment 'active_grouplist=strdup(tag[1])', assigned value is 0 csync2-2.0-42-g83b3644/daemon.c:764:10: note: Assuming condition is false csync2-2.0-42-g83b3644/daemon.c:768:13: note: Null pointer dereference csync2-2.0-42-g83b3644/daemon.c:215:7: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] csync2-2.0-42-g83b3644/daemon.c:146:7: note: rc is assigned csync2-2.0-42-g83b3644/daemon.c:215:7: note: rc is overwritten csync2-2.0-42-g83b3644/daemon.c:621:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] csync2-2.0-42-g83b3644/daemon.c:559:19: style: Local variable 'sb' shadows outer variable [shadowVariable] csync2-2.0-42-g83b3644/daemon.c:479:14: note: Shadowed declaration csync2-2.0-42-g83b3644/daemon.c:559:19: note: Shadow variable csync2-2.0-42-g83b3644/daemon.c:760:9: style: Local variable 'i' shadows outer variable [shadowVariable] csync2-2.0-42-g83b3644/daemon.c:483:6: note: Shadowed declaration csync2-2.0-42-g83b3644/daemon.c:760:9: note: Shadow variable csync2-2.0-42-g83b3644/daemon.c:63:2: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/daemon.c:356:28: style: Variable 'rp' can be declared as pointer to const [constVariablePointer] csync2-2.0-42-g83b3644/daemon.c:713:4: style: Variable 'SQL_ERR' can be declared as pointer to const [constVariablePointer] diff: head csync2-2.0-42-g83b3644/conn.c:100:60: style:inconclusive: Function 'conn_response_to_enum' argument 1 names different: declaration '' definition 'response'. [funcArgNamesDifferentUnnamed] head csync2-2.0-42-g83b3644/conn.c:76:36: style:inconclusive: Function 'conn_response' argument 1 names different: declaration '' definition 'i'. [funcArgNamesDifferentUnnamed] 2.20.0 csync2-2.0-42-g83b3644/cygwin/cs2hintd.c:88:26: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] csync2-2.0-42-g83b3644/cygwin/cs2hintd.c:85:19: note: Assuming allocation function fails csync2-2.0-42-g83b3644/cygwin/cs2hintd.c:85:19: note: Assignment 'command=malloc(command_len)', assigned value is 0 csync2-2.0-42-g83b3644/cygwin/cs2hintd.c:88:26: note: Null pointer addition 2.20.0 csync2-2.0-42-g83b3644/cygwin/cs2hintd.c:89:16: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: command [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/cygwin/cs2hintd.c:85:19: note: Assuming allocation function fails csync2-2.0-42-g83b3644/cygwin/cs2hintd.c:85:19: note: Assignment 'command=malloc(command_len)', assigned value is 0 csync2-2.0-42-g83b3644/cygwin/cs2hintd.c:89:16: note: Null pointer dereference 2.20.0 csync2-2.0-42-g83b3644/rsync.c:649:10: error: Null pointer dereference [nullPointer] head csync2-2.0-42-g83b3644/urlencode.c:58:2: warning: If memory allocation fails, then there is a possible null pointer dereference: out [nullPointerOutOfMemory] csync2-2.0-42-g83b3644/urlencode.c:46:14: note: Assuming allocation function fails csync2-2.0-42-g83b3644/urlencode.c:46:14: note: Assignment 'out=malloc(len+1)', assigned value is 0 csync2-2.0-42-g83b3644/urlencode.c:48:16: note: Assuming condition is false csync2-2.0-42-g83b3644/urlencode.c:58:2: note: Null pointer dereference DONE