2026-02-12 13:18 ftp://ftp.de.debian.org/debian/pool/main/g/gftp/gftp_2.9.1~beta.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=openssl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-100-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.19.0 head-info: bd5ff18 (2026-02-12 08:09:49 +0100) count: 363 35 elapsed-time: 7.1 1.1 head-timing-info: old-timing-info: head results: gftp-2.9.1b/lib/cache.c:136:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/cache.c:202:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/cache.c:272:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/cache.c:304:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/cache.c:111:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gftp-2.9.1b/lib/cache.c:173:14: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gftp-2.9.1b/lib/cache.c:112:15: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:112:15: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:113:15: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:113:15: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:113:48: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:113:48: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:114:15: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:114:15: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:114:48: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:114:48: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:115:15: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:115:15: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:116:35: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:116:35: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:116:69: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:116:69: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:174:28: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:174:28: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:175:28: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:175:28: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:175:61: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:175:61: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:176:28: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:176:28: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:176:61: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:176:61: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:177:28: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:177:28: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:178:28: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:178:28: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:178:62: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:178:62: note: Null pointer dereference gftp-2.9.1b/lib/cache.c:107:49: style: Parameter 'request' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/cache.c:301:56: style: Parameter 'descr' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/charset-conv.c:151:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GIConv [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/charset-conv.c:30:15: style: Variable 'endpos' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/charset-conv.c:58:46: style: Parameter 'charset' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/charset-conv.c:59:32: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/config_file.c:127:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/config_file.c:207:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/config_file.c:542:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/config_file.c:690:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/config_file.c:785:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/config_file.c:1235:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/config_file.c:1298:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/config_file.c:1340:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/config_file.c:1373:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/config_file.c:1437:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/config_file.c:374:11: style: Condition 'has_colon' is always false [knownConditionTrueFalse] gftp-2.9.1b/lib/config_file.c:345:19: note: Assignment 'has_colon=0', assigned value is 0 gftp-2.9.1b/lib/config_file.c:374:11: note: Condition 'has_colon' is always false gftp-2.9.1b/lib/config_file.c:1471:29: style: Condition 'num_options_vars<0' is always true [knownConditionTrueFalse] gftp-2.9.1b/lib/config_file.c:1455:24: note: Assuming that condition 'num_options_vars==0' is not redundant gftp-2.9.1b/lib/config_file.c:1471:29: note: Condition 'num_options_vars<0' is always true gftp-2.9.1b/lib/config_file.c:370:19: warning: Either the condition 'endpos!=NULL' is redundant or there is possible null pointer dereference: endpos. [nullPointerRedundantCheck] gftp-2.9.1b/lib/config_file.c:359:29: note: Assuming that condition 'endpos!=NULL' is not redundant gftp-2.9.1b/lib/config_file.c:370:19: note: Null pointer dereference gftp-2.9.1b/lib/config_file.c:371:8: warning: Either the condition 'endpos!=NULL' is redundant or there is possible null pointer dereference: endpos. [nullPointerRedundantCheck] gftp-2.9.1b/lib/config_file.c:359:29: note: Assuming that condition 'endpos!=NULL' is not redundant gftp-2.9.1b/lib/config_file.c:371:8: note: Null pointer dereference gftp-2.9.1b/lib/config_file.c:373:8: warning: Either the condition 'endpos!=NULL' is redundant or there is possible null pointer dereference: endpos. [nullPointerRedundantCheck] gftp-2.9.1b/lib/config_file.c:359:29: note: Assuming that condition 'endpos!=NULL' is not redundant gftp-2.9.1b/lib/config_file.c:373:8: note: Null pointer dereference gftp-2.9.1b/lib/config_file.c:387:12: warning: Either the condition 'endpos!=NULL' is redundant or there is possible null pointer dereference: endpos. [nullPointerRedundantCheck] gftp-2.9.1b/lib/config_file.c:359:29: note: Assuming that condition 'endpos!=NULL' is not redundant gftp-2.9.1b/lib/config_file.c:387:12: note: Null pointer dereference gftp-2.9.1b/lib/config_file.c:369:43: warning: Either the condition 'endpos!=NULL' is redundant or there is overflow in pointer subtraction. [nullPointerArithmeticRedundantCheck] gftp-2.9.1b/lib/config_file.c:359:29: note: Assuming that condition 'endpos!=NULL' is not redundant gftp-2.9.1b/lib/config_file.c:369:43: note: Null pointer subtraction gftp-2.9.1b/lib/config_file.c:121:17: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/config_file.c:121:31: style: Parameter 'dest' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/config_file.c:175:28: style: Parameter 'global_data_path' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/config_file.c:178:22: style: Variable 'global_entry' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:334:27: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:417:40: style: Parameter 'data' can be declared as pointer to const. However it seems that 'gftp_config_write_str' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:462:43: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:417:40: note: Parameter 'data' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:441:26: style: Variable 'tempext' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:673:9: style: Variable 'bmhdr' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:673:17: style: Variable 'pwhdr' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:866:24: style: Variable 'tempentry' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:915:9: style: Variable 'outstr' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:932:9: style: Variable 'outstr' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:970:9: style: Variable 'str1' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:970:16: style: Variable 'str2' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:987:56: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'gftp_config_file_copy_ptr_contents' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1210:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:987:56: note: Parameter 'cv' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:993:34: style: Parameter 'str' can be declared as pointer to const. However it seems that 'gftp_config_file_read_int' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1200:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:993:34: note: Parameter 'str' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:1001:48: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'gftp_config_file_write_int' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1203:36: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1001:48: note: Parameter 'cv' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:1010:50: style: Parameter 'cv1' can be declared as pointer to const. However it seems that 'gftp_config_file_compare_int' is a callback function, if 'cv1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1207:40: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1010:50: note: Parameter 'cv1' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:1010:74: style: Parameter 'cv2' can be declared as pointer to const. However it seems that 'gftp_config_file_compare_int' is a callback function, if 'cv2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1207:40: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1010:74: note: Parameter 'cv2' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:1017:39: style: Parameter 'str' can be declared as pointer to const. However it seems that 'gftp_config_file_read_checkbox' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1203:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1017:39: note: Parameter 'str' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:1025:36: style: Parameter 'str' can be declared as pointer to const. However it seems that 'gftp_config_file_read_float' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1209:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1025:36: note: Parameter 'str' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:1036:50: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'gftp_config_file_write_float' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1209:33: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1036:50: note: Parameter 'cv' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:1048:52: style: Parameter 'cv1' can be declared as pointer to const. However it seems that 'gftp_config_file_compare_float' is a callback function, if 'cv1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1210:40: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1048:52: note: Parameter 'cv1' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:1048:76: style: Parameter 'cv2' can be declared as pointer to const. However it seems that 'gftp_config_file_compare_float' is a callback function, if 'cv2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1210:40: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1048:76: note: Parameter 'cv2' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:1088:16: style: Variable 'color' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:1097:49: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'gftp_config_file_copy_color' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1213:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1097:49: note: Parameter 'cv' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:1111:16: style: Variable 'color1' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:1111:26: style: Variable 'color2' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:1122:39: style: Parameter 'str' can be declared as pointer to const. However it seems that 'gftp_config_file_read_intcombo' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1206:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1122:39: note: Parameter 'str' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:1162:40: style: Parameter 'str' can be declared as pointer to const. However it seems that 'gftp_config_file_read_textcombo' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1191:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1162:40: note: Parameter 'str' can be declared as pointer to const gftp-2.9.1b/lib/config_file.c:1224:22: style: Variable 'tmpconfigvar' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:1245:22: style: Variable 'tmpconfigvar' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:1260:22: style: Variable 'tmpconfigvar' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/config_file.c:1229:13: warning: Size of pointer 'value' used instead of size of its data. [pointerSize] gftp-2.9.1b/lib/config_file.c:1250:13: warning: Size of pointer 'value' used instead of size of its data. [pointerSize] gftp-2.9.1b/lib/config_file.c:1265:13: warning: Size of pointer 'value' used instead of size of its data. [pointerSize] gftp-2.9.1b/lib/fsplib.c:42:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:83:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:126:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:166:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:237:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:420:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:558:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:578:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:638:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:760:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:851:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:917:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:955:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:963:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:1004:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:1034:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:1081:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:1142:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:1165:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:1197:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:1255:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:1308:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/fsplib.c:437:25: style: Condition 'client_init_key((struct FSP_LOCK*)s->lock,addrin->sin_addr.s_addr,ntohs(addrin->sin_port))' is always false [knownConditionTrueFalse] gftp-2.9.1b/lib/fsplib.c:437:25: note: Calling function 'client_init_key' returns 0 gftp-2.9.1b/lib/fsplib.c:437:25: note: Condition 'client_init_key((struct FSP_LOCK*)s->lock,addrin->sin_addr.s_addr,ntohs(addrin->sin_port))' is always false gftp-2.9.1b/lib/fsplib.c:826:24: style:inconclusive: Function 'fsp_fread' argument 1 names different: declaration 'ptr' definition 'dest'. [funcArgNamesDifferent] gftp-2.9.1b/lib/fsplib.h:195:24: note: Function 'fsp_fread' argument 1 names different: declaration 'ptr' definition 'dest'. gftp-2.9.1b/lib/fsplib.c:826:24: note: Function 'fsp_fread' argument 1 names different: declaration 'ptr' definition 'dest'. gftp-2.9.1b/lib/fsplib.c:826:48: style:inconclusive: Function 'fsp_fread' argument 3 names different: declaration 'nmemb' definition 'count'. [funcArgNamesDifferent] gftp-2.9.1b/lib/fsplib.h:195:47: note: Function 'fsp_fread' argument 3 names different: declaration 'nmemb' definition 'count'. gftp-2.9.1b/lib/fsplib.c:826:48: note: Function 'fsp_fread' argument 3 names different: declaration 'nmemb' definition 'count'. gftp-2.9.1b/lib/fsplib.c:408:26: style: Variable 'addrin' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/fsplib.c:728:27: style: Parameter 'dirp' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/fsplib.c:1053:26: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/fsplib.h:225:46: style: Parameter 'lock' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/fsplib.c:577:41: warning: Uninitialized variable: *result [uninitvar] gftp-2.9.1b/lib/fsplib.c:722:43: note: Calling function 'fsp_readdir_r', 3rd argument '&result' value is gftp-2.9.1b/lib/fsplib.c:577:41: note: Uninitialized variable: *result gftp-2.9.1b/lib/ftp-dir-listing.c:235:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/ftp-dir-listing.c:305:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/ftp-dir-listing.c:360:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/ftp-dir-listing.c:404:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/ftp-dir-listing.c:559:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/ftp-dir-listing.c:175:21: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] gftp-2.9.1b/lib/ftp-dir-listing.c:744:8: style: Condition 'strtype' is always true [knownConditionTrueFalse] gftp-2.9.1b/lib/ftp-dir-listing.c:744:19: style: Condition '*strtype' is always true [knownConditionTrueFalse] gftp-2.9.1b/lib/ftp-dir-listing.c:662:4: warning: If memory allocation fails, then there is a possible null pointer dereference: tokens [nullPointerOutOfMemory] gftp-2.9.1b/lib/ftp-dir-listing.c:658:29: note: Assuming allocation function fails gftp-2.9.1b/lib/ftp-dir-listing.c:658:13: note: Assignment 'tokens=(char**)calloc(ntokens+1,sizeof(char**))', assigned value is 0 gftp-2.9.1b/lib/ftp-dir-listing.c:662:4: note: Null pointer dereference gftp-2.9.1b/lib/ftp-dir-listing.c:678:4: warning: If memory allocation fails, then there is a possible null pointer dereference: tokens [nullPointerOutOfMemory] gftp-2.9.1b/lib/ftp-dir-listing.c:658:29: note: Assuming allocation function fails gftp-2.9.1b/lib/ftp-dir-listing.c:658:13: note: Assignment 'tokens=(char**)calloc(ntokens+1,sizeof(char**))', assigned value is 0 gftp-2.9.1b/lib/ftp-dir-listing.c:666:14: note: Assuming condition is false gftp-2.9.1b/lib/ftp-dir-listing.c:678:4: note: Null pointer dereference gftp-2.9.1b/lib/ftp-dir-listing.c:681:16: warning: If memory allocation fails, then there is a possible null pointer dereference: tokens [nullPointerOutOfMemory] gftp-2.9.1b/lib/ftp-dir-listing.c:658:29: note: Assuming allocation function fails gftp-2.9.1b/lib/ftp-dir-listing.c:658:13: note: Assignment 'tokens=(char**)calloc(ntokens+1,sizeof(char**))', assigned value is 0 gftp-2.9.1b/lib/ftp-dir-listing.c:666:14: note: Assuming condition is false gftp-2.9.1b/lib/ftp-dir-listing.c:681:16: note: Null pointer dereference gftp-2.9.1b/lib/ftp-dir-listing.c:771:11: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] gftp-2.9.1b/lib/ftp-dir-listing.c:776:6: note: Found duplicate branches for 'if' and 'else'. gftp-2.9.1b/lib/ftp-dir-listing.c:771:11: note: Found duplicate branches for 'if' and 'else'. gftp-2.9.1b/lib/ftp-dir-listing.c:41:34: style: Parameter 'response_str' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/ftp-dir-listing.c:141:23: style: Variable 'loctime' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/ftp-dir-listing.c:421:23: style: Variable 'ftpdat' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/ftp-dir-listing.c:616:11: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/ftp-dir-listing.c:616:34: style: Variable 'strsize' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/ftp-dir-listing.c:616:58: style: Variable 'strperm' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/ftp-dir-listing.c:617:11: style: Variable 'strunix_uid' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/ftp-dir-listing.c:617:26: style: Variable 'strunix_gid' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/ftp-dir-listing.c:617:41: style: Variable 'strunix_mode' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/ftp-dir-listing.c:618:11: style: Variable 'strunix_owner' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/ftp-dir-listing.c:618:28: style: Variable 'strunix_group' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/ftp-dir-listing.c:618:45: style: Variable 'strunix_ownername' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/ftp-dir-listing.c:618:66: style: Variable 'strunix_groupname' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/ftp-dir-listing.c:805:23: style: Variable 'ftpdat' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/misc.c:1099:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHARE_DIR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/misc.c:396:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] gftp-2.9.1b/lib/misc.c:154:14: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] gftp-2.9.1b/lib/misc.c:160:16: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] gftp-2.9.1b/lib/misc.c:810:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] gftp-2.9.1b/lib/misc.c:1172:7: style: Variable 'p' is assigned an expression that holds the same value. [redundantAssignment] gftp-2.9.1b/lib/misc.c:1154:6: note: p is assigned '*pos' here. gftp-2.9.1b/lib/misc.c:1155:8: note: Assuming condition is false gftp-2.9.1b/lib/misc.c:1172:7: note: Variable 'p' is assigned an expression that holds the same value. gftp-2.9.1b/lib/misc.c:235:57: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gftp-2.9.1b/lib/misc.c:46:9: style: Variable 'frompos' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/misc.c:144:59: style: Variable 'ntoken' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/misc.c:334:35: style: Parameter 'argc' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/misc.c:727:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/misc.c:802:57: style: Parameter 'fle' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/misc.c:803:27: style: Parameter 'file_prefixstr' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/misc.c:803:49: style: Parameter 'file_suffixstr' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/misc.c:807:14: style: Variable 'lt' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/misc.c:1109:19: style: Variable 'pointzero' is assigned a value that is never used. [unreadVariable] gftp-2.9.1b/lib/protocol_fsp.c:176:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_fsp.c:248:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_fsp.c:286:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_fsp.c:422:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_fsp.c:529:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_fsp.c:581:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_fsp.c:623:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_fsp.c:42:41: style: Parameter 'request' can be declared as pointer to const. However it seems that 'fsp_destroy' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/protocol_fsp.c:667:22: note: You might need to cast the function pointer here gftp-2.9.1b/lib/protocol_fsp.c:42:41: note: Parameter 'request' can be declared as pointer to const gftp-2.9.1b/lib/protocol_ftp.c:834:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_ftp.c:1890:12: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] gftp-2.9.1b/lib/protocol_ftp.c:1048:47: error: Invalid toupper() argument nr 1. A non-boolean value is required. [invalidFunctionArgBool] gftp-2.9.1b/lib/protocol_ftp.c:1050:52: error: Invalid toupper() argument nr 1. A non-boolean value is required. [invalidFunctionArgBool] gftp-2.9.1b/lib/protocol_ftp.c:1567:66: style: Condition 'strncmp(tempstr,"total",strlen("total"))!=0' is always true [knownConditionTrueFalse] gftp-2.9.1b/lib/protocol_ftp.c:428:15: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gftp-2.9.1b/lib/protocol_ftp.c:940:21: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gftp-2.9.1b/lib/protocol_ftp.c:948:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] gftp-2.9.1b/lib/protocol_ftp.c:948:21: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] gftp-2.9.1b/lib/protocol_ftp.c:948:21: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] gftp-2.9.1b/lib/protocol_ftp.c:948:21: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] gftp-2.9.1b/lib/protocol_ftp.c:948:21: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] gftp-2.9.1b/lib/protocol_ftp.c:948:21: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] gftp-2.9.1b/lib/protocol_ftp.c:1566:65: style: Same expression on both sides of '&&'. [duplicateExpression] gftp-2.9.1b/lib/protocol_ftp.c:725:12: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] gftp-2.9.1b/lib/protocol_ftp.c:721:7: note: ret is assigned gftp-2.9.1b/lib/protocol_ftp.c:725:12: note: ret is overwritten gftp-2.9.1b/lib/protocol_ftp.c:1230:12: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] gftp-2.9.1b/lib/protocol_ftp.c:1223:9: note: ret is assigned gftp-2.9.1b/lib/protocol_ftp.c:1230:12: note: ret is overwritten gftp-2.9.1b/lib/protocol_ftp.c:116:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_ftp.c:374:9: style: Variable 'startpos' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_ftp.c:610:19: style: Variable 'startpos' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_ftp.c:809:9: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_ftp.c:809:15: style: Variable 'pos1' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_ftp.c:1032:26: style: Variable 'tempext' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_ftp.c:1034:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_ftp.c:1065:9: style: Variable 'tempstr' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_ftp.c:1097:43: style: Parameter 'transfer_command' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/protocol_ftp.c:1165:9: style: Variable 'tempstr' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_ftp.c:1244:33: style: Variable 'ftpfrom' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_ftp.c:1244:44: style: Variable 'ftpto' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_ftp.c:1815:51: style: Parameter 'request' can be declared as pointer to const. However it seems that 'ftp_set_config_options' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/protocol_ftp.c:1928:33: note: You might need to cast the function pointer here gftp-2.9.1b/lib/protocol_ftp.c:1815:51: note: Parameter 'request' can be declared as pointer to const gftp-2.9.1b/lib/protocol_ftp.c:1879:18: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_ftp.c:150:13: style: Variable 'lines' is assigned a value that is never used. [unreadVariable] gftp-2.9.1b/lib/protocol_ftp.c:247:17: style: Variable 'code[3]' is assigned a value that is never used. [unreadVariable] gftp-2.9.1b/lib/protocol_ftp.c:850:35: style: Variable 'USE_EPRT' is assigned a value that is never used. [unreadVariable] gftp-2.9.1b/lib/protocol_ftp.c:1350:16: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] gftp-2.9.1b/lib/protocol_ftps.c:240:8: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] gftp-2.9.1b/lib/protocol_ftps.c:239:8: note: ret is assigned gftp-2.9.1b/lib/protocol_ftps.c:240:8: note: ret is overwritten gftp-2.9.1b/lib/protocol_http.c:307:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_http.c:527:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_http.c:388:15: style: Condition 'len==httpdat->rbuf->cur_bufsize' is always false [knownConditionTrueFalse] gftp-2.9.1b/lib/protocol_http.c:385:11: note: len is assigned 'httpdat->rbuf->cur_bufsize>size?size:httpdat->rbuf->cur_bufsize' here. gftp-2.9.1b/lib/protocol_http.c:388:15: note: Condition 'len==httpdat->rbuf->cur_bufsize' is always false gftp-2.9.1b/lib/protocol_http.c:79:4: warning: If memory allocation fails, then there is a possible null pointer dereference: newstr [nullPointerOutOfMemory] gftp-2.9.1b/lib/protocol_http.c:78:29: note: Assuming allocation function fails gftp-2.9.1b/lib/protocol_http.c:78:13: note: Assignment 'newstr=(char*)calloc(num*4+1,sizeof(char))', assigned value is 0 gftp-2.9.1b/lib/protocol_http.c:79:4: note: Null pointer dereference gftp-2.9.1b/lib/protocol_http.c:90:14: warning: If memory allocation fails, then there is a possible null pointer dereference: newpos++ [nullPointerOutOfMemory] gftp-2.9.1b/lib/protocol_http.c:78:29: note: Assuming allocation function fails gftp-2.9.1b/lib/protocol_http.c:78:13: note: Assignment 'newstr=(char*)calloc(num*4+1,sizeof(char))', assigned value is 0 gftp-2.9.1b/lib/protocol_http.c:80:13: note: Assignment 'newpos=newstr', assigned value is 0 gftp-2.9.1b/lib/protocol_http.c:90:14: note: Null pointer dereference gftp-2.9.1b/lib/protocol_http.c:90:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gftp-2.9.1b/lib/protocol_http.c:78:29: note: Assuming allocation function fails gftp-2.9.1b/lib/protocol_http.c:78:13: note: Assignment 'newstr=(char*)calloc(num*4+1,sizeof(char))', assigned value is 0 gftp-2.9.1b/lib/protocol_http.c:80:13: note: Assignment 'newpos=newstr', assigned value is 0 gftp-2.9.1b/lib/protocol_http.c:90:14: note: Null pointer addition gftp-2.9.1b/lib/protocol_http.c:58:38: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_http.c:105:10: style: Variable 'proxy_config' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_http.c:226:26: style: Variable 'proxy_hostname' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_http.c:226:43: style: Variable 'proxy_username' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_http.c:226:60: style: Variable 'proxy_password' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocol_http.c:700:52: style: Parameter 'request' can be declared as pointer to const. However it seems that 'http_set_config_options' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/protocol_http.c:954:34: note: You might need to cast the function pointer here gftp-2.9.1b/lib/protocol_http.c:700:52: note: Parameter 'request' can be declared as pointer to const gftp-2.9.1b/lib/protocol_localfs.c:62:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:128:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:160:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:179:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:230:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:288:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:440:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:502:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:538:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:555:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:613:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:657:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:699:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocol_localfs.c:367:17: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] gftp-2.9.1b/lib/protocol_localfs.c:381:17: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] gftp-2.9.1b/lib/protocol_localfs.c:682:13: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] gftp-2.9.1b/lib/protocol_localfs.c:686:11: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] gftp-2.9.1b/lib/protocols.c:445:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocols.c:504:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocols.c:900:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocols.c:1649:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocols.c:1700:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocols.c:1753:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/protocols.c:1488:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gftp-2.9.1b/lib/protocols.c:1660:7: error: Resource leak: fd [resourceLeak] gftp-2.9.1b/lib/protocols.c:108:13: warning: Either the condition 'file' is redundant or there is possible null pointer dereference: file. [nullPointerRedundantCheck] gftp-2.9.1b/lib/protocols.c:105:18: note: Assuming that condition 'file' is not redundant gftp-2.9.1b/lib/protocols.c:108:13: note: Null pointer dereference gftp-2.9.1b/lib/protocols.c:1043:51: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gftp-2.9.1b/lib/protocols.c:1051:47: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gftp-2.9.1b/lib/protocols.c:1142:57: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gftp-2.9.1b/lib/protocols.c:1149:50: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gftp-2.9.1b/lib/protocols.c:1634:79: style:inconclusive: Function 'gftp_fd_open' argument 4 names different: declaration 'perms' definition 'mode'. [funcArgNamesDifferent] gftp-2.9.1b/lib/gftp.h:849:26: note: Function 'gftp_fd_open' argument 4 names different: declaration 'perms' definition 'mode'. gftp-2.9.1b/lib/protocols.c:1634:79: note: Function 'gftp_fd_open' argument 4 names different: declaration 'perms' definition 'mode'. gftp-2.9.1b/lib/protocols.c:1002:10: style: Variable 'newsize' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocols.c:1098:10: style: Variable 'newsize' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocols.c:1389:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocols.c:1390:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/protocols.c:1740:49: style: Parameter 'attribs' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/protocols.c:1785:44: style: Parameter 'request' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/protocols.c:198:20: style: union member 'Anonymous0::i' is never used. [unusedStructMember] gftp-2.9.1b/lib/protocols.c:1455:20: style: union member 'Anonymous1::i' is never used. [unusedStructMember] gftp-2.9.1b/lib/protocols.c:355:9: style: Unused variable: remote_lc_time [unusedVariable] gftp-2.9.1b/lib/pty.c:153:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/pty.c:173:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/pty.c:197:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IGNPAR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/pty.c:248:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/pty.c:139:9: style: Variable 'pos1' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/pty.c:139:16: style: Variable 'pos2' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/pty.c:169:42: style: Parameter 'pts_name' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/socket-connect.c:30:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/socket-connect.c:42:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/socket-connect.c:54:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/socket-connect.c:64:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/socket-connect.c:73:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/socket-connect.c:84:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/socket-connect.c:110:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AI_CANONNAME [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/socket-connect.c:158:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/socket-connect.c:240:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ai_canonname [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/socket-connect.c:341:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/socket-connect.c:404:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/socket-connect.c:131:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gftp-2.9.1b/lib/socket-connect.c:396:7: error: Memory leak: saddr [memleak] gftp-2.9.1b/lib/socket-connect.c:154:18: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:321:35: note: Calling function 'connection_new', 2nd argument 'addri' value is 0 gftp-2.9.1b/lib/socket-connect.c:154:18: note: Null pointer dereference gftp-2.9.1b/lib/socket-connect.c:154:36: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:321:35: note: Calling function 'connection_new', 2nd argument 'addri' value is 0 gftp-2.9.1b/lib/socket-connect.c:154:36: note: Null pointer dereference gftp-2.9.1b/lib/socket-connect.c:315:3: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:315:3: note: Null pointer dereference gftp-2.9.1b/lib/socket-connect.c:316:3: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:316:3: note: Null pointer dereference gftp-2.9.1b/lib/socket-connect.c:318:3: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:318:3: note: Null pointer dereference gftp-2.9.1b/lib/socket-connect.c:319:3: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:319:3: note: Null pointer dereference gftp-2.9.1b/lib/socket-connect.c:392:3: warning: If memory allocation fails, then there is a possible null pointer dereference: saddr [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:391:18: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:391:18: note: Assignment 'saddr=calloc(1,request->remote_addr_len)', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:392:3: note: Null pointer dereference gftp-2.9.1b/lib/socket-connect.c:40:10: style: Variable 'sin_addr' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/socket-connect.c:62:50: style: Parameter 'saddr' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/socket-connect.c:94:45: style: Parameter 'service' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/sockutils.c:187:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/sockutils.c:265:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/sockutils.c:356:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/sockutils.c:376:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/sockutils.c:415:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h_errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/sockutils.c:412:15: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] gftp-2.9.1b/lib/sshv2.c:422:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/sshv2.c:1254:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gftp-2.9.1b/lib/sshv2.c:768:6: warning: Either the condition 'len>33995' is redundant or the array 'buf[34000]' is accessed at index 34000, which is out of bounds. [arrayIndexOutOfBoundsCond] gftp-2.9.1b/lib/sshv2.c:756:11: note: Assuming that condition 'len>33995' is not redundant gftp-2.9.1b/lib/sshv2.c:768:6: note: Array index out of bounds gftp-2.9.1b/lib/sshv2.c:1385:19: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gftp-2.9.1b/lib/sshv2.c:1389:20: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gftp-2.9.1b/lib/sshv2.c:408:5: error: Memory leak: tempstr [memleak] gftp-2.9.1b/lib/sshv2.c:411:5: error: Memory leak: tempstr [memleak] gftp-2.9.1b/lib/sshv2.c:485:55: style: Same expression on both sides of '||'. [duplicateExpression] gftp-2.9.1b/lib/sshv2.c:213:61: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gftp-2.9.1b/lib/sshv2.c:267:67: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gftp-2.9.1b/lib/sshv2.c:390:16: style: Variable 'pwstrs' can be declared as const array [constVariable] gftp-2.9.1b/lib/sshv2.c:395:38: style: Variable 'yesstr' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/sshv2.c:594:18: style: Variable 'params' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/sshv2.c:749:62: style: Parameter 'command' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/lib/sshv2.c:791:18: style: Variable 'params' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/sshv2.c:1443:9: style: Variable 'stpos' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/sshv2.c:1971:58: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'sshv2_put_next_file_chunk' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/sshv2.c:2124:34: note: You might need to cast the function pointer here gftp-2.9.1b/lib/sshv2.c:1971:58: note: Parameter 'buf' can be declared as pointer to const gftp-2.9.1b/lib/sshv2.c:2046:18: style: Variable 'sparams' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/sshv2.c:1369:44: style: Variable 'i' is assigned a value that is never used. [unreadVariable] gftp-2.9.1b/lib/sshv2.c:1425:20: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] gftp-2.9.1b/src/gtk/gtkcompat.h:494:2: error: failed to evaluate #if condition, undefined function-like macro invocation: CAIRO_VERSION_ENCODE( ... ) [syntaxError] gftp-2.9.1b/src/gtk/bookmarks_edit_entry.c:89:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GFTP_ANONYMOUS_USER [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/gtk/bookmarks_edit_entry.c:137:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/gtk/bookmarks_edit_entry.c:190:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable edit_bm_entry_dlg [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/text/gftp-text.c:32:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/text/gftp-text.c:160:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/text/gftp-text.c:306:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/text/gftp-text.c:162:18: portability: Non reentrant function 'ctermid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ctermid_r'. [prohibitedctermidCalled] gftp-2.9.1b/src/text/gftp-text.c:198:9: error: Resource leak: infd [resourceLeak] gftp-2.9.1b/src/text/gftp-text.c:279:40: warning: Either the condition '(pos=strrchr(argv[2],'/'))!=NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] gftp-2.9.1b/src/text/gftp-text.c:267:42: note: Assuming that condition '(pos=strrchr(argv[2],'/'))!=NULL' is not redundant gftp-2.9.1b/src/text/gftp-text.c:279:40: note: Null pointer addition gftp-2.9.1b/src/text/textui.c:34:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXUSR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/text/textui.c:226:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/text/textui.c:27:40: style: Parameter 'fle' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/src/text/textui.c:65:48: style: Parameter 'cdata' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/src/text/textui.c:101:46: style: Parameter 'tdata' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/src/text/textui.c:101:61: style: Parameter 'curfle' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/src/text/textui.c:118:57: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/src/text/textui.c:201:44: style: Parameter 'tdata' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/src/text/textui.c:204:9: style: Variable 'progress' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/src/text/textui.c:270:72: style: Parameter 'question' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/src/text/textui.c:293:39: style: Parameter 'question' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/src/uicommon/gftpui.c:128:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/uicommon/gftpui.c:147:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/uicommon/gftpui.c:1427:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/uicommon/gftpui.c:213:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:211:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:213:7: note: Null pointer dereference gftp-2.9.1b/src/uicommon/gftpui.c:256:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:254:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:256:7: note: Null pointer dereference gftp-2.9.1b/src/uicommon/gftpui.c:297:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:295:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:297:7: note: Null pointer dereference gftp-2.9.1b/src/uicommon/gftpui.c:333:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:331:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:333:7: note: Null pointer dereference gftp-2.9.1b/src/uicommon/gftpui.c:369:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:367:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:369:7: note: Null pointer dereference gftp-2.9.1b/src/uicommon/gftpui.c:406:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:404:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:406:7: note: Null pointer dereference gftp-2.9.1b/src/uicommon/gftpui.c:443:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:441:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:443:7: note: Null pointer dereference gftp-2.9.1b/src/uicommon/gftpui.c:510:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:508:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:510:7: note: Null pointer dereference gftp-2.9.1b/src/uicommon/gftpui.c:596:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:594:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:596:7: note: Null pointer dereference gftp-2.9.1b/src/uicommon/gftpui.c:870:7: warning: Either the condition '(fromrequest)!=NULL' is redundant or there is possible null pointer dereference: fromrequest. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:867:8: note: Assuming that condition '(fromrequest)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:870:7: note: Null pointer dereference gftp-2.9.1b/src/uicommon/gftpui.c:457:74: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gftp-2.9.1b/src/uicommon/gftpui.c:181:32: style: Parameter 'uidata' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_ascii' is a callback function, if 'uidata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:967:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:181:32: note: Parameter 'uidata' can be declared as pointer to const gftp-2.9.1b/src/uicommon/gftpui.c:181:55: style: Parameter 'request' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_ascii' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:967:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:181:55: note: Parameter 'request' can be declared as pointer to const gftp-2.9.1b/src/uicommon/gftpui.c:182:32: style: Parameter 'other_uidata' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_ascii' is a callback function, if 'other_uidata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:967:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:182:32: note: Parameter 'other_uidata' can be declared as pointer to const gftp-2.9.1b/src/uicommon/gftpui.c:182:61: style: Parameter 'other_request' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_ascii' is a callback function, if 'other_request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:967:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:182:61: note: Parameter 'other_request' can be declared as pointer to const gftp-2.9.1b/src/uicommon/gftpui.c:192:33: style: Parameter 'uidata' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_binary' is a callback function, if 'uidata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:969:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:192:33: note: Parameter 'uidata' can be declared as pointer to const gftp-2.9.1b/src/uicommon/gftpui.c:192:56: style: Parameter 'request' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_binary' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:969:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:192:56: note: Parameter 'request' can be declared as pointer to const gftp-2.9.1b/src/uicommon/gftpui.c:193:32: style: Parameter 'other_uidata' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_binary' is a callback function, if 'other_uidata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:969:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:193:32: note: Parameter 'other_uidata' can be declared as pointer to const gftp-2.9.1b/src/uicommon/gftpui.c:193:61: style: Parameter 'other_request' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_binary' is a callback function, if 'other_request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:969:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:193:61: note: Parameter 'other_request' can be declared as pointer to const gftp-2.9.1b/src/uicommon/gftpui.c:523:31: style: Parameter 'uidata' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_quit' is a callback function, if 'uidata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:1023:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:523:31: note: Parameter 'uidata' can be declared as pointer to const gftp-2.9.1b/src/uicommon/gftpui.c:523:54: style: Parameter 'request' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_quit' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:1023:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:523:54: note: Parameter 'request' can be declared as pointer to const gftp-2.9.1b/src/uicommon/gftpui.c:524:31: style: Parameter 'other_uidata' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_quit' is a callback function, if 'other_uidata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:1023:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:524:31: note: Parameter 'other_uidata' can be declared as pointer to const gftp-2.9.1b/src/uicommon/gftpui.c:524:60: style: Parameter 'other_request' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_quit' is a callback function, if 'other_request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:1023:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:524:60: note: Parameter 'other_request' can be declared as pointer to const gftp-2.9.1b/src/uicommon/gftpui.c:695:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/src/uicommon/gftpui.c:1141:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/src/uicommon/gftpui.c:1411:71: style: Parameter 'curfle' can be declared as pointer to const [constParameterPointer] gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:112:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:153:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:68:9: style: Variable 'sortcol_var' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:68:23: style: Variable 'sortasds_var' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:154:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:156:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] gftp-2.9.1b/lib/cache.c:112:15: warning: Null pointer dereference: request [ctunullpointer] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:35: note: Calling function gftp_generate_cache_description, 1st argument is null gftp-2.9.1b/lib/cache.c:112:15: note: Dereferencing argument request that is null gftp-2.9.1b/lib/ftp-dir-listing.c:147:18: warning: Null pointer dereference: str [ctunullpointer] gftp-2.9.1b/lib/protocol_http.c:584:12: note: Assuming that condition 'pos==NULL' is not redundant gftp-2.9.1b/lib/protocol_http.c:579:31: note: Calling function parse_time, 1st argument is null gftp-2.9.1b/lib/ftp-dir-listing.c:147:18: note: Dereferencing argument str that is null gftp-2.9.1b/lib/socket-connect.c:154:18: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [ctunullpointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:321:25: note: Calling function connection_new, 2nd argument is null gftp-2.9.1b/lib/socket-connect.c:154:18: note: Dereferencing argument addri that is null diff: head gftp-2.9.1b/lib/cache.c:107:49: style: Parameter 'request' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/cache.c:111:3: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head gftp-2.9.1b/lib/cache.c:112:15: warning: Null pointer dereference: request [ctunullpointer] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:35: note: Calling function gftp_generate_cache_description, 1st argument is null gftp-2.9.1b/lib/cache.c:112:15: note: Dereferencing argument request that is null head gftp-2.9.1b/lib/cache.c:112:15: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:112:15: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:113:15: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:113:15: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:113:48: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:113:48: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:114:15: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:114:15: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:114:48: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:114:48: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:115:15: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:115:15: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:116:35: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:116:35: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:116:69: warning:inconclusive: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:236:27: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:211:36: note: Calling function 'gftp_generate_cache_description', 1st argument 'request' value is 0 gftp-2.9.1b/lib/cache.c:116:69: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:136:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/cache.c:173:14: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head gftp-2.9.1b/lib/cache.c:174:28: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:174:28: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:175:28: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:175:28: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:175:61: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:175:61: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:176:28: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:176:28: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:176:61: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:176:61: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:177:28: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:177:28: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:178:28: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:178:28: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:178:62: warning: Either the condition 'request!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/lib/cache.c:186:19: note: Assuming that condition 'request!=NULL' is not redundant gftp-2.9.1b/lib/cache.c:178:62: note: Null pointer dereference head gftp-2.9.1b/lib/cache.c:202:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/cache.c:272:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/cache.c:301:56: style: Parameter 'descr' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/cache.c:304:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/charset-conv.c:151:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GIConv [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/charset-conv.c:30:15: style: Variable 'endpos' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/charset-conv.c:58:46: style: Parameter 'charset' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/charset-conv.c:59:32: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/config_file.c:1001:48: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'gftp_config_file_write_int' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1203:36: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1001:48: note: Parameter 'cv' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:1010:50: style: Parameter 'cv1' can be declared as pointer to const. However it seems that 'gftp_config_file_compare_int' is a callback function, if 'cv1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1207:40: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1010:50: note: Parameter 'cv1' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:1010:74: style: Parameter 'cv2' can be declared as pointer to const. However it seems that 'gftp_config_file_compare_int' is a callback function, if 'cv2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1207:40: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1010:74: note: Parameter 'cv2' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:1017:39: style: Parameter 'str' can be declared as pointer to const. However it seems that 'gftp_config_file_read_checkbox' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1203:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1017:39: note: Parameter 'str' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:1025:36: style: Parameter 'str' can be declared as pointer to const. However it seems that 'gftp_config_file_read_float' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1209:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1025:36: note: Parameter 'str' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:1036:50: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'gftp_config_file_write_float' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1209:33: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1036:50: note: Parameter 'cv' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:1048:52: style: Parameter 'cv1' can be declared as pointer to const. However it seems that 'gftp_config_file_compare_float' is a callback function, if 'cv1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1210:40: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1048:52: note: Parameter 'cv1' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:1048:76: style: Parameter 'cv2' can be declared as pointer to const. However it seems that 'gftp_config_file_compare_float' is a callback function, if 'cv2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1210:40: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1048:76: note: Parameter 'cv2' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:1088:16: style: Variable 'color' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:1097:49: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'gftp_config_file_copy_color' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1213:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1097:49: note: Parameter 'cv' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:1111:16: style: Variable 'color1' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:1111:26: style: Variable 'color2' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:1122:39: style: Parameter 'str' can be declared as pointer to const. However it seems that 'gftp_config_file_read_intcombo' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1206:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1122:39: note: Parameter 'str' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:1162:40: style: Parameter 'str' can be declared as pointer to const. However it seems that 'gftp_config_file_read_textcombo' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1191:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:1162:40: note: Parameter 'str' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:121:17: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/config_file.c:121:31: style: Parameter 'dest' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/config_file.c:1224:22: style: Variable 'tmpconfigvar' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:1229:13: warning: Size of pointer 'value' used instead of size of its data. [pointerSize] head gftp-2.9.1b/lib/config_file.c:1235:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/config_file.c:1245:22: style: Variable 'tmpconfigvar' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:1250:13: warning: Size of pointer 'value' used instead of size of its data. [pointerSize] head gftp-2.9.1b/lib/config_file.c:1260:22: style: Variable 'tmpconfigvar' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:1265:13: warning: Size of pointer 'value' used instead of size of its data. [pointerSize] head gftp-2.9.1b/lib/config_file.c:127:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/config_file.c:1298:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/config_file.c:1340:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/config_file.c:1373:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/config_file.c:1437:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/config_file.c:1471:29: style: Condition 'num_options_vars<0' is always true [knownConditionTrueFalse] gftp-2.9.1b/lib/config_file.c:1455:24: note: Assuming that condition 'num_options_vars==0' is not redundant gftp-2.9.1b/lib/config_file.c:1471:29: note: Condition 'num_options_vars<0' is always true head gftp-2.9.1b/lib/config_file.c:175:28: style: Parameter 'global_data_path' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/config_file.c:178:22: style: Variable 'global_entry' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:207:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/config_file.c:334:27: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:369:43: warning: Either the condition 'endpos!=NULL' is redundant or there is overflow in pointer subtraction. [nullPointerArithmeticRedundantCheck] gftp-2.9.1b/lib/config_file.c:359:29: note: Assuming that condition 'endpos!=NULL' is not redundant gftp-2.9.1b/lib/config_file.c:369:43: note: Null pointer subtraction head gftp-2.9.1b/lib/config_file.c:370:19: warning: Either the condition 'endpos!=NULL' is redundant or there is possible null pointer dereference: endpos. [nullPointerRedundantCheck] gftp-2.9.1b/lib/config_file.c:359:29: note: Assuming that condition 'endpos!=NULL' is not redundant gftp-2.9.1b/lib/config_file.c:370:19: note: Null pointer dereference head gftp-2.9.1b/lib/config_file.c:371:8: warning: Either the condition 'endpos!=NULL' is redundant or there is possible null pointer dereference: endpos. [nullPointerRedundantCheck] gftp-2.9.1b/lib/config_file.c:359:29: note: Assuming that condition 'endpos!=NULL' is not redundant gftp-2.9.1b/lib/config_file.c:371:8: note: Null pointer dereference head gftp-2.9.1b/lib/config_file.c:373:8: warning: Either the condition 'endpos!=NULL' is redundant or there is possible null pointer dereference: endpos. [nullPointerRedundantCheck] gftp-2.9.1b/lib/config_file.c:359:29: note: Assuming that condition 'endpos!=NULL' is not redundant gftp-2.9.1b/lib/config_file.c:373:8: note: Null pointer dereference head gftp-2.9.1b/lib/config_file.c:374:11: style: Condition 'has_colon' is always false [knownConditionTrueFalse] gftp-2.9.1b/lib/config_file.c:345:19: note: Assignment 'has_colon=0', assigned value is 0 gftp-2.9.1b/lib/config_file.c:374:11: note: Condition 'has_colon' is always false head gftp-2.9.1b/lib/config_file.c:387:12: warning: Either the condition 'endpos!=NULL' is redundant or there is possible null pointer dereference: endpos. [nullPointerRedundantCheck] gftp-2.9.1b/lib/config_file.c:359:29: note: Assuming that condition 'endpos!=NULL' is not redundant gftp-2.9.1b/lib/config_file.c:387:12: note: Null pointer dereference head gftp-2.9.1b/lib/config_file.c:417:40: style: Parameter 'data' can be declared as pointer to const. However it seems that 'gftp_config_write_str' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:462:43: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:417:40: note: Parameter 'data' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:441:26: style: Variable 'tempext' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:542:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/config_file.c:673:17: style: Variable 'pwhdr' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:673:9: style: Variable 'bmhdr' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:690:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/config_file.c:785:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/config_file.c:866:24: style: Variable 'tempentry' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:915:9: style: Variable 'outstr' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:932:9: style: Variable 'outstr' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:970:16: style: Variable 'str2' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:970:9: style: Variable 'str1' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/config_file.c:987:56: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'gftp_config_file_copy_ptr_contents' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1210:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:987:56: note: Parameter 'cv' can be declared as pointer to const head gftp-2.9.1b/lib/config_file.c:993:34: style: Parameter 'str' can be declared as pointer to const. However it seems that 'gftp_config_file_read_int' is a callback function, if 'str' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/config_file.c:1200:4: note: You might need to cast the function pointer here gftp-2.9.1b/lib/config_file.c:993:34: note: Parameter 'str' can be declared as pointer to const head gftp-2.9.1b/lib/ftp-dir-listing.c:141:23: style: Variable 'loctime' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:147:18: warning: Null pointer dereference: str [ctunullpointer] gftp-2.9.1b/lib/protocol_http.c:584:12: note: Assuming that condition 'pos==NULL' is not redundant gftp-2.9.1b/lib/protocol_http.c:579:31: note: Calling function parse_time, 1st argument is null gftp-2.9.1b/lib/ftp-dir-listing.c:147:18: note: Dereferencing argument str that is null head gftp-2.9.1b/lib/ftp-dir-listing.c:175:21: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] head gftp-2.9.1b/lib/ftp-dir-listing.c:235:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/ftp-dir-listing.c:305:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/ftp-dir-listing.c:360:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/ftp-dir-listing.c:404:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/ftp-dir-listing.c:41:34: style: Parameter 'response_str' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:421:23: style: Variable 'ftpdat' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:559:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/ftp-dir-listing.c:616:11: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:616:34: style: Variable 'strsize' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:616:58: style: Variable 'strperm' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:617:11: style: Variable 'strunix_uid' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:617:26: style: Variable 'strunix_gid' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:617:41: style: Variable 'strunix_mode' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:618:11: style: Variable 'strunix_owner' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:618:28: style: Variable 'strunix_group' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:618:45: style: Variable 'strunix_ownername' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:618:66: style: Variable 'strunix_groupname' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/ftp-dir-listing.c:662:4: warning: If memory allocation fails, then there is a possible null pointer dereference: tokens [nullPointerOutOfMemory] gftp-2.9.1b/lib/ftp-dir-listing.c:658:29: note: Assuming allocation function fails gftp-2.9.1b/lib/ftp-dir-listing.c:658:13: note: Assignment 'tokens=(char**)calloc(ntokens+1,sizeof(char**))', assigned value is 0 gftp-2.9.1b/lib/ftp-dir-listing.c:662:4: note: Null pointer dereference head gftp-2.9.1b/lib/ftp-dir-listing.c:678:4: warning: If memory allocation fails, then there is a possible null pointer dereference: tokens [nullPointerOutOfMemory] gftp-2.9.1b/lib/ftp-dir-listing.c:658:29: note: Assuming allocation function fails gftp-2.9.1b/lib/ftp-dir-listing.c:658:13: note: Assignment 'tokens=(char**)calloc(ntokens+1,sizeof(char**))', assigned value is 0 gftp-2.9.1b/lib/ftp-dir-listing.c:666:14: note: Assuming condition is false gftp-2.9.1b/lib/ftp-dir-listing.c:678:4: note: Null pointer dereference head gftp-2.9.1b/lib/ftp-dir-listing.c:681:16: warning: If memory allocation fails, then there is a possible null pointer dereference: tokens [nullPointerOutOfMemory] gftp-2.9.1b/lib/ftp-dir-listing.c:658:29: note: Assuming allocation function fails gftp-2.9.1b/lib/ftp-dir-listing.c:658:13: note: Assignment 'tokens=(char**)calloc(ntokens+1,sizeof(char**))', assigned value is 0 gftp-2.9.1b/lib/ftp-dir-listing.c:666:14: note: Assuming condition is false gftp-2.9.1b/lib/ftp-dir-listing.c:681:16: note: Null pointer dereference head gftp-2.9.1b/lib/ftp-dir-listing.c:744:19: style: Condition '*strtype' is always true [knownConditionTrueFalse] head gftp-2.9.1b/lib/ftp-dir-listing.c:744:8: style: Condition 'strtype' is always true [knownConditionTrueFalse] head gftp-2.9.1b/lib/ftp-dir-listing.c:771:11: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] gftp-2.9.1b/lib/ftp-dir-listing.c:776:6: note: Found duplicate branches for 'if' and 'else'. gftp-2.9.1b/lib/ftp-dir-listing.c:771:11: note: Found duplicate branches for 'if' and 'else'. head gftp-2.9.1b/lib/ftp-dir-listing.c:805:23: style: Variable 'ftpdat' can be declared as pointer to const [constVariablePointer] 2.19.0 gftp-2.9.1b/lib/glib-compat.h:15:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] head gftp-2.9.1b/lib/misc.c:1099:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHARE_DIR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/misc.c:1109:19: style: Variable 'pointzero' is assigned a value that is never used. [unreadVariable] head gftp-2.9.1b/lib/misc.c:1172:7: style: Variable 'p' is assigned an expression that holds the same value. [redundantAssignment] gftp-2.9.1b/lib/misc.c:1154:6: note: p is assigned '*pos' here. gftp-2.9.1b/lib/misc.c:1155:8: note: Assuming condition is false gftp-2.9.1b/lib/misc.c:1172:7: note: Variable 'p' is assigned an expression that holds the same value. head gftp-2.9.1b/lib/misc.c:144:59: style: Variable 'ntoken' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/misc.c:154:14: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] head gftp-2.9.1b/lib/misc.c:160:16: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] head gftp-2.9.1b/lib/misc.c:235:57: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] head gftp-2.9.1b/lib/misc.c:334:35: style: Parameter 'argc' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/misc.c:396:3: portability: Returning an address value in a function with integer return type is not portable. [CastAddressToIntegerAtReturn] head gftp-2.9.1b/lib/misc.c:46:9: style: Variable 'frompos' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/misc.c:727:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/misc.c:802:57: style: Parameter 'fle' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/misc.c:803:27: style: Parameter 'file_prefixstr' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/misc.c:803:49: style: Parameter 'file_suffixstr' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/misc.c:807:14: style: Variable 'lt' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/misc.c:810:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] head gftp-2.9.1b/lib/protocol_fsp.c:176:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_fsp.c:248:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_fsp.c:286:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_fsp.c:422:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_fsp.c:42:41: style: Parameter 'request' can be declared as pointer to const. However it seems that 'fsp_destroy' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/protocol_fsp.c:667:22: note: You might need to cast the function pointer here gftp-2.9.1b/lib/protocol_fsp.c:42:41: note: Parameter 'request' can be declared as pointer to const head gftp-2.9.1b/lib/protocol_fsp.c:529:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_fsp.c:581:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_fsp.c:623:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_ftp.c:1032:26: style: Variable 'tempext' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_ftp.c:1034:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_ftp.c:1048:47: error: Invalid toupper() argument nr 1. A non-boolean value is required. [invalidFunctionArgBool] head gftp-2.9.1b/lib/protocol_ftp.c:1050:52: error: Invalid toupper() argument nr 1. A non-boolean value is required. [invalidFunctionArgBool] head gftp-2.9.1b/lib/protocol_ftp.c:1065:9: style: Variable 'tempstr' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_ftp.c:1097:43: style: Parameter 'transfer_command' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/protocol_ftp.c:1165:9: style: Variable 'tempstr' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_ftp.c:116:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_ftp.c:1230:12: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] gftp-2.9.1b/lib/protocol_ftp.c:1223:9: note: ret is assigned gftp-2.9.1b/lib/protocol_ftp.c:1230:12: note: ret is overwritten head gftp-2.9.1b/lib/protocol_ftp.c:1244:33: style: Variable 'ftpfrom' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_ftp.c:1244:44: style: Variable 'ftpto' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_ftp.c:1350:16: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] head gftp-2.9.1b/lib/protocol_ftp.c:150:13: style: Variable 'lines' is assigned a value that is never used. [unreadVariable] head gftp-2.9.1b/lib/protocol_ftp.c:1566:65: style: Same expression on both sides of '&&'. [duplicateExpression] head gftp-2.9.1b/lib/protocol_ftp.c:1567:66: style: Condition 'strncmp(tempstr,"total",strlen("total"))!=0' is always true [knownConditionTrueFalse] head gftp-2.9.1b/lib/protocol_ftp.c:1815:51: style: Parameter 'request' can be declared as pointer to const. However it seems that 'ftp_set_config_options' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/protocol_ftp.c:1928:33: note: You might need to cast the function pointer here gftp-2.9.1b/lib/protocol_ftp.c:1815:51: note: Parameter 'request' can be declared as pointer to const head gftp-2.9.1b/lib/protocol_ftp.c:1879:18: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_ftp.c:1890:12: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] head gftp-2.9.1b/lib/protocol_ftp.c:247:17: style: Variable 'code[3]' is assigned a value that is never used. [unreadVariable] head gftp-2.9.1b/lib/protocol_ftp.c:374:9: style: Variable 'startpos' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_ftp.c:428:15: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head gftp-2.9.1b/lib/protocol_ftp.c:610:19: style: Variable 'startpos' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_ftp.c:725:12: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] gftp-2.9.1b/lib/protocol_ftp.c:721:7: note: ret is assigned gftp-2.9.1b/lib/protocol_ftp.c:725:12: note: ret is overwritten head gftp-2.9.1b/lib/protocol_ftp.c:809:15: style: Variable 'pos1' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_ftp.c:809:9: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_ftp.c:834:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_ftp.c:850:35: style: Variable 'USE_EPRT' is assigned a value that is never used. [unreadVariable] head gftp-2.9.1b/lib/protocol_ftp.c:940:21: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head gftp-2.9.1b/lib/protocol_ftp.c:948:21: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] head gftp-2.9.1b/lib/protocol_ftp.c:948:21: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] head gftp-2.9.1b/lib/protocol_ftp.c:948:21: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] head gftp-2.9.1b/lib/protocol_ftp.c:948:21: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] head gftp-2.9.1b/lib/protocol_ftp.c:948:21: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] head gftp-2.9.1b/lib/protocol_ftp.c:948:21: warning: %u in format string (no. 6) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] head gftp-2.9.1b/lib/protocol_ftps.c:240:8: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] gftp-2.9.1b/lib/protocol_ftps.c:239:8: note: ret is assigned gftp-2.9.1b/lib/protocol_ftps.c:240:8: note: ret is overwritten head gftp-2.9.1b/lib/protocol_http.c:105:10: style: Variable 'proxy_config' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_http.c:226:26: style: Variable 'proxy_hostname' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_http.c:226:43: style: Variable 'proxy_username' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_http.c:226:60: style: Variable 'proxy_password' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_http.c:307:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_http.c:388:15: style: Condition 'len==httpdat->rbuf->cur_bufsize' is always false [knownConditionTrueFalse] gftp-2.9.1b/lib/protocol_http.c:385:11: note: len is assigned 'httpdat->rbuf->cur_bufsize>size?size:httpdat->rbuf->cur_bufsize' here. gftp-2.9.1b/lib/protocol_http.c:388:15: note: Condition 'len==httpdat->rbuf->cur_bufsize' is always false head gftp-2.9.1b/lib/protocol_http.c:527:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_http.c:58:38: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocol_http.c:700:52: style: Parameter 'request' can be declared as pointer to const. However it seems that 'http_set_config_options' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/protocol_http.c:954:34: note: You might need to cast the function pointer here gftp-2.9.1b/lib/protocol_http.c:700:52: note: Parameter 'request' can be declared as pointer to const head gftp-2.9.1b/lib/protocol_http.c:79:4: warning: If memory allocation fails, then there is a possible null pointer dereference: newstr [nullPointerOutOfMemory] gftp-2.9.1b/lib/protocol_http.c:78:29: note: Assuming allocation function fails gftp-2.9.1b/lib/protocol_http.c:78:13: note: Assignment 'newstr=(char*)calloc(num*4+1,sizeof(char))', assigned value is 0 gftp-2.9.1b/lib/protocol_http.c:79:4: note: Null pointer dereference head gftp-2.9.1b/lib/protocol_http.c:90:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gftp-2.9.1b/lib/protocol_http.c:78:29: note: Assuming allocation function fails gftp-2.9.1b/lib/protocol_http.c:78:13: note: Assignment 'newstr=(char*)calloc(num*4+1,sizeof(char))', assigned value is 0 gftp-2.9.1b/lib/protocol_http.c:80:13: note: Assignment 'newpos=newstr', assigned value is 0 gftp-2.9.1b/lib/protocol_http.c:90:14: note: Null pointer addition head gftp-2.9.1b/lib/protocol_http.c:90:14: warning: If memory allocation fails, then there is a possible null pointer dereference: newpos++ [nullPointerOutOfMemory] gftp-2.9.1b/lib/protocol_http.c:78:29: note: Assuming allocation function fails gftp-2.9.1b/lib/protocol_http.c:78:13: note: Assignment 'newstr=(char*)calloc(num*4+1,sizeof(char))', assigned value is 0 gftp-2.9.1b/lib/protocol_http.c:80:13: note: Assignment 'newpos=newstr', assigned value is 0 gftp-2.9.1b/lib/protocol_http.c:90:14: note: Null pointer dereference head gftp-2.9.1b/lib/protocol_localfs.c:128:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_localfs.c:160:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_localfs.c:179:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_localfs.c:230:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_localfs.c:288:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_localfs.c:367:17: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] head gftp-2.9.1b/lib/protocol_localfs.c:381:17: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] head gftp-2.9.1b/lib/protocol_localfs.c:440:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_localfs.c:502:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_localfs.c:538:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_localfs.c:555:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_localfs.c:613:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_localfs.c:62:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_localfs.c:657:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocol_localfs.c:682:13: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] head gftp-2.9.1b/lib/protocol_localfs.c:686:11: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] head gftp-2.9.1b/lib/protocol_localfs.c:699:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocols.c:1002:10: style: Variable 'newsize' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocols.c:1043:51: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] head gftp-2.9.1b/lib/protocols.c:1051:47: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] head gftp-2.9.1b/lib/protocols.c:108:13: warning: Either the condition 'file' is redundant or there is possible null pointer dereference: file. [nullPointerRedundantCheck] gftp-2.9.1b/lib/protocols.c:105:18: note: Assuming that condition 'file' is not redundant gftp-2.9.1b/lib/protocols.c:108:13: note: Null pointer dereference head gftp-2.9.1b/lib/protocols.c:1098:10: style: Variable 'newsize' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocols.c:1142:57: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] head gftp-2.9.1b/lib/protocols.c:1149:50: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] head gftp-2.9.1b/lib/protocols.c:1389:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocols.c:1390:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/protocols.c:1455:20: style: union member 'Anonymous1::i' is never used. [unusedStructMember] head gftp-2.9.1b/lib/protocols.c:1488:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] head gftp-2.9.1b/lib/protocols.c:1634:79: style:inconclusive: Function 'gftp_fd_open' argument 4 names different: declaration 'perms' definition 'mode'. [funcArgNamesDifferent] gftp-2.9.1b/lib/gftp.h:849:26: note: Function 'gftp_fd_open' argument 4 names different: declaration 'perms' definition 'mode'. gftp-2.9.1b/lib/protocols.c:1634:79: note: Function 'gftp_fd_open' argument 4 names different: declaration 'perms' definition 'mode'. head gftp-2.9.1b/lib/protocols.c:1649:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocols.c:1660:7: error: Resource leak: fd [resourceLeak] head gftp-2.9.1b/lib/protocols.c:1700:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocols.c:1740:49: style: Parameter 'attribs' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/protocols.c:1753:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocols.c:1785:44: style: Parameter 'request' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/protocols.c:198:20: style: union member 'Anonymous0::i' is never used. [unusedStructMember] head gftp-2.9.1b/lib/protocols.c:355:9: style: Unused variable: remote_lc_time [unusedVariable] head gftp-2.9.1b/lib/protocols.c:445:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocols.c:504:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/protocols.c:900:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/pty.c:139:16: style: Variable 'pos2' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/pty.c:139:9: style: Variable 'pos1' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/pty.c:153:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/pty.c:169:42: style: Parameter 'pts_name' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/pty.c:173:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/pty.c:197:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IGNPAR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/pty.c:248:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/socket-connect.c:110:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AI_CANONNAME [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/socket-connect.c:131:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head gftp-2.9.1b/lib/socket-connect.c:154:18: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [ctunullpointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:321:25: note: Calling function connection_new, 2nd argument is null gftp-2.9.1b/lib/socket-connect.c:154:18: note: Dereferencing argument addri that is null head gftp-2.9.1b/lib/socket-connect.c:154:18: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:321:35: note: Calling function 'connection_new', 2nd argument 'addri' value is 0 gftp-2.9.1b/lib/socket-connect.c:154:18: note: Null pointer dereference head gftp-2.9.1b/lib/socket-connect.c:154:36: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:321:35: note: Calling function 'connection_new', 2nd argument 'addri' value is 0 gftp-2.9.1b/lib/socket-connect.c:154:36: note: Null pointer dereference head gftp-2.9.1b/lib/socket-connect.c:158:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/socket-connect.c:240:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ai_canonname [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/socket-connect.c:30:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/socket-connect.c:315:3: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:315:3: note: Null pointer dereference head gftp-2.9.1b/lib/socket-connect.c:316:3: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:316:3: note: Null pointer dereference head gftp-2.9.1b/lib/socket-connect.c:318:3: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:318:3: note: Null pointer dereference head gftp-2.9.1b/lib/socket-connect.c:319:3: warning: If memory allocation fails, then there is a possible null pointer dereference: addri [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:314:36: note: Assignment 'addri=calloc(1,sizeof(struct addrinfo))', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:319:3: note: Null pointer dereference head gftp-2.9.1b/lib/socket-connect.c:341:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/socket-connect.c:392:3: warning: If memory allocation fails, then there is a possible null pointer dereference: saddr [nullPointerOutOfMemory] gftp-2.9.1b/lib/socket-connect.c:391:18: note: Assuming allocation function fails gftp-2.9.1b/lib/socket-connect.c:391:18: note: Assignment 'saddr=calloc(1,request->remote_addr_len)', assigned value is 0 gftp-2.9.1b/lib/socket-connect.c:392:3: note: Null pointer dereference head gftp-2.9.1b/lib/socket-connect.c:396:7: error: Memory leak: saddr [memleak] head gftp-2.9.1b/lib/socket-connect.c:404:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/socket-connect.c:40:10: style: Variable 'sin_addr' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/socket-connect.c:42:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/socket-connect.c:54:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/socket-connect.c:62:50: style: Parameter 'saddr' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/socket-connect.c:64:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/socket-connect.c:73:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/socket-connect.c:84:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/socket-connect.c:94:45: style: Parameter 'service' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/sockutils.c:187:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/sockutils.c:265:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/sockutils.c:356:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/sockutils.c:376:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/sockutils.c:412:15: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] head gftp-2.9.1b/lib/sockutils.c:415:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h_errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/sshv2.c:1254:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/sshv2.c:1369:44: style: Variable 'i' is assigned a value that is never used. [unreadVariable] head gftp-2.9.1b/lib/sshv2.c:1385:19: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head gftp-2.9.1b/lib/sshv2.c:1389:20: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] head gftp-2.9.1b/lib/sshv2.c:1425:20: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] head gftp-2.9.1b/lib/sshv2.c:1443:9: style: Variable 'stpos' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/sshv2.c:1971:58: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'sshv2_put_next_file_chunk' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/lib/sshv2.c:2124:34: note: You might need to cast the function pointer here gftp-2.9.1b/lib/sshv2.c:1971:58: note: Parameter 'buf' can be declared as pointer to const head gftp-2.9.1b/lib/sshv2.c:2046:18: style: Variable 'sparams' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/sshv2.c:213:61: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] head gftp-2.9.1b/lib/sshv2.c:267:67: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] head gftp-2.9.1b/lib/sshv2.c:390:16: style: Variable 'pwstrs' can be declared as const array [constVariable] head gftp-2.9.1b/lib/sshv2.c:395:38: style: Variable 'yesstr' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/sshv2.c:408:5: error: Memory leak: tempstr [memleak] head gftp-2.9.1b/lib/sshv2.c:411:5: error: Memory leak: tempstr [memleak] head gftp-2.9.1b/lib/sshv2.c:422:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/lib/sshv2.c:485:55: style: Same expression on both sides of '||'. [duplicateExpression] head gftp-2.9.1b/lib/sshv2.c:594:18: style: Variable 'params' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/sshv2.c:749:62: style: Parameter 'command' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/lib/sshv2.c:768:6: warning: Either the condition 'len>33995' is redundant or the array 'buf[34000]' is accessed at index 34000, which is out of bounds. [arrayIndexOutOfBoundsCond] gftp-2.9.1b/lib/sshv2.c:756:11: note: Assuming that condition 'len>33995' is not redundant gftp-2.9.1b/lib/sshv2.c:768:6: note: Array index out of bounds head gftp-2.9.1b/lib/sshv2.c:791:18: style: Variable 'params' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/src/gtk/gtkcompat.h:494:2: error: failed to evaluate #if condition, undefined function-like macro invocation: CAIRO_VERSION_ENCODE( ... ) [syntaxError] 2.19.0 gftp-2.9.1b/src/gtk/gtkcompat.h:74:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [syntaxError] head gftp-2.9.1b/src/text/gftp-text.c:160:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/src/text/gftp-text.c:162:18: portability: Non reentrant function 'ctermid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ctermid_r'. [prohibitedctermidCalled] head gftp-2.9.1b/src/text/gftp-text.c:198:9: error: Resource leak: infd [resourceLeak] head gftp-2.9.1b/src/text/gftp-text.c:279:40: warning: Either the condition '(pos=strrchr(argv[2],'/'))!=NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] gftp-2.9.1b/src/text/gftp-text.c:267:42: note: Assuming that condition '(pos=strrchr(argv[2],'/'))!=NULL' is not redundant gftp-2.9.1b/src/text/gftp-text.c:279:40: note: Null pointer addition head gftp-2.9.1b/src/text/gftp-text.c:306:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/src/text/gftp-text.c:32:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/src/text/textui.c:101:46: style: Parameter 'tdata' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/src/text/textui.c:101:61: style: Parameter 'curfle' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/src/text/textui.c:118:57: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/src/text/textui.c:201:44: style: Parameter 'tdata' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/src/text/textui.c:204:9: style: Variable 'progress' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/src/text/textui.c:226:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/src/text/textui.c:270:72: style: Parameter 'question' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/src/text/textui.c:27:40: style: Parameter 'fle' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/src/text/textui.c:293:39: style: Parameter 'question' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/src/text/textui.c:34:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXUSR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/src/text/textui.c:65:48: style: Parameter 'cdata' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/src/uicommon/gftpui.c:1141:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/src/uicommon/gftpui.c:128:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/src/uicommon/gftpui.c:1411:71: style: Parameter 'curfle' can be declared as pointer to const [constParameterPointer] head gftp-2.9.1b/src/uicommon/gftpui.c:1427:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/src/uicommon/gftpui.c:147:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/src/uicommon/gftpui.c:181:32: style: Parameter 'uidata' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_ascii' is a callback function, if 'uidata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:967:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:181:32: note: Parameter 'uidata' can be declared as pointer to const head gftp-2.9.1b/src/uicommon/gftpui.c:181:55: style: Parameter 'request' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_ascii' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:967:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:181:55: note: Parameter 'request' can be declared as pointer to const head gftp-2.9.1b/src/uicommon/gftpui.c:182:32: style: Parameter 'other_uidata' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_ascii' is a callback function, if 'other_uidata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:967:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:182:32: note: Parameter 'other_uidata' can be declared as pointer to const head gftp-2.9.1b/src/uicommon/gftpui.c:182:61: style: Parameter 'other_request' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_ascii' is a callback function, if 'other_request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:967:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:182:61: note: Parameter 'other_request' can be declared as pointer to const head gftp-2.9.1b/src/uicommon/gftpui.c:192:33: style: Parameter 'uidata' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_binary' is a callback function, if 'uidata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:969:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:192:33: note: Parameter 'uidata' can be declared as pointer to const head gftp-2.9.1b/src/uicommon/gftpui.c:192:56: style: Parameter 'request' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_binary' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:969:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:192:56: note: Parameter 'request' can be declared as pointer to const head gftp-2.9.1b/src/uicommon/gftpui.c:193:32: style: Parameter 'other_uidata' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_binary' is a callback function, if 'other_uidata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:969:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:193:32: note: Parameter 'other_uidata' can be declared as pointer to const head gftp-2.9.1b/src/uicommon/gftpui.c:193:61: style: Parameter 'other_request' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_binary' is a callback function, if 'other_request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:969:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:193:61: note: Parameter 'other_request' can be declared as pointer to const head gftp-2.9.1b/src/uicommon/gftpui.c:213:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:211:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:213:7: note: Null pointer dereference head gftp-2.9.1b/src/uicommon/gftpui.c:256:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:254:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:256:7: note: Null pointer dereference head gftp-2.9.1b/src/uicommon/gftpui.c:297:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:295:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:297:7: note: Null pointer dereference head gftp-2.9.1b/src/uicommon/gftpui.c:333:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:331:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:333:7: note: Null pointer dereference head gftp-2.9.1b/src/uicommon/gftpui.c:369:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:367:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:369:7: note: Null pointer dereference head gftp-2.9.1b/src/uicommon/gftpui.c:406:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:404:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:406:7: note: Null pointer dereference head gftp-2.9.1b/src/uicommon/gftpui.c:443:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:441:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:443:7: note: Null pointer dereference head gftp-2.9.1b/src/uicommon/gftpui.c:457:74: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] head gftp-2.9.1b/src/uicommon/gftpui.c:510:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:508:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:510:7: note: Null pointer dereference head gftp-2.9.1b/src/uicommon/gftpui.c:523:31: style: Parameter 'uidata' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_quit' is a callback function, if 'uidata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:1023:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:523:31: note: Parameter 'uidata' can be declared as pointer to const head gftp-2.9.1b/src/uicommon/gftpui.c:523:54: style: Parameter 'request' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_quit' is a callback function, if 'request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:1023:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:523:54: note: Parameter 'request' can be declared as pointer to const head gftp-2.9.1b/src/uicommon/gftpui.c:524:31: style: Parameter 'other_uidata' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_quit' is a callback function, if 'other_uidata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:1023:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:524:31: note: Parameter 'other_uidata' can be declared as pointer to const head gftp-2.9.1b/src/uicommon/gftpui.c:524:60: style: Parameter 'other_request' can be declared as pointer to const. However it seems that 'gftpui_common_cmd_quit' is a callback function, if 'other_request' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/uicommon/gftpui.c:1023:25: note: You might need to cast the function pointer here gftp-2.9.1b/src/uicommon/gftpui.c:524:60: note: Parameter 'other_request' can be declared as pointer to const head gftp-2.9.1b/src/uicommon/gftpui.c:596:7: warning: Either the condition '(request)!=NULL' is redundant or there is possible null pointer dereference: request. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:594:8: note: Assuming that condition '(request)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:596:7: note: Null pointer dereference head gftp-2.9.1b/src/uicommon/gftpui.c:695:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/src/uicommon/gftpui.c:870:7: warning: Either the condition '(fromrequest)!=NULL' is redundant or there is possible null pointer dereference: fromrequest. [nullPointerRedundantCheck] gftp-2.9.1b/src/uicommon/gftpui.c:867:8: note: Assuming that condition '(fromrequest)!=NULL' is not redundant gftp-2.9.1b/src/uicommon/gftpui.c:870:7: note: Null pointer dereference head gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:112:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:153:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] head gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:154:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:156:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:68:23: style: Variable 'sortasds_var' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:68:9: style: Variable 'sortcol_var' can be declared as pointer to const [constVariablePointer] DONE