2025-05-09 02:43 ftp://ftp.de.debian.org/debian/pool/main/y/yafc/yafc_1.3.7.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 66c9938 (2025-05-08 13:55:11 +0200) count: 380 376 elapsed-time: 5.9 5.8 head-timing-info: old-timing-info: head results: yafc-1.3.7/lib/base64.c:126:0: error: #error no suitable base64 implementation available [preprocessorErrorDirective] yafc-1.3.7/lib/base64.c:126:2: error: #error no suitable base64 implementation available [preprocessorErrorDirective] yafc-1.3.7/lib/fnmatch.c:145:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_NOMATCH [valueFlowBailoutIncompleteVar] yafc-1.3.7/lib/fnmatch.c:169:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_NOMATCH [valueFlowBailoutIncompleteVar] yafc-1.3.7/lib/fnmatch.c:381:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_CASEFOLD [valueFlowBailoutIncompleteVar] yafc-1.3.7/lib/fnmatch.c:663:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_NOMATCH [valueFlowBailoutIncompleteVar] yafc-1.3.7/lib/fnmatch.c:728:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_NOMATCH [valueFlowBailoutIncompleteVar] yafc-1.3.7/lib/fnmatch.c:595:21: style: Parameter 'end' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/lib/fnmatch.c:645:12: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/lib/fnmatch.c:645:21: style: Parameter 's' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/lib/getopt.c:437:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/lib/getopt.c:603:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/lib/gssapi.c:61:0: error: #error "Need gssapi.h from either Heimdal or MIT krb5" [preprocessorErrorDirective] yafc-1.3.7/lib/gssapi.c:61:3: error: #error "Need gssapi.h from either Heimdal or MIT krb5" [preprocessorErrorDirective] yafc-1.3.7/lib/vasprintf.c:30:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/alias.c:103:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/alias.c:128:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/alias.c:184:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/alias.c:21:36: style: Parameter 'ap' can be declared as pointer to const. However it seems that 'alias_searchfunc' is a callback function, if 'ap' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/alias.c:195:49: note: You might need to cast the function pointer here yafc-1.3.7/src/alias.c:21:36: note: Parameter 'ap' can be declared as pointer to const yafc-1.3.7/src/alias.c:79:9: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/alias.c:51:12: style: Variable 'ap' is assigned a value that is never used. [unreadVariable] yafc-1.3.7/src/bookmark.c:132:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/bookmark.c:210:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable url [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/bookmark.c:249:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable url [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/bookmark.c:301:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable username [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/bookmark.c:341:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable url [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/bookmark.c:456:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/bookmark.c:135:19: warning: If memory allocation fails, then there is a possible null pointer dereference: bmfile [nullPointerOutOfMemory] yafc-1.3.7/src/bookmark.c:128:19: note: Assuming allocation function fails yafc-1.3.7/src/bookmark.c:128:19: note: Assignment 'bmfile=xstrdup(other_bmfile)', assigned value is 0 yafc-1.3.7/src/bookmark.c:135:19: note: Null pointer dereference yafc-1.3.7/src/bookmark.c:245:18: warning: Possible null pointer dereference: guessed_alias [nullPointer] yafc-1.3.7/src/bookmark.c:626:27: note: Calling function 'create_bookmark', 1st argument 'argc>1?argv[1]:0' value is 0 yafc-1.3.7/src/bookmark.c:245:18: note: Null pointer dereference yafc-1.3.7/src/bookmark.c:367:9: style: Local variable 'a' shadows outer variable [shadowVariable] yafc-1.3.7/src/bookmark.c:328:6: note: Shadowed declaration yafc-1.3.7/src/bookmark.c:367:9: note: Shadow variable yafc-1.3.7/src/bookmark.c:163:33: style: Parameter 'url' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/bookmark.c:375:12: style: Variable 'xurl' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/bookmark.c:441:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/bookmark.c:44:4: error: Memory is allocated but not initialized: q [uninitdata] yafc-1.3.7/src/bookmark.c:239:22: style: Variable 'default_alias' is assigned a value that is never used. [unreadVariable] yafc-1.3.7/src/cmd.c:56:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/cmd.c:101:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/cmd.c:157:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/cmd.c:286:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/cmd.c:189:10: style: Local variable 'e' shadows outer variable [shadowVariable] yafc-1.3.7/src/cmd.c:154:8: note: Shadowed declaration yafc-1.3.7/src/cmd.c:189:10: note: Shadow variable yafc-1.3.7/src/commands.c:223:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:261:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:331:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:348:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:371:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tmAscii [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:423:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:444:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:468:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:483:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:501:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:555:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:579:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:591:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:603:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:616:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:625:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:643:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:664:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:689:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:710:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:733:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:778:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:799:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:823:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:835:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:859:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/commands.c:308:15: warning: Either the condition 'a' is redundant or there is possible null pointer dereference: a. [nullPointerRedundantCheck] yafc-1.3.7/src/commands.c:290:5: note: Assuming that condition 'a' is not redundant yafc-1.3.7/src/commands.c:308:15: note: Null pointer dereference yafc-1.3.7/src/commands.c:89:29: style:inconclusive: Function 'find_cmd' argument 1 names different: declaration 'name' definition 'cmd'. [funcArgNamesDifferent] yafc-1.3.7/src/cmd.h:31:29: note: Function 'find_cmd' argument 1 names different: declaration 'name' definition 'cmd'. yafc-1.3.7/src/commands.c:89:29: note: Function 'find_cmd' argument 1 names different: declaration 'name' definition 'cmd'. yafc-1.3.7/src/commands.c:117:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/commands.c:207:10: style: Variable 'ins' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/commands.c:251:9: style: Variable 'a' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/commands.c:365:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/commands.c:461:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/commands.c:493:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/commands.c:723:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/ftp/cache.c:108:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gvCacheTimeout [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/cache.c:34:39: style:inconclusive: Function 'ftp_cache_flush_mark' argument 1 names different: declaration 'p' definition 'path'. [funcArgNamesDifferent] yafc-1.3.7/src/ftp/ftp.h:252:39: note: Function 'ftp_cache_flush_mark' argument 1 names different: declaration 'p' definition 'path'. yafc-1.3.7/src/ftp/cache.c:34:39: note: Function 'ftp_cache_flush_mark' argument 1 names different: declaration 'p' definition 'path'. yafc-1.3.7/src/ftp/cache.c:53:43: style:inconclusive: Function 'ftp_cache_flush_mark_for' argument 1 names different: declaration 'p' definition 'path'. [funcArgNamesDifferent] yafc-1.3.7/src/ftp/ftp.h:253:43: note: Function 'ftp_cache_flush_mark_for' argument 1 names different: declaration 'p' definition 'path'. yafc-1.3.7/src/ftp/cache.c:53:43: note: Function 'ftp_cache_flush_mark_for' argument 1 names different: declaration 'p' definition 'path'. yafc-1.3.7/src/ftp/cache.c:62:37: style: Parameter 'rdir' can be declared as pointer to const. However it seems that 'cache_search' is a callback function, if 'rdir' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/ftp/cache.c:105:58: note: You might need to cast the function pointer here yafc-1.3.7/src/ftp/cache.c:62:37: note: Parameter 'rdir' can be declared as pointer to const yafc-1.3.7/src/ftp/cache.c:105:13: style: Variable 'li' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/ftp.c:71:34: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] yafc-1.3.7/src/ftp/ftpsend.c:26:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:39:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:50:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:62:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:137:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gvPasvmode [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:154:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_storage [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:307:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:340:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:376:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:413:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:437:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:564:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:619:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:1074:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IWRITE [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:1204:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsend.c:29:20: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/ftpsend.c:42:20: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/ftpsend.c:53:20: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/ftpsend.c:65:20: style: Variable 'addr' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/ftpsend.c:721:8: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/ftpsend.c:754:10: style: Variable 'f' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/ftpsend.c:974:10: style: Variable 'f' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/ftpsend.c:1183:10: style: Variable 'f' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/ftpsigs.c:22:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsigs.c:73:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gvSighupReceived [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsigs.c:122:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gvSighupReceived [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsigs.c:152:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gvSighupReceived [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsigs.c:183:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsigs.c:227:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsigs.c:241:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gvSighupReceived [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ftpsigs.c:247:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gvSighupReceived [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/host.c:81:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/host.c:172:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/host.c:38:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hostp [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/host.c:37:24: note: Assuming allocation function fails yafc-1.3.7/src/ftp/host.c:37:24: note: Assignment 'hostp=xmalloc(sizeof(struct Host))', assigned value is 0 yafc-1.3.7/src/ftp/host.c:38:3: note: Null pointer dereference yafc-1.3.7/src/ftp/host.c:39:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hostp [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/host.c:37:24: note: Assuming allocation function fails yafc-1.3.7/src/ftp/host.c:37:24: note: Assignment 'hostp=xmalloc(sizeof(struct Host))', assigned value is 0 yafc-1.3.7/src/ftp/host.c:39:3: note: Null pointer dereference yafc-1.3.7/src/ftp/host.c:40:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hostp [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/host.c:37:24: note: Assuming allocation function fails yafc-1.3.7/src/ftp/host.c:37:24: note: Assignment 'hostp=xmalloc(sizeof(struct Host))', assigned value is 0 yafc-1.3.7/src/ftp/host.c:40:3: note: Null pointer dereference yafc-1.3.7/src/ftp/host.c:41:6: warning: If memory allocation fails, then there is a possible null pointer dereference: hostp [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/host.c:37:24: note: Assuming allocation function fails yafc-1.3.7/src/ftp/host.c:37:24: note: Assignment 'hostp=xmalloc(sizeof(struct Host))', assigned value is 0 yafc-1.3.7/src/ftp/host.c:41:6: note: Null pointer dereference yafc-1.3.7/src/ftp/host.c:45:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hostp [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/host.c:37:24: note: Assuming allocation function fails yafc-1.3.7/src/ftp/host.c:37:24: note: Assignment 'hostp=xmalloc(sizeof(struct Host))', assigned value is 0 yafc-1.3.7/src/ftp/host.c:45:3: note: Null pointer dereference yafc-1.3.7/src/ftp/host.c:46:3: warning: If memory allocation fails, then there is a possible null pointer dereference: hostp [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/host.c:37:24: note: Assuming allocation function fails yafc-1.3.7/src/ftp/host.c:37:24: note: Assignment 'hostp=xmalloc(sizeof(struct Host))', assigned value is 0 yafc-1.3.7/src/ftp/host.c:46:3: note: Null pointer dereference yafc-1.3.7/src/ftp/host.c:170:48: style:inconclusive: Function 'printable_address' argument 1 names different: declaration 'sockaddr' definition 'sa'. [funcArgNamesDifferent] yafc-1.3.7/src/ftp/host.h:46:48: note: Function 'printable_address' argument 1 names different: declaration 'sockaddr' definition 'sa'. yafc-1.3.7/src/ftp/host.c:170:48: note: Function 'printable_address' argument 1 names different: declaration 'sockaddr' definition 'sa'. yafc-1.3.7/src/ftp/lscolors.c:97:16: warning: If memory allocation fails, then there is a possible null pointer dereference: ec [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/lscolors.c:96:19: note: Assuming allocation function fails yafc-1.3.7/src/ftp/lscolors.c:96:19: note: Assignment 'ec=xmalloc(len)', assigned value is 0 yafc-1.3.7/src/ftp/lscolors.c:97:16: note: Null pointer dereference yafc-1.3.7/src/ftp/lscolors.c:59:13: style: Variable 'msk' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/lscolors.c:158:13: style: Variable 'q' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/plain-socket.c:88:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_storage [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/plain-socket.c:188:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_storage [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/plain-socket.c:280:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/plain-socket.c:312:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSG_OOB [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/plain-socket.c:43:5: error: Resource handle 'tfd' freed twice. [doubleFree] yafc-1.3.7/src/ftp/plain-socket.c:40:15: note: Resource handle 'tfd' freed twice. yafc-1.3.7/src/ftp/plain-socket.c:43:5: note: Resource handle 'tfd' freed twice. yafc-1.3.7/src/ftp/plain-socket.c:58:5: error: Resource handle 'tfd' freed twice. [doubleFree] yafc-1.3.7/src/ftp/plain-socket.c:55:16: note: Resource handle 'tfd' freed twice. yafc-1.3.7/src/ftp/plain-socket.c:58:5: note: Resource handle 'tfd' freed twice. yafc-1.3.7/src/ftp/plain-socket.c:355:10: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:355:10: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:357:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:357:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:358:10: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:358:10: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:359:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:359:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:361:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:361:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:362:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:362:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:363:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:363:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:364:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:364:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:365:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:365:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:366:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:366:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:367:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:367:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:368:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:368:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:369:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:369:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:370:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:370:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:371:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:371:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:372:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:372:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:373:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:373:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:374:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:374:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:375:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:375:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:376:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:376:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:377:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:377:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:378:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:378:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:379:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sock [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/plain-socket.c:354:25: note: Assignment 'sock=xmalloc(sizeof(struct Socket))', assigned value is 0 yafc-1.3.7/src/ftp/plain-socket.c:379:3: note: Null pointer dereference yafc-1.3.7/src/ftp/plain-socket.c:86:36: style: Parameter 'sockp' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/ftp/plain-socket.c:231:35: style: Parameter 'sockp' can be declared as pointer to const. However it seems that 'ps_throughput' is a callback function, if 'sockp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/ftp/plain-socket.c:366:22: note: You might need to cast the function pointer here yafc-1.3.7/src/ftp/plain-socket.c:231:35: note: Parameter 'sockp' can be declared as pointer to const yafc-1.3.7/src/ftp/plain-socket.c:241:33: style: Parameter 'sockp' can be declared as pointer to const. However it seems that 'ps_lowdelay' is a callback function, if 'sockp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/ftp/plain-socket.c:367:20: note: You might need to cast the function pointer here yafc-1.3.7/src/ftp/plain-socket.c:241:33: note: Parameter 'sockp' can be declared as pointer to const yafc-1.3.7/src/ftp/plain-socket.c:251:32: style: Parameter 'sockp' can be declared as pointer to const. However it seems that 'ps_read' is a callback function, if 'sockp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/ftp/plain-socket.c:368:16: note: You might need to cast the function pointer here yafc-1.3.7/src/ftp/plain-socket.c:251:32: note: Parameter 'sockp' can be declared as pointer to const yafc-1.3.7/src/ftp/plain-socket.c:260:33: style: Parameter 'sockp' can be declared as pointer to const. However it seems that 'ps_write' is a callback function, if 'sockp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/ftp/plain-socket.c:369:17: note: You might need to cast the function pointer here yafc-1.3.7/src/ftp/plain-socket.c:260:33: note: Parameter 'sockp' can be declared as pointer to const yafc-1.3.7/src/ftp/plain-socket.c:329:37: style: Parameter 'sockp' can be declared as pointer to const. However it seems that 'ps_check_pending' is a callback function, if 'sockp' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/ftp/plain-socket.c:377:25: note: You might need to cast the function pointer here yafc-1.3.7/src/ftp/plain-socket.c:329:37: note: Parameter 'sockp' can be declared as pointer to const yafc-1.3.7/src/ftp/rdirectory.c:20:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rdir [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/rdirectory.c:19:29: note: Assuming allocation function fails yafc-1.3.7/src/ftp/rdirectory.c:19:29: note: Assignment 'rdir=xmalloc(sizeof(struct rdirectory))', assigned value is 0 yafc-1.3.7/src/ftp/rdirectory.c:20:3: note: Null pointer dereference yafc-1.3.7/src/ftp/rdirectory.c:21:3: warning: If memory allocation fails, then there is a possible null pointer dereference: rdir [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/rdirectory.c:19:29: note: Assuming allocation function fails yafc-1.3.7/src/ftp/rdirectory.c:19:29: note: Assignment 'rdir=xmalloc(sizeof(struct rdirectory))', assigned value is 0 yafc-1.3.7/src/ftp/rdirectory.c:21:3: note: Null pointer dereference yafc-1.3.7/src/ftp/rdirectory.c:106:28: style:inconclusive: Function 'rdir_sort' argument 1 names different: declaration 'rdir' definition 'dir'. [funcArgNamesDifferent] yafc-1.3.7/src/ftp/rdirectory.h:32:28: note: Function 'rdir_sort' argument 1 names different: declaration 'rdir' definition 'dir'. yafc-1.3.7/src/ftp/rdirectory.c:106:28: note: Function 'rdir_sort' argument 1 names different: declaration 'rdir' definition 'dir'. yafc-1.3.7/src/ftp/rfile.c:147:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/rfile.c:217:14: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] yafc-1.3.7/src/ftp/rfile.c:292:28: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] yafc-1.3.7/src/ftp/rfile.c:191:23: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/rfile.c:437:29: note: Assuming allocation function fails yafc-1.3.7/src/ftp/rfile.c:437:29: note: Assignment 'saved_field[4]=xstrdup(e)', assigned value is 0 yafc-1.3.7/src/ftp/rfile.c:443:32: note: Calling function 'month_number', 1st argument 'saved_field[4]' value is 0 yafc-1.3.7/src/ftp/rfile.c:191:23: note: Null pointer dereference yafc-1.3.7/src/ftp/rfile.c:292:14: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/rfile.c:291:26: note: Assuming allocation function fails yafc-1.3.7/src/ftp/rfile.c:291:11: note: Assignment 'ret=(char*)xmalloc(42)', assigned value is 0 yafc-1.3.7/src/ftp/rfile.c:292:14: note: Null pointer dereference yafc-1.3.7/src/ftp/rfile.c:201:16: style: Variable 'tm_now' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/rfile.c:275:11: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/rfile.c:299:11: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/rfile.c:594:11: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/rfile.c:723:15: style: Variable 'factname' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/rfile.c:723:26: style: Variable 'value' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/rfile.c:780:33: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/ftp/rfile.c:832:30: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/ftp/rglob.c:79:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_NOMATCH [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/rglob.c:27:35: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/ftp/rglob.c:46:8: style: Variable 'dep' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/rglob.c:136:37: style: Parameter 'gl' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/ftp/rglob.c:150:40: style: Parameter 'gl' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/ftp/rglob.c:152:12: style: Variable 'li' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/rglob.c:49:12: style: Variable 'fi' is assigned a value that is never used. [unreadVariable] yafc-1.3.7/src/ftp/ssh_cmd.c:39:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_PUBLICKEY_HASH_SHA1 [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:128:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_AUTH_ERROR [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:139:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_AUTH_INFO [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:199:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_AUTH_METHOD_NONE [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:231:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_LOG_PROTOCOL [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:421:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:440:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_OK [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:456:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_OK [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:473:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_OK [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:590:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_OK [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:647:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSH_SCP_REQUEST_NEWFILE [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:714:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gvSSHTrySCP [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:843:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:910:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gvSSHTrySCP [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/ssh_cmd.c:384:12: style: Variable 'rf' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/ssh_cmd.c:820:10: style: Variable 'f' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ftp/ssh_cmd.c:192:10: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] yafc-1.3.7/src/ftp/url.c:189:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/url.c:257:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_NOMATCH [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ftp/url.c:26:2: warning: If memory allocation fails, then there is a possible null pointer dereference: urlp [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/url.c:25:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/url.c:25:9: note: Assignment 'urlp=(struct url_t*)xmalloc(sizeof(struct url_t))', assigned value is 0 yafc-1.3.7/src/ftp/url.c:26:2: note: Null pointer dereference yafc-1.3.7/src/ftp/url.c:27:2: warning: If memory allocation fails, then there is a possible null pointer dereference: urlp [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/url.c:25:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/url.c:25:9: note: Assignment 'urlp=(struct url_t*)xmalloc(sizeof(struct url_t))', assigned value is 0 yafc-1.3.7/src/ftp/url.c:27:2: note: Null pointer dereference yafc-1.3.7/src/ftp/url.c:28:2: warning: If memory allocation fails, then there is a possible null pointer dereference: urlp [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/url.c:25:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/url.c:25:9: note: Assignment 'urlp=(struct url_t*)xmalloc(sizeof(struct url_t))', assigned value is 0 yafc-1.3.7/src/ftp/url.c:28:2: note: Null pointer dereference yafc-1.3.7/src/ftp/url.c:29:2: warning: If memory allocation fails, then there is a possible null pointer dereference: urlp [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/url.c:25:25: note: Assuming allocation function fails yafc-1.3.7/src/ftp/url.c:25:9: note: Assignment 'urlp=(struct url_t*)xmalloc(sizeof(struct url_t))', assigned value is 0 yafc-1.3.7/src/ftp/url.c:29:2: note: Null pointer dereference yafc-1.3.7/src/ftp/url.c:94:13: warning: If memory allocation fails, then there is a possible null pointer dereference: adr [nullPointerOutOfMemory] yafc-1.3.7/src/ftp/url.c:88:22: note: Assuming allocation function fails yafc-1.3.7/src/ftp/url.c:88:13: note: Assignment 'adr=_adr=xstrdup(str)', assigned value is 0 yafc-1.3.7/src/ftp/url.c:94:13: note: Null pointer dereference yafc-1.3.7/src/fxp.c:111:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable has_site_chmod_command [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/fxp.c:123:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/fxp.c:158:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fxpNormal [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/fxp.c:374:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable homedir [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/fxp.c:582:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ftp [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/fxp.c:529:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/get.c:126:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tmAscii [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/get.c:198:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable getNormal [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/get.c:471:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable homedir [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/get.c:701:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/get.c:183:16: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] yafc-1.3.7/src/get.c:297:30: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] yafc-1.3.7/src/get.c:317:34: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] yafc-1.3.7/src/get.c:716:19: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] yafc-1.3.7/src/get.c:253:18: style: Local variable 'r' shadows outer variable [shadowVariable] yafc-1.3.7/src/get.c:200:9: note: Shadowed declaration yafc-1.3.7/src/get.c:253:18: note: Shadow variable yafc-1.3.7/src/get.c:169:57: style: Parameter 'dest' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/get.c:629:19: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/get.c:636:19: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/get.c:900:19: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/help.c:53:9: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] yafc-1.3.7/src/input.c:62:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/input.c:115:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCGETS [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/input.c:185:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/input.c:312:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/input.c:340:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/input.c:280:8: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/input.c:311:10: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/input.c:330:8: style: Variable 'chstr' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/lglob.c:77:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/lglob.c:81:14: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] yafc-1.3.7/src/lglob.c:78:3: error: Resource leak: dp [resourceLeak] yafc-1.3.7/src/libmhe/args.c:61:10: style: Condition 'last==first' is always false [knownConditionTrueFalse] yafc-1.3.7/src/libmhe/args.c:56:10: note: Assuming that condition 'last<=first' is not redundant yafc-1.3.7/src/libmhe/args.c:61:10: note: Condition 'last==first' is always false yafc-1.3.7/src/libmhe/args.c:109:10: warning: If memory allocation fails, then there is a possible null pointer dereference: e [nullPointerOutOfMemory] yafc-1.3.7/src/libmhe/args.c:107:13: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/args.c:107:13: note: Assignment 'e=xmalloc(s)', assigned value is 0 yafc-1.3.7/src/libmhe/args.c:109:10: note: Null pointer dereference yafc-1.3.7/src/libmhe/args.c:125:8: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/libmhe/args.c:109:10: error: Memory is allocated but not initialized: e [uninitdata] yafc-1.3.7/src/libmhe/linklist.c:177:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bi [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/libmhe/linklist.c:27:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lp [nullPointerOutOfMemory] yafc-1.3.7/src/libmhe/linklist.c:26:21: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/linklist.c:26:21: note: Assignment 'lp=xmalloc(sizeof(struct list))', assigned value is 0 yafc-1.3.7/src/libmhe/linklist.c:27:3: note: Null pointer dereference yafc-1.3.7/src/libmhe/linklist.c:28:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lp [nullPointerOutOfMemory] yafc-1.3.7/src/libmhe/linklist.c:26:21: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/linklist.c:26:21: note: Assignment 'lp=xmalloc(sizeof(struct list))', assigned value is 0 yafc-1.3.7/src/libmhe/linklist.c:28:3: note: Null pointer dereference yafc-1.3.7/src/libmhe/linklist.c:29:3: warning: If memory allocation fails, then there is a possible null pointer dereference: lp [nullPointerOutOfMemory] yafc-1.3.7/src/libmhe/linklist.c:26:21: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/linklist.c:26:21: note: Assignment 'lp=xmalloc(sizeof(struct list))', assigned value is 0 yafc-1.3.7/src/libmhe/linklist.c:29:3: note: Null pointer dereference yafc-1.3.7/src/libmhe/linklist.c:97:27: style: Parameter 'lp' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/libmhe/linklist.c:118:13: style: Variable 'last' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/libmhe/shortpath.c:27:22: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] yafc-1.3.7/src/libmhe/shortpath.c:68:21: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/shortpath.c:68:21: note: Assignment 'tmp=xstrdup(path)', assigned value is 0 yafc-1.3.7/src/libmhe/shortpath.c:78:12: note: Assuming condition is false yafc-1.3.7/src/libmhe/shortpath.c:81:25: note: Calling function '_shortpath', 1st argument 'tmp' value is 0 yafc-1.3.7/src/libmhe/shortpath.c:27:22: note: Null pointer dereference yafc-1.3.7/src/libmhe/strq.c:460:15: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] yafc-1.3.7/src/libmhe/strq.c:461:14: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] yafc-1.3.7/src/libmhe/strq.c:364:5: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] yafc-1.3.7/src/libmhe/strq.c:287:14: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/strq.c:287:14: note: Assignment 'p=xstrdup(path)', assigned value is 0 yafc-1.3.7/src/libmhe/strq.c:289:16: note: Calling function 'path_collapse', 1st argument 'p' value is 0 yafc-1.3.7/src/libmhe/strq.c:364:5: note: Null pointer dereference yafc-1.3.7/src/libmhe/strq.c:457:10: warning: If memory allocation fails, then there is a possible null pointer dereference: user [nullPointerOutOfMemory] yafc-1.3.7/src/libmhe/strq.c:456:23: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/strq.c:456:23: note: Assignment 'user=xmalloc(s-str)', assigned value is 0 yafc-1.3.7/src/libmhe/strq.c:457:10: note: Null pointer dereference yafc-1.3.7/src/libmhe/strq.c:458:3: warning: If memory allocation fails, then there is a possible null pointer dereference: user [nullPointerOutOfMemory] yafc-1.3.7/src/libmhe/strq.c:456:23: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/strq.c:456:23: note: Assignment 'user=xmalloc(s-str)', assigned value is 0 yafc-1.3.7/src/libmhe/strq.c:458:3: note: Null pointer dereference yafc-1.3.7/src/libmhe/strq.c:460:43: warning: If memory allocation fails, then there is a possible null pointer dereference: user [nullPointerOutOfMemory] yafc-1.3.7/src/libmhe/strq.c:456:23: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/strq.c:456:23: note: Assignment 'user=xmalloc(s-str)', assigned value is 0 yafc-1.3.7/src/libmhe/strq.c:460:43: note: Null pointer dereference yafc-1.3.7/src/libmhe/strq.c:537:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] yafc-1.3.7/src/libmhe/strq.c:536:30: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/strq.c:536:15: note: Assignment 'tmp=(char*)xmalloc(strlen(e)+3)', assigned value is 0 yafc-1.3.7/src/libmhe/strq.c:537:10: note: Null pointer dereference yafc-1.3.7/src/libmhe/strq.c:538:10: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] yafc-1.3.7/src/libmhe/strq.c:536:30: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/strq.c:536:15: note: Assignment 'tmp=(char*)xmalloc(strlen(e)+3)', assigned value is 0 yafc-1.3.7/src/libmhe/strq.c:538:10: note: Null pointer dereference yafc-1.3.7/src/libmhe/strq.c:73:39: style:inconclusive: Function 'base_name_ptr' argument 1 names different: declaration 's' definition 'path'. [funcArgNamesDifferent] yafc-1.3.7/src/libmhe/strq.h:26:39: note: Function 'base_name_ptr' argument 1 names different: declaration 's' definition 'path'. yafc-1.3.7/src/libmhe/strq.c:73:39: note: Function 'base_name_ptr' argument 1 names different: declaration 's' definition 'path'. yafc-1.3.7/src/libmhe/strq.c:81:34: style:inconclusive: Function 'base_name_xptr' argument 1 names different: declaration 's' definition 'path'. [funcArgNamesDifferent] yafc-1.3.7/src/libmhe/strq.h:27:34: note: Function 'base_name_xptr' argument 1 names different: declaration 's' definition 'path'. yafc-1.3.7/src/libmhe/strq.c:81:34: note: Function 'base_name_xptr' argument 1 names different: declaration 's' definition 'path'. yafc-1.3.7/src/libmhe/strq.c:88:8: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/libmhe/strq.c:454:18: style: Variable 'pass' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/libmhe/xmalloc.c:22:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/libmhe/xmalloc.c:37:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/list.c:175:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable homedir [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/list.c:408:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/list.c:429:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/list.c:474:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/list.c:100:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: e [nullPointerOutOfMemory] yafc-1.3.7/src/list.c:97:42: note: Assuming allocation function fails yafc-1.3.7/src/list.c:97:33: note: Assignment 'e=(((opt)&(1<<18))==(1<<18))?xstrdup(fi->path):xstrdup(base_name_ptr(fi->path))', assigned value is 0 yafc-1.3.7/src/list.c:100:23: note: Null pointer dereference yafc-1.3.7/src/list.c:115:34: style: Parameter 'gl' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/list.c:118:9: style: Variable 'fi' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/list.c:300:26: style: Parameter 'gl' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/list.c:314:32: style: Parameter 'a' can be declared as pointer to const. However it seems that 'ls_sort_name' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/list.c:372:31: note: You might need to cast the function pointer here yafc-1.3.7/src/list.c:314:32: note: Parameter 'a' can be declared as pointer to const yafc-1.3.7/src/list.c:314:42: style: Parameter 'b' can be declared as pointer to const. However it seems that 'ls_sort_name' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/list.c:372:31: note: You might need to cast the function pointer here yafc-1.3.7/src/list.c:314:42: note: Parameter 'b' can be declared as pointer to const yafc-1.3.7/src/list.c:328:32: style: Parameter 'a' can be declared as pointer to const. However it seems that 'ls_sort_size' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/list.c:376:31: note: You might need to cast the function pointer here yafc-1.3.7/src/list.c:328:32: note: Parameter 'a' can be declared as pointer to const yafc-1.3.7/src/list.c:328:42: style: Parameter 'b' can be declared as pointer to const. However it seems that 'ls_sort_size' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/list.c:376:31: note: You might need to cast the function pointer here yafc-1.3.7/src/list.c:328:42: note: Parameter 'b' can be declared as pointer to const yafc-1.3.7/src/list.c:341:8: style: Variable 'ae' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/list.c:342:8: style: Variable 'be' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/list.c:357:33: style: Parameter 'a' can be declared as pointer to const. However it seems that 'ls_sort_mtime' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/list.c:380:31: note: You might need to cast the function pointer here yafc-1.3.7/src/list.c:357:33: note: Parameter 'a' can be declared as pointer to const yafc-1.3.7/src/list.c:357:43: style: Parameter 'b' can be declared as pointer to const. However it seems that 'ls_sort_mtime' is a callback function, if 'b' is declared with const you might also need to cast function pointer(s). [constParameterCallback] yafc-1.3.7/src/list.c:380:31: note: You might need to cast the function pointer here yafc-1.3.7/src/list.c:357:43: note: Parameter 'b' can be declared as pointer to const yafc-1.3.7/src/list.c:442:9: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/list.c:453:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/list.c:595:18: style: Variable 'rdir' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/local.c:25:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/local.c:46:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/local.c:86:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable connected [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/local.c:111:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable connected [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/local.c:28:8: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/local.c:39:16: style: Variable 'tmp' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/login.c:44:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/login.c:101:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/login.c:269:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/login.c:313:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/login.c:212:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] yafc-1.3.7/src/login.c:35:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/login.c:250:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/login.c:261:8: style: Variable 'mech' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/login.c:263:8: style: Variable 'sftp_server' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/ltag.c:42:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ltag.c:77:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ltag.c:134:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ltag.c:146:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ltag.c:167:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ltag.c:202:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_NOMATCH [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ltag.c:210:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/ltag.c:149:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] yafc-1.3.7/src/ltag.c:156:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/main.c:36:9: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] yafc-1.3.7/src/prompt.c:135:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/prompt.c:160:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/prompt.c:191:15: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] yafc-1.3.7/src/prompt.c:223:17: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/prompt.c:244:17: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/put.c:115:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/put.c:148:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable putNormal [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/put.c:353:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable has_stou_command [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/put.c:534:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/put.c:239:22: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] yafc-1.3.7/src/put.c:477:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/put.c:341:13: style: Variable 'path' is assigned a value that is never used. [unreadVariable] yafc-1.3.7/src/rc.c:34:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/rc.c:54:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/rc.c:91:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/rc.c:220:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable urlcmp [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/rc.c:345:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tmBinary [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/redir.c:33:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/redir.c:67:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/redir.c:149:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/redir.c:30:8: style: Condition 'f==0' is always false [knownConditionTrueFalse] yafc-1.3.7/src/redir.c:22:8: style: Variable 'e' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/rm.c:44:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbNone [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/rm.c:72:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable homedir [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/rm.c:142:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/rm.c:130:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/set.c:36:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbError [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/set.c:53:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ftp [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/set.c:71:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbError [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/set.c:88:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tmBinary [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/set.c:157:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/set.c:109:44: warning: If memory allocation fails, then there is a possible null pointer dereference: gvAnonPasswd [nullPointerOutOfMemory] yafc-1.3.7/src/set.c:107:25: note: Assuming allocation function fails yafc-1.3.7/src/set.c:107:25: note: Assignment 'gvAnonPasswd=xstrdup((char*)val)', assigned value is 0 yafc-1.3.7/src/set.c:109:44: note: Null pointer dereference yafc-1.3.7/src/set.c:83:28: style: Parameter 'val' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/set.c:122:43: style: Parameter 'varname' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/stats.c:32:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stats [nullPointerOutOfMemory] yafc-1.3.7/src/stats.c:20:33: note: Assuming allocation function fails yafc-1.3.7/src/stats.c:20:17: note: Assignment 'stats=(struct Stats*)xmalloc(sizeof(struct Stats))', assigned value is 0 yafc-1.3.7/src/stats.c:21:14: note: Calling function 'stats_reset', 1st argument 'stats' value is 0 yafc-1.3.7/src/stats.c:32:2: note: Null pointer dereference yafc-1.3.7/src/stats.c:33:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stats [nullPointerOutOfMemory] yafc-1.3.7/src/stats.c:20:33: note: Assuming allocation function fails yafc-1.3.7/src/stats.c:20:17: note: Assignment 'stats=(struct Stats*)xmalloc(sizeof(struct Stats))', assigned value is 0 yafc-1.3.7/src/stats.c:21:14: note: Calling function 'stats_reset', 1st argument 'stats' value is 0 yafc-1.3.7/src/stats.c:33:2: note: Null pointer dereference yafc-1.3.7/src/stats.c:34:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stats [nullPointerOutOfMemory] yafc-1.3.7/src/stats.c:20:33: note: Assuming allocation function fails yafc-1.3.7/src/stats.c:20:17: note: Assignment 'stats=(struct Stats*)xmalloc(sizeof(struct Stats))', assigned value is 0 yafc-1.3.7/src/stats.c:21:14: note: Calling function 'stats_reset', 1st argument 'stats' value is 0 yafc-1.3.7/src/stats.c:34:2: note: Null pointer dereference yafc-1.3.7/src/stats.c:35:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stats [nullPointerOutOfMemory] yafc-1.3.7/src/stats.c:20:33: note: Assuming allocation function fails yafc-1.3.7/src/stats.c:20:17: note: Assignment 'stats=(struct Stats*)xmalloc(sizeof(struct Stats))', assigned value is 0 yafc-1.3.7/src/stats.c:21:14: note: Calling function 'stats_reset', 1st argument 'stats' value is 0 yafc-1.3.7/src/stats.c:35:2: note: Null pointer dereference yafc-1.3.7/src/stats.c:49:27: style:inconclusive: Function 'stats_display' argument 1 names different: declaration 'stats' definition 's'. [funcArgNamesDifferent] yafc-1.3.7/src/stats.h:50:27: note: Function 'stats_display' argument 1 names different: declaration 'stats' definition 's'. yafc-1.3.7/src/stats.c:49:27: note: Function 'stats_display' argument 1 names different: declaration 'stats' definition 's'. yafc-1.3.7/src/stats.c:49:27: style: Parameter 's' can be declared as pointer to const [constParameterPointer] yafc-1.3.7/src/stats.c:70:9: style: Variable 'pf' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/tag.c:41:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable taglist [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/tag.c:81:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/tag.c:152:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable taglist [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/tag.c:166:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable taglist [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/tag.c:191:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/tag.c:241:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/tag.c:180:16: style: Variable 'longopts' can be declared as const array [constVariable] yafc-1.3.7/src/tag.c:237:9: style: Variable 'f' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/transfer.c:132:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable homedir [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/transfer.c:254:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/transfer.c:338:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/transfer.c:359:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/transfer.c:410:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable username [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/transfer.c:435:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/transfer.c:473:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_NOMATCH [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/transfer.c:486:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_NOMATCH [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/transfer.c:499:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_NOMATCH [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/transfer.c:469:12: style: Variable 'li' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/transfer.c:482:12: style: Variable 'li' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/transfer.c:495:12: style: Variable 'li' can be declared as pointer to const [constVariablePointer] yafc-1.3.7/src/utils.c:110:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/utils.c:139:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/utils.c:204:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/utils.c:84:3: warning: %llu in format string (no. 1) requires 'unsigned long long' but the argument type is 'signed long long'. [invalidPrintfArgType_uint] yafc-1.3.7/src/utils.c:72:14: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfMemory] yafc-1.3.7/src/utils.c:66:19: note: Assuming allocation function fails yafc-1.3.7/src/utils.c:66:19: note: Assignment 'f=xmalloc(len)', assigned value is 0 yafc-1.3.7/src/utils.c:72:14: note: Null pointer dereference yafc-1.3.7/src/utils.c:68:16: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] yafc-1.3.7/src/utils.c:66:19: note: Assuming allocation function fails yafc-1.3.7/src/utils.c:66:19: note: Assignment 'f=xmalloc(len)', assigned value is 0 yafc-1.3.7/src/utils.c:68:16: note: Null pointer addition yafc-1.3.7/src/utils/makepath.c:35:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/utils/modechange.c:87:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_ISUID [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/utils/modechange.c:256:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] yafc-1.3.7/src/bookmark.c:245:18: error: Null pointer dereference: guessed_alias [ctunullpointer] yafc-1.3.7/src/bookmark.c:364:18: note: Calling function create_bookmark, 1st argument is null yafc-1.3.7/src/bookmark.c:245:18: note: Dereferencing argument guessed_alias that is null yafc-1.3.7/src/libmhe/shortpath.c:27:22: warning: If memory allocation fails, then there is a possible null pointer dereference: path [ctunullpointerOutOfMemory] yafc-1.3.7/src/libmhe/shortpath.c:68:21: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/shortpath.c:68:21: note: Assignment 'tmp=xstrdup(path)', assigned value is 0 yafc-1.3.7/src/libmhe/shortpath.c:78:12: note: Assuming condition is false yafc-1.3.7/src/libmhe/shortpath.c:81:24: note: Calling function _shortpath, 1st argument is null yafc-1.3.7/src/libmhe/shortpath.c:27:22: note: Dereferencing argument path that is null yafc-1.3.7/src/libmhe/strq.c:364:5: warning: If memory allocation fails, then there is a possible null pointer dereference: path [ctunullpointerOutOfMemory] yafc-1.3.7/src/libmhe/shortpath.c:68:21: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/shortpath.c:68:21: note: Assignment 'tmp=xstrdup(path)', assigned value is 0 yafc-1.3.7/src/libmhe/shortpath.c:69:15: note: Calling function path_collapse, 1st argument is null yafc-1.3.7/src/libmhe/strq.c:364:5: note: Dereferencing argument path that is null yafc-1.3.7/src/stats.c:32:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stats [ctunullpointerOutOfMemory] yafc-1.3.7/src/stats.c:20:33: note: Assuming allocation function fails yafc-1.3.7/src/stats.c:20:17: note: Assignment 'stats=(struct Stats*)xmalloc(sizeof(struct Stats))', assigned value is 0 yafc-1.3.7/src/stats.c:21:13: note: Calling function stats_reset, 1st argument is null yafc-1.3.7/src/stats.c:32:2: note: Dereferencing argument stats that is null diff: head yafc-1.3.7/lib/base64.c:126:2: error: #error no suitable base64 implementation available [preprocessorErrorDirective] head yafc-1.3.7/lib/gssapi.c:61:3: error: #error "Need gssapi.h from either Heimdal or MIT krb5" [preprocessorErrorDirective] head yafc-1.3.7/src/libmhe/shortpath.c:27:22: warning: If memory allocation fails, then there is a possible null pointer dereference: path [ctunullpointerOutOfMemory] yafc-1.3.7/src/libmhe/shortpath.c:68:21: note: Assuming allocation function fails yafc-1.3.7/src/libmhe/shortpath.c:68:21: note: Assignment 'tmp=xstrdup(path)', assigned value is 0 yafc-1.3.7/src/libmhe/shortpath.c:78:12: note: Assuming condition is false yafc-1.3.7/src/libmhe/shortpath.c:81:24: note: Calling function _shortpath, 1st argument is null yafc-1.3.7/src/libmhe/shortpath.c:27:22: note: Dereferencing argument path that is null head yafc-1.3.7/src/stats.c:32:2: warning: If memory allocation fails, then there is a possible null pointer dereference: stats [ctunullpointerOutOfMemory] yafc-1.3.7/src/stats.c:20:33: note: Assuming allocation function fails yafc-1.3.7/src/stats.c:20:17: note: Assignment 'stats=(struct Stats*)xmalloc(sizeof(struct Stats))', assigned value is 0 yafc-1.3.7/src/stats.c:21:13: note: Calling function stats_reset, 1st argument is null yafc-1.3.7/src/stats.c:32:2: note: Dereferencing argument stats that is null 2.17.0 yafc-1.3.7/src/utils.c:68:16: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] yafc-1.3.7/src/utils.c:66:19: note: Assuming allocation function fails yafc-1.3.7/src/utils.c:66:19: note: Assignment 'f=xmalloc(len)', assigned value is 0 yafc-1.3.7/src/utils.c:68:16: note: Null pointer addition head yafc-1.3.7/src/utils.c:68:16: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] yafc-1.3.7/src/utils.c:66:19: note: Assuming allocation function fails yafc-1.3.7/src/utils.c:66:19: note: Assignment 'f=xmalloc(len)', assigned value is 0 yafc-1.3.7/src/utils.c:68:16: note: Null pointer addition DONE