2025-08-31 01:55 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 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 37 526 elapsed-time: 0.4 3.4 head-timing-info: old-timing-info: head results: gftp-2.9.1b/lib/glib-compat.h:15:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] gftp-2.9.1b/lib/glib-compat.h:15:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 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/src/gtk/gtkcompat.h:74:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] gftp-2.9.1b/src/gtk/gtkcompat.h:74:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 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/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 diff: 2.18.0 gftp-2.9.1b/lib/cache.c:107:49: style: Parameter 'request' can be declared as pointer to const [constParameterPointer] 2.18.0 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] 2.18.0 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 2.18.0 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 2.18.0 gftp-2.9.1b/lib/cache.c:136:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] 2.18.0 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] 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 gftp-2.9.1b/lib/cache.c:202:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/cache.c:272:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/cache.c:301:56: style: Parameter 'descr' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/cache.c:304:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/charset-conv.c:151:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GIConv [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/charset-conv.c:30:15: style: Variable 'endpos' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/charset-conv.c:59:32: style: Parameter 'error' can be declared as pointer to const [constParameterPointer] 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 gftp-2.9.1b/lib/config_file.c:1088:16: style: Variable 'color' can be declared as pointer to const [constVariablePointer] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/config_file.c:1111:16: style: Variable 'color1' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:1111:26: style: Variable 'color2' can be declared as pointer to const [constVariablePointer] 2.18.0 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 2.18.0 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 2.18.0 gftp-2.9.1b/lib/config_file.c:121:17: style: Parameter 'source' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:121:31: style: Parameter 'dest' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:1224:22: style: Variable 'tmpconfigvar' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:1229:13: warning: Size of pointer 'value' used instead of size of its data. [pointerSize] 2.18.0 gftp-2.9.1b/lib/config_file.c:1235:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/config_file.c:1245:22: style: Variable 'tmpconfigvar' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:1250:13: warning: Size of pointer 'value' used instead of size of its data. [pointerSize] 2.18.0 gftp-2.9.1b/lib/config_file.c:1260:22: style: Variable 'tmpconfigvar' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:1265:13: warning: Size of pointer 'value' used instead of size of its data. [pointerSize] 2.18.0 gftp-2.9.1b/lib/config_file.c:127:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/config_file.c:1298:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/config_file.c:1340:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/config_file.c:1373:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/config_file.c:1437:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key [valueFlowBailoutIncompleteVar] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/config_file.c:175:28: style: Parameter 'global_data_path' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:178:22: style: Variable 'global_entry' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:207:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/config_file.c:334:27: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 gftp-2.9.1b/lib/config_file.c:441:26: style: Variable 'tempext' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:542:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/config_file.c:673:17: style: Variable 'pwhdr' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:673:9: style: Variable 'bmhdr' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:690:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/config_file.c:785:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/config_file.c:915:9: style: Variable 'outstr' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:932:9: style: Variable 'outstr' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:970:16: style: Variable 'str2' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/config_file.c:970:9: style: Variable 'str1' can be declared as pointer to const [constVariablePointer] 2.18.0 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 2.18.0 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 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:141:23: style: Variable 'loctime' can be declared as pointer to const [constVariablePointer] 2.18.0 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] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:235:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:305:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:360:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:404:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:41:34: style: Parameter 'response_str' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:421:23: style: Variable 'ftpdat' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:559:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:616:11: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:616:34: style: Variable 'strsize' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:616:58: style: Variable 'strperm' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:617:11: style: Variable 'strunix_uid' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:617:26: style: Variable 'strunix_gid' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:617:41: style: Variable 'strunix_mode' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:618:11: style: Variable 'strunix_owner' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:618:28: style: Variable 'strunix_group' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:618:45: style: Variable 'strunix_ownername' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:618:66: style: Variable 'strunix_groupname' can be declared as pointer to const [constVariablePointer] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:744:19: style: Condition '*strtype' is always true [knownConditionTrueFalse] 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:744:8: style: Condition 'strtype' is always true [knownConditionTrueFalse] 2.18.0 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'. 2.18.0 gftp-2.9.1b/lib/ftp-dir-listing.c:805:23: style: Variable 'ftpdat' can be declared as pointer to const [constVariablePointer] head gftp-2.9.1b/lib/glib-compat.h:15:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head gftp-2.9.1b/lib/glib-compat.h:15:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 gftp-2.9.1b/lib/misc.c:1099:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHARE_DIR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/misc.c:1109:19: style: Variable 'pointzero' is assigned a value that is never used. [unreadVariable] 2.18.0 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. 2.18.0 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] 2.18.0 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] 2.18.0 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] 2.18.0 gftp-2.9.1b/lib/misc.c:334:35: style: Parameter 'argc' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/misc.c:46:9: style: Variable 'frompos' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/misc.c:727:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/misc.c:802:57: style: Parameter 'fle' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/misc.c:803:27: style: Parameter 'file_prefixstr' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/misc.c:803:49: style: Parameter 'file_suffixstr' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/misc.c:807:14: style: Variable 'lt' can be declared as pointer to const [constVariablePointer] 2.18.0 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] 2.18.0 gftp-2.9.1b/lib/protocol_fsp.c:176:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_fsp.c:248:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_fsp.c:286:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_fsp.c:422:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/protocol_fsp.c:529:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_fsp.c:581:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_fsp.c:623:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1032:26: style: Variable 'tempext' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1034:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1048:47: error: Invalid toupper() argument nr 1. A non-boolean value is required. [invalidFunctionArgBool] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1050:52: error: Invalid toupper() argument nr 1. A non-boolean value is required. [invalidFunctionArgBool] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1065:9: style: Variable 'tempstr' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1097:43: style: Parameter 'transfer_command' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1165:9: style: Variable 'tempstr' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:116:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1244:33: style: Variable 'ftpfrom' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1244:44: style: Variable 'ftpto' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1350:16: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:150:13: style: Variable 'lines' is assigned a value that is never used. [unreadVariable] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1566:65: style: Same expression on both sides of '&&'. [duplicateExpression] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1567:66: style: Condition 'strncmp(tempstr,"total",strlen("total"))!=0' is always true [knownConditionTrueFalse] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:1879:18: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] 2.18.0 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] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:247:17: style: Variable 'code[3]' is assigned a value that is never used. [unreadVariable] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:374:9: style: Variable 'startpos' can be declared as pointer to const [constVariablePointer] 2.18.0 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] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:610:19: style: Variable 'startpos' can be declared as pointer to const [constVariablePointer] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:809:15: style: Variable 'pos1' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:809:9: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:834:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_ftp.c:850:35: style: Variable 'USE_EPRT' is assigned a value that is never used. [unreadVariable] 2.18.0 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] 2.18.0 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] 2.18.0 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] 2.18.0 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] 2.18.0 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] 2.18.0 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] 2.18.0 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] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/protocol_http.c:105:10: style: Variable 'proxy_config' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocol_http.c:226:26: style: Variable 'proxy_hostname' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocol_http.c:226:43: style: Variable 'proxy_username' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocol_http.c:226:60: style: Variable 'proxy_password' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocol_http.c:307:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/protocol_http.c:527:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_http.c:58:38: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] 2.18.0 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 2.18.0 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 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:128:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:160:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:179:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:230:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:288:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 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] 2.18.0 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] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:440:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:502:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:538:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:555:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:613:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:62:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:657:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:682:13: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:686:11: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] 2.18.0 gftp-2.9.1b/lib/protocol_localfs.c:699:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocols.c:1002:10: style: Variable 'newsize' can be declared as pointer to const [constVariablePointer] 2.18.0 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] 2.18.0 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] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/protocols.c:1098:10: style: Variable 'newsize' can be declared as pointer to const [constVariablePointer] 2.18.0 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] 2.18.0 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] 2.18.0 gftp-2.9.1b/lib/protocols.c:1389:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocols.c:1390:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/protocols.c:1455:20: style: union member 'Anonymous1::i' is never used. [unusedStructMember] 2.18.0 gftp-2.9.1b/lib/protocols.c:1488:11: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] 2.18.0 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'. 2.18.0 gftp-2.9.1b/lib/protocols.c:1649:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocols.c:1660:7: error: Resource leak: fd [resourceLeak] 2.18.0 gftp-2.9.1b/lib/protocols.c:1700:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocols.c:1740:49: style: Parameter 'attribs' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/protocols.c:1753:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocols.c:1785:44: style: Parameter 'request' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/protocols.c:198:20: style: union member 'Anonymous0::i' is never used. [unusedStructMember] 2.18.0 gftp-2.9.1b/lib/protocols.c:355:9: style: Unused variable: remote_lc_time [unusedVariable] 2.18.0 gftp-2.9.1b/lib/protocols.c:445:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocols.c:504:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/protocols.c:900:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/pty.c:153:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/pty.c:169:42: style: Parameter 'pts_name' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/pty.c:173:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/pty.c:197:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IGNPAR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/pty.c:248:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/socket-connect.c:110:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AI_CANONNAME [valueFlowBailoutIncompleteVar] 2.18.0 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] 2.18.0 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 2.18.0 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 2.18.0 gftp-2.9.1b/lib/socket-connect.c:158:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/socket-connect.c:240:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ai_canonname [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/socket-connect.c:30:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 gftp-2.9.1b/lib/socket-connect.c:341:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/socket-connect.c:396:7: error: Memory leak: saddr [memleak] 2.18.0 gftp-2.9.1b/lib/socket-connect.c:404:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/socket-connect.c:40:10: style: Variable 'sin_addr' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/socket-connect.c:42:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/socket-connect.c:54:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/socket-connect.c:62:50: style: Parameter 'saddr' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/socket-connect.c:64:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/socket-connect.c:73:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/socket-connect.c:84:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/socket-connect.c:94:45: style: Parameter 'service' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/lib/sockutils.c:187:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/sockutils.c:265:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/sockutils.c:356:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/sockutils.c:376:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] 2.18.0 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] 2.18.0 gftp-2.9.1b/lib/sockutils.c:415:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable h_errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/sshv2.c:1254:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/sshv2.c:1369:44: style: Variable 'i' is assigned a value that is never used. [unreadVariable] 2.18.0 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] 2.18.0 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] 2.18.0 gftp-2.9.1b/lib/sshv2.c:1425:20: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] 2.18.0 gftp-2.9.1b/lib/sshv2.c:1443:9: style: Variable 'stpos' can be declared as pointer to const [constVariablePointer] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/sshv2.c:2046:18: style: Variable 'sparams' can be declared as pointer to const [constVariablePointer] 2.18.0 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] 2.18.0 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] 2.18.0 gftp-2.9.1b/lib/sshv2.c:390:16: style: Variable 'pwstrs' can be declared as const array [constVariable] 2.18.0 gftp-2.9.1b/lib/sshv2.c:395:38: style: Variable 'yesstr' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/sshv2.c:408:5: error: Memory leak: tempstr [memleak] 2.18.0 gftp-2.9.1b/lib/sshv2.c:411:5: error: Memory leak: tempstr [memleak] 2.18.0 gftp-2.9.1b/lib/sshv2.c:422:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/lib/sshv2.c:485:55: style: Same expression on both sides of '||'. [duplicateExpression] 2.18.0 gftp-2.9.1b/lib/sshv2.c:594:18: style: Variable 'params' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/lib/sshv2.c:749:62: style: Parameter 'command' can be declared as pointer to const [constParameterPointer] 2.18.0 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 2.18.0 gftp-2.9.1b/lib/sshv2.c:791:18: style: Variable 'params' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:100:53: style: Parameter 'ddata' can be declared as pointer to const. However it seems that 'doadd_bookmark' is a callback function, if 'ddata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/bookmarks.c:185:47: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/bookmarks.c:100:53: note: Parameter 'ddata' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:222:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_UI_MANAGER_MENU [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:338:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:354:23: style: Parameter 'data' can be declared as pointer to const. However it seems that 'do_make_new' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/bookmarks.c:432:22: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/bookmarks.c:354:23: note: Parameter 'data' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:354:48: style: Parameter 'ddata' can be declared as pointer to const. However it seems that 'do_make_new' is a callback function, if 'ddata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/bookmarks.c:432:22: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/bookmarks.c:354:48: note: Parameter 'ddata' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:369:7: style: Condition '!error' is always true [knownConditionTrueFalse] gftp-2.9.1b/src/gtk/bookmarks.c:364:23: note: Assignment 'error=NULL', assigned value is 0 gftp-2.9.1b/src/gtk/bookmarks.c:369:7: note: Condition '!error' is always true 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:388:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:449:19: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:500:38: style: Parameter 'event' can be declared as pointer to const. However it seems that 'on_gtk_treeview_KeyReleaseEvent_btree' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/bookmarks.c:799:4: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/bookmarks.c:500:38: note: Parameter 'event' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:513:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Left [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:542:58: style: Parameter 'event' can be declared as pointer to const. However it seems that 'on_gtk_treeview_ButtonPressEvent_btree' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/bookmarks.c:806:4: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/bookmarks.c:542:58: note: Parameter 'event' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:563:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:609:62: style: Parameter 'menuitem' can be declared as pointer to const. However it seems that 'on_gtk_MenuItem_activate_newfolder' is a callback function, if 'menuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/bookmarks.c:682:26: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/bookmarks.c:609:62: note: Parameter 'menuitem' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:609:81: style: Parameter 'data' can be declared as pointer to const. However it seems that 'on_gtk_MenuItem_activate_newfolder' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/bookmarks.c:682:26: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/bookmarks.c:609:81: note: Parameter 'data' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:612:60: style: Parameter 'menuitem' can be declared as pointer to const. However it seems that 'on_gtk_MenuItem_activate_newitem' is a callback function, if 'menuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/bookmarks.c:686:26: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/bookmarks.c:612:60: note: Parameter 'menuitem' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:612:79: style: Parameter 'data' can be declared as pointer to const. However it seems that 'on_gtk_MenuItem_activate_newitem' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/bookmarks.c:686:26: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/bookmarks.c:612:79: note: Parameter 'data' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:622:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CLOSE [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:638:25: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:663:61: style: Parameter 'menuitem' can be declared as pointer to const. However it seems that 'on_gtk_MenuItem_activate_fileMenu' is a callback function, if 'menuitem' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/bookmarks.c:709:26: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/bookmarks.c:663:61: note: Parameter 'menuitem' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:663:80: style: Parameter 'data' can be declared as pointer to const. However it seems that 'on_gtk_MenuItem_activate_fileMenu' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/bookmarks.c:709:26: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/bookmarks.c:663:80: note: Parameter 'data' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:754:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_TREE_VIEW [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:75:9: style: Variable 'path' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:869:21: style: Local variable 'iter' shadows outer variable [shadowVariable] gftp-2.9.1b/src/gtk/bookmarks.c:821:16: note: Shadowed declaration gftp-2.9.1b/src/gtk/bookmarks.c:869:21: note: Shadow variable 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:891:40: error: Using pointer to local variable 'bm' that is out of scope. [invalidLifetime] gftp-2.9.1b/src/gtk/bookmarks.c:877:18: note: Address of variable taken here. gftp-2.9.1b/src/gtk/bookmarks.c:874:31: note: Variable created here. gftp-2.9.1b/src/gtk/bookmarks.c:891:40: note: Using pointer to local variable 'bm' that is out of scope. 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:891:40: error: Using pointer to local variable 'iter' that is out of scope. [invalidLifetime] gftp-2.9.1b/src/gtk/bookmarks.c:871:18: note: Address of variable taken here. gftp-2.9.1b/src/gtk/bookmarks.c:869:21: note: Variable created here. gftp-2.9.1b/src/gtk/bookmarks.c:891:40: note: Using pointer to local variable 'iter' that is out of scope. 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:899:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Right [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks.c:954:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_Left [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks_edit_entry.c:208:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks_edit_entry.c:270:13: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 gftp-2.9.1b/src/gtk/bookmarks_edit_entry.c:58:60: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] 2.18.0 gftp-2.9.1b/src/gtk/chmod_dialog.c:114:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/chmod_dialog.c:124:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WIN_POS_MOUSE [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/chmod_dialog.c:145:10: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/chmod_dialog.c:145:10: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/chmod_dialog.c:162:18: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/chmod_dialog.c:162:18: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/chmod_dialog.c:35:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/chmod_dialog.c:66:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_ISUID [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/dnd.c:179:42: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] 2.18.0 gftp-2.9.1b/src/gtk/dnd.c:190:21: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 gftp-2.9.1b/src/gtk/dnd.c:197:21: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 gftp-2.9.1b/src/gtk/dnd.c:245:18: style: Variable 'oldpos' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/dnd.c:83:14: style: Variable '*(pos-1)' is reassigned a value before the old one has been used. [redundantAssignment] gftp-2.9.1b/src/gtk/dnd.c:81:14: note: *(pos-1) is assigned gftp-2.9.1b/src/gtk/dnd.c:83:14: note: *(pos-1) is overwritten 2.18.0 gftp-2.9.1b/src/gtk/dnd.c:91:69: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1033:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_BUTTON1_MASK [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1086:14: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1086:14: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1099:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1099:9: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1105:11: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1105:11: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1110:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_SMALL_TOOLBAR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1219:9: style: Variable 'activetxt' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1233:9: style: Variable 'txt' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1238:39: style: Parameter 'widget' can be declared as pointer to const. However it seems that 'on_key_press_combo_toolbar' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/gftp-gtk.c:818:3: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/gftp-gtk.c:1238:39: note: Parameter 'widget' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1238:60: style: Parameter 'event' can be declared as pointer to const. However it seems that 'on_key_press_combo_toolbar' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/gftp-gtk.c:818:3: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/gftp-gtk.c:1238:60: note: Parameter 'event' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1238:76: style: Parameter 'data' can be declared as pointer to const. However it seems that 'on_key_press_combo_toolbar' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/gftp-gtk.c:818:3: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/gftp-gtk.c:1238:76: note: Parameter 'data' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1240:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1397:14: style: Variable 'color' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1421:10: style: Variable 'rhost' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:1479:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:150:32: style: Parameter 'widget' can be declared as pointer to const. However it seems that '_gftp_force_close' is a callback function, if 'widget' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/gftp-gtk.c:1482:3: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/gftp-gtk.c:150:32: note: Parameter 'widget' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:150:49: style: Parameter 'data' can be declared as pointer to const. However it seems that '_gftp_force_close' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/gftp-gtk.c:1482:3: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/gftp-gtk.c:150:49: note: Parameter 'data' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:207:70: style: Parameter 'ddata' can be declared as pointer to const. However it seems that '_gftpui_gtk_do_openurl' is a callback function, if 'ddata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/gftp-gtk.c:223:20: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/gftp-gtk.c:207:70: note: Parameter 'ddata' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:265:73: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:71:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:725:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:725:9: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:736:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_SMALL_TOOLBAR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:822:13: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:822:13: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:855:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:855:9: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:879:60: style: Parameter 'event' can be declared as pointer to const. However it seems that 'on_listbox_key_press_cb' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/gftp-gtk.c:1042:3: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/gftp-gtk.c:879:60: note: Parameter 'event' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:885:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:900:22: style: Variable 'wdata' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:934:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:944:49: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:949:7: style: Condition 'tempfle' is always true [knownConditionTrueFalse] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:993:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gftp-gtk.c:993:9: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] head gftp-2.9.1b/src/gtk/gtkcompat.h:74:0: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] head gftp-2.9.1b/src/gtk/gtkcompat.h:74:2: error: failed to evaluate #if condition, undefined function-like macro invocation: GLIB_CHECK_VERSION( ... ) [preprocessorErrorDirective] 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:119:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_WATCH [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:138:17: style: Condition 'request->stopable' is always true [knownConditionTrueFalse] gftp-2.9.1b/src/gtk/gtkui.c:137:23: note: Assignment 'request->stopable=1', assigned value is 1 gftp-2.9.1b/src/gtk/gtkui.c:138:17: note: Condition 'request->stopable' is always true 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:157:17: style: Condition 'request->stopable' is always true [knownConditionTrueFalse] gftp-2.9.1b/src/gtk/gtkui.c:156:23: note: Assignment 'request->stopable=1', assigned value is 1 gftp-2.9.1b/src/gtk/gtkui.c:157:17: note: Condition 'request->stopable' is always true 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:172:18: style: Variable 'request' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:264:15: warning: Either the condition 'wdata->request!=NULL' is redundant or there is possible null pointer dereference: wdata->request. [nullPointerRedundantCheck] gftp-2.9.1b/src/gtk/gtkui.c:276:8: note: Assuming that condition 'wdata->request!=NULL' is not redundant gftp-2.9.1b/src/gtk/gtkui.c:264:15: note: Null pointer dereference 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:347:5: error: Memory leak: cdata [memleak] 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:385:5: error: Memory leak: cdata [memleak] 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:415:5: error: Memory leak: cdata [memleak] 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:425:42: style: Parameter 'directory' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:468:42: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:524:44: style: Parameter 'request' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:559:52: style: Parameter 'ddata' can be declared as pointer to const. However it seems that '_protocol_ok_answer' is a callback function, if 'ddata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/gtkui.c:587:20: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/gtkui.c:559:52: note: Parameter 'ddata' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:563:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:577:48: style: Parameter 'request' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:581:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:86:70: style: Parameter 'ddata' can be declared as pointer to const. However it seems that '_gftpui_gtk_set_username' is a callback function, if 'ddata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/gtkui.c:134:20: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/gtkui.c:86:70: note: Parameter 'ddata' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/gtkui.c:95:70: style: Parameter 'ddata' can be declared as pointer to const. However it seems that '_gftpui_gtk_set_password' is a callback function, if 'ddata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/gtkui.c:153:20: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/gtkui.c:95:70: note: Parameter 'ddata' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:188:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_OK [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:190:18: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:191:14: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:239:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:37:56: style: Parameter 'tdata' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:409:10: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:409:10: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:434:10: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:434:10: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:43:57: style: Parameter 'tdata' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:49:57: style: Parameter 'tdata' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:55:40: style: Parameter 'tdata' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/gtkui_transfer.c:86:1: error: Memory leak: transdata [memleak] 2.18.0 gftp-2.9.1b/src/gtk/listbox.c:146:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_CELL_RENDERER_PIXBUF [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/listbox.c:308:16: style: Variable 'icon0' is reassigned a value before the old one has been used. [redundantAssignment] gftp-2.9.1b/src/gtk/listbox.c:306:13: note: icon0 is assigned gftp-2.9.1b/src/gtk/listbox.c:308:16: note: icon0 is overwritten 2.18.0 gftp-2.9.1b/src/gtk/listbox.c:309:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_SMALL_TOOLBAR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/listbox.c:381:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXUSR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/listbox.c:598:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/listbox.c:616:17: style: Variable 'column_str' can be declared as const array [constVariable] 2.18.0 gftp-2.9.1b/src/gtk/listbox.c:636:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TREE_VIEW_COLUMN_FIXED [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/listbox.c:654:51: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/listbox.c:666:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TREE_VIEW_COLUMN_AUTOSIZE [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:122:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_SAVE [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:139:51: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:142:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KEY_PRESS [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:223:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:268:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:334:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILE_CHOOSER_ACTION_SAVE [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:349:29: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:366:13: style: Variable 'translators' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:368:17: style: Variable 'logo' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:376:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_TYPE_ABOUT_DIALOG [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:402:15: style: Variable 'curfle' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:402:25: style: Variable 'otherfle' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:403:11: style: Variable 'curlist' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:403:22: style: Variable 'otherlist' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/menu-items.c:85:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_ACCEPT [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:191:25: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:247:14: style: Variable 'fle' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:294:19: style: Variable 'hostname' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:294:30: style: Variable 'fspec' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:297:10: style: Variable 'real_protocol' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:389:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_STATE_NORMAL [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:486:22: style: Variable 'owdata' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:490:12: warning: Either the condition 'wdata->request!=NULL' is redundant or there is possible null pointer dereference: wdata->request. [nullPointerRedundantCheck] gftp-2.9.1b/src/gtk/misc-gtk.c:506:8: note: Assuming that condition 'wdata->request!=NULL' is not redundant gftp-2.9.1b/src/gtk/misc-gtk.c:490:12: note: Null pointer dereference 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:632:52: style: Parameter 'event' can be declared as pointer to const. However it seems that 'dialog_keypress' is a callback function, if 'event' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/misc-gtk.c:724:3: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/misc-gtk.c:632:52: note: Parameter 'event' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:635:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GDK_KP_Enter [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:653:25: style: Parameter 'deftext' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:696:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_WINDOW_TOPLEVEL [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:767:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_DIALOG_MODAL [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:807:30: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:825:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:874:67: style: Parameter 'selected_protocol' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:914:21: style: Redundant initialization for 'icon_theme'. The initialized value is overwritten before it is read. [redundantInitialization] gftp-2.9.1b/src/gtk/misc-gtk.c:913:35: note: icon_theme is initialized gftp-2.9.1b/src/gtk/misc-gtk.c:914:21: note: icon_theme is overwritten 2.18.0 gftp-2.9.1b/src/gtk/misc-gtk.c:935:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_ICON_SIZE_MENU [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:101:72: style: Parameter 'value' can be declared as pointer to const. However it seems that '_print_option_type_text' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/options_dialog.c:684:18: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/options_dialog.c:101:72: note: Parameter 'value' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:146:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILL [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:160:77: style: Parameter 'value' can be declared as pointer to const. However it seems that '_print_option_type_textcombo' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/options_dialog.c:686:18: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/options_dialog.c:160:77: note: Parameter 'value' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:257:26: warning: Either the condition 'stpos!=NULL' is redundant or there is possible null pointer dereference: stpos. [nullPointerRedundantCheck] gftp-2.9.1b/src/gtk/options_dialog.c:271:13: note: Assuming that condition 'stpos!=NULL' is not redundant gftp-2.9.1b/src/gtk/options_dialog.c:257:26: note: Null pointer dereference 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:285:9: style: Variable 'stpos' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:292:26: warning: Either the condition 'stpos!=NULL' is redundant or there is possible null pointer dereference: stpos. [nullPointerRedundantCheck] gftp-2.9.1b/src/gtk/options_dialog.c:306:13: note: Assuming that condition 'stpos!=NULL' is not redundant gftp-2.9.1b/src/gtk/options_dialog.c:292:26: note: Null pointer dereference 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:363:9: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:363:9: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:377:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_SHADOW_IN [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:438:7: style: Condition 'freeit' is always true [knownConditionTrueFalse] gftp-2.9.1b/src/gtk/options_dialog.c:427:12: note: Assignment 'freeit=1', assigned value is 1 gftp-2.9.1b/src/gtk/options_dialog.c:438:7: note: Condition 'freeit' is always true 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:444:76: style: Parameter 'value' can be declared as pointer to const. However it seems that '_print_option_type_hidetext' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/options_dialog.c:693:18: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/options_dialog.c:444:76: note: Parameter 'value' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:459:71: style: Parameter 'value' can be declared as pointer to const. However it seems that '_print_option_type_int' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/options_dialog.c:695:18: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/options_dialog.c:459:71: note: Parameter 'value' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:48:79: style: Parameter 'tiptxt' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:494:76: style: Parameter 'value' can be declared as pointer to const. However it seems that '_print_option_type_checkbox' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/options_dialog.c:697:18: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/options_dialog.c:494:76: note: Parameter 'value' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:550:73: style: Parameter 'value' can be declared as pointer to const. However it seems that '_print_option_type_float' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/options_dialog.c:699:18: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/options_dialog.c:550:73: note: Parameter 'value' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:593:22: style: gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_hbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:593:22: style: gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. [prohibitedgtk_vbox_newCalled] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:61:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_FILL [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:641:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:712:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:720:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GTK_RESPONSE_CANCEL [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:780:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/options_dialog.c:821:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/gtk/transfer.c:227:27: style: Parameter 'data' can be declared as pointer to const. However it seems that 'progress_timeout' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/transfer.c:251:37: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/transfer.c:227:27: note: Parameter 'data' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/transfer.c:258:22: style: Variable 'transfer->numfiles' is reassigned a value before the old one has been used. [redundantAssignment] gftp-2.9.1b/src/gtk/transfer.c:257:22: note: transfer->numfiles is assigned gftp-2.9.1b/src/gtk/transfer.c:258:22: note: transfer->numfiles is overwritten 2.18.0 gftp-2.9.1b/src/gtk/transfer.c:279:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/transfer.c:321:64: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] 2.18.0 gftp-2.9.1b/src/gtk/transfer.c:384:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/transfer.c:425:15: style: Variable 'curdata' is assigned a value that is never used. [unreadVariable] 2.18.0 gftp-2.9.1b/src/gtk/transfer.c:460:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/transfer.c:508:64: style: Parameter 'ddata' can be declared as pointer to const. However it seems that 'get_trans_password' is a callback function, if 'ddata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gftp-2.9.1b/src/gtk/transfer.c:597:24: note: You might need to cast the function pointer here gftp-2.9.1b/src/gtk/transfer.c:508:64: note: Parameter 'ddata' can be declared as pointer to const 2.18.0 gftp-2.9.1b/src/gtk/transfer.c:724:50: style: Parameter 'fle' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/gtk/transfer.c:97:15: warning: Either the condition 'towdata->request!=NULL' is redundant or there is possible null pointer dereference: towdata->request. [nullPointerRedundantCheck] gftp-2.9.1b/src/gtk/transfer.c:101:8: note: Assuming that condition 'towdata->request!=NULL' is not redundant gftp-2.9.1b/src/gtk/transfer.c:97:15: note: Null pointer dereference 2.18.0 gftp-2.9.1b/src/gtk/view_dialog.c:101:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/view_dialog.c:197:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/view_dialog.c:305:23: warning: Either the condition 'non_utf8' is redundant or there is possible null pointer dereference: non_utf8. [nullPointerRedundantCheck] gftp-2.9.1b/src/gtk/view_dialog.c:310:39: note: Assuming that condition 'non_utf8' is not redundant gftp-2.9.1b/src/gtk/view_dialog.c:305:23: note: Null pointer dereference 2.18.0 gftp-2.9.1b/src/gtk/view_dialog.c:305:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/gtk/view_dialog.c:314:15: style: Variable 'doclose' is reassigned a value before the old one has been used. [redundantAssignment] gftp-2.9.1b/src/gtk/view_dialog.c:248:11: note: doclose is assigned gftp-2.9.1b/src/gtk/view_dialog.c:314:15: note: doclose is overwritten 2.18.0 gftp-2.9.1b/src/gtk/view_dialog.c:34:9: style: Variable 'suffix' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/text/gftp-text.c:160:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] 2.18.0 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] 2.18.0 gftp-2.9.1b/src/text/gftp-text.c:198:9: error: Resource leak: infd [resourceLeak] 2.18.0 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 2.18.0 gftp-2.9.1b/src/text/gftp-text.c:306:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/text/gftp-text.c:32:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIOCGWINSZ [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/text/textui.c:101:46: style: Parameter 'tdata' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/text/textui.c:101:61: style: Parameter 'curfle' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/text/textui.c:118:57: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/text/textui.c:201:44: style: Parameter 'tdata' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/text/textui.c:204:9: style: Variable 'progress' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/text/textui.c:226:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/text/textui.c:270:72: style: Parameter 'question' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/text/textui.c:27:40: style: Parameter 'fle' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/text/textui.c:293:39: style: Parameter 'question' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/text/textui.c:34:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IXUSR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/text/textui.c:65:48: style: Parameter 'cdata' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/uicommon/gftpui.c:1141:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/uicommon/gftpui.c:128:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/uicommon/gftpui.c:1411:71: style: Parameter 'curfle' can be declared as pointer to const [constParameterPointer] 2.18.0 gftp-2.9.1b/src/uicommon/gftpui.c:1427:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/uicommon/gftpui.c:147:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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] 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 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 2.18.0 gftp-2.9.1b/src/uicommon/gftpui.c:695:11: style: Variable 'templist' can be declared as pointer to const [constVariablePointer] 2.18.0 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 2.18.0 gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:112:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:153:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] 2.18.0 gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:154:15: style: Variable 'tempfle' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:68:23: style: Variable 'sortasds_var' can be declared as pointer to const [constVariablePointer] 2.18.0 gftp-2.9.1b/src/uicommon/gftpuicallbacks.c:68:9: style: Variable 'sortcol_var' can be declared as pointer to const [constVariablePointer] DONE