2025-05-10 02:00 ftp://ftp.de.debian.org/debian/pool/main/d/dircproxy/dircproxy_1.0.5.orig.tar.gz cppcheck-options: --library=posix --library=gnu --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: b3c7f00 (2025-05-09 17:59:20 +0200) count: 186 184 elapsed-time: 14.4 15.3 head-timing-info: old-timing-info: head results: dircproxy-1.0.5/crypt/main.c:111:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optind [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/crypt/main.c:154:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/crypt/main.c:160:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/crypt/main.c:168:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/crypt/main.c:175:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/crypt/main.c:143:9: portability: Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'. [prohibitedcryptCalled] dircproxy-1.0.5/crypt/main.c:137:18: style: Variable 'enc' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/crypt/main.c:149:16: style: Variable 'chars' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/getopt/getopt.c:408:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/getopt/getopt.c:569:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/cfgfile.c:48:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable globalvars [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/cfgfile.c:1378:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/cfgfile.c:1409:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/cfgfile.c:1422:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/cfgfile.c:1344:11: style: Variable 'class' is assigned a value that is never used. [unreadVariable] dircproxy-1.0.5/src/dcc_chat.c:54:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dcc_chat.c:71:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dcc_chat.c:86:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dcc_net.c:66:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dcc_net.c:136:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOMAXCONN [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dcc_net.c:157:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dcc_net.c:203:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dcc_net.c:265:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dcc_net.c:300:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dcc_net.c:59:10: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] dircproxy-1.0.5/src/dcc_net.c:58:32: note: Assuming allocation function fails dircproxy-1.0.5/src/dcc_net.c:58:7: note: Assignment 'p=(struct dccproxy*)malloc(sizeof(struct dccproxy))', assigned value is 0 dircproxy-1.0.5/src/dcc_net.c:59:10: note: Null pointer dereference dircproxy-1.0.5/src/dcc_net.c:60:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] dircproxy-1.0.5/src/dcc_net.c:58:32: note: Assuming allocation function fails dircproxy-1.0.5/src/dcc_net.c:58:7: note: Assignment 'p=(struct dccproxy*)malloc(sizeof(struct dccproxy))', assigned value is 0 dircproxy-1.0.5/src/dcc_net.c:60:3: note: Null pointer dereference dircproxy-1.0.5/src/dcc_net.c:199:40: style: Parameter 'range' can be declared as pointer to const [constParameterPointer] dircproxy-1.0.5/src/dcc_send.c:207:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DCC_BLOCK_SIZE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dns.c:81:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in_addr [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dns.c:171:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dns.c:352:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/dns.c:78:12: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] dircproxy-1.0.5/src/dns.c:81:12: style: Obsolescent function 'gethostbyaddr' called. It is recommended to use 'getnameinfo' instead. [prohibitedgethostbyaddrCalled] dircproxy-1.0.5/src/dns.c:380:11: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] dircproxy-1.0.5/src/dns.c:389:11: portability: Non reentrant function 'getservbyport' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyport_r'. [prohibitedgetservbyportCalled] dircproxy-1.0.5/src/dns.c:130:3: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] dircproxy-1.0.5/src/dns.c:129:36: note: Assuming allocation function fails dircproxy-1.0.5/src/dns.c:129:11: note: Assignment 'child=(struct dnschild*)malloc(sizeof(struct dnschild))', assigned value is 0 dircproxy-1.0.5/src/dns.c:130:3: note: Null pointer dereference dircproxy-1.0.5/src/dns.c:131:3: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] dircproxy-1.0.5/src/dns.c:129:36: note: Assuming allocation function fails dircproxy-1.0.5/src/dns.c:129:11: note: Assignment 'child=(struct dnschild*)malloc(sizeof(struct dnschild))', assigned value is 0 dircproxy-1.0.5/src/dns.c:131:3: note: Null pointer dereference dircproxy-1.0.5/src/dns.c:132:3: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] dircproxy-1.0.5/src/dns.c:129:36: note: Assuming allocation function fails dircproxy-1.0.5/src/dns.c:129:11: note: Assignment 'child=(struct dnschild*)malloc(sizeof(struct dnschild))', assigned value is 0 dircproxy-1.0.5/src/dns.c:132:3: note: Null pointer dereference dircproxy-1.0.5/src/dns.c:133:3: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] dircproxy-1.0.5/src/dns.c:129:36: note: Assuming allocation function fails dircproxy-1.0.5/src/dns.c:129:11: note: Assignment 'child=(struct dnschild*)malloc(sizeof(struct dnschild))', assigned value is 0 dircproxy-1.0.5/src/dns.c:133:3: note: Null pointer dereference dircproxy-1.0.5/src/dns.c:134:3: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] dircproxy-1.0.5/src/dns.c:129:36: note: Assuming allocation function fails dircproxy-1.0.5/src/dns.c:129:11: note: Assignment 'child=(struct dnschild*)malloc(sizeof(struct dnschild))', assigned value is 0 dircproxy-1.0.5/src/dns.c:134:3: note: Null pointer dereference dircproxy-1.0.5/src/dns.c:135:3: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] dircproxy-1.0.5/src/dns.c:129:36: note: Assuming allocation function fails dircproxy-1.0.5/src/dns.c:129:11: note: Assignment 'child=(struct dnschild*)malloc(sizeof(struct dnschild))', assigned value is 0 dircproxy-1.0.5/src/dns.c:135:3: note: Null pointer dereference dircproxy-1.0.5/src/dns.c:139:3: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] dircproxy-1.0.5/src/dns.c:129:36: note: Assuming allocation function fails dircproxy-1.0.5/src/dns.c:129:11: note: Assignment 'child=(struct dnschild*)malloc(sizeof(struct dnschild))', assigned value is 0 dircproxy-1.0.5/src/dns.c:139:3: note: Null pointer dereference dircproxy-1.0.5/src/dns.c:140:7: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] dircproxy-1.0.5/src/dns.c:129:36: note: Assuming allocation function fails dircproxy-1.0.5/src/dns.c:129:11: note: Assignment 'child=(struct dnschild*)malloc(sizeof(struct dnschild))', assigned value is 0 dircproxy-1.0.5/src/dns.c:140:7: note: Null pointer dereference dircproxy-1.0.5/src/dns.c:68:71: style: Parameter 'addr' can be declared as pointer to const [constParameterPointer] dircproxy-1.0.5/src/dns.c:256:11: style: Variable 'ip' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/dns.c:277:22: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] dircproxy-1.0.5/src/dns.c:386:19: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_client.c:98:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable client_timeout [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_client.c:162:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_client.c:490:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_client.c:1490:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NICK_GUARD_TIME [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_client.c:1532:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLBACK_NICKNAME [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_client.c:1706:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_client.c:1879:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_client.c:1921:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_client.c:1940:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_client.c:1961:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_client.c:1982:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_client.c:1821:55: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_client.c:2007:5: warning: If memory allocation fails, then there is a possible null pointer dereference: prefix [nullPointerOutOfMemory] dircproxy-1.0.5/src/irc_client.c:2006:28: note: Assuming allocation function fails dircproxy-1.0.5/src/irc_client.c:2006:14: note: Assignment 'prefix=(char*)malloc(1)', assigned value is 0 dircproxy-1.0.5/src/irc_client.c:2007:5: note: Null pointer dereference dircproxy-1.0.5/src/irc_client.c:428:17: style: Local variable 'str' shadows outer argument [shadowArgument] dircproxy-1.0.5/src/irc_client.c:308:62: note: Shadowed declaration dircproxy-1.0.5/src/irc_client.c:428:17: note: Shadow variable dircproxy-1.0.5/src/irc_client.c:619:17: style: Local variable 'str' shadows outer argument [shadowArgument] dircproxy-1.0.5/src/irc_client.c:308:62: note: Shadowed declaration dircproxy-1.0.5/src/irc_client.c:619:17: note: Shadow variable dircproxy-1.0.5/src/irc_client.c:435:34: style: Variable 'c' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_client.c:471:36: style: Variable 'c' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_client.c:625:34: style: Variable 'c' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_client.c:666:23: style: Variable 'filter' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_client.c:701:32: style: Variable 'c' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_client.c:1229:15: style: Variable 'ip' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_client.c:2042:55: style: Parameter 'p' can be declared as pointer to const. However it seems that '_ircclient_send_dccreject' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dircproxy-1.0.5/src/irc_client.c:550:40: note: You might need to cast the function pointer here dircproxy-1.0.5/src/irc_client.c:2042:55: note: Parameter 'p' can be declared as pointer to const dircproxy-1.0.5/src/irc_client.c:1549:9: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] dircproxy-1.0.5/src/irc_log.c:84:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_log.c:195:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_log.c:270:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_log.c:72:8: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] dircproxy-1.0.5/src/irc_log.c:222:55: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:245:55: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:569:53: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:793:53: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:796:56: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:799:53: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:802:56: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:805:59: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_log.c:629:14: style: Condition 'recall==-1' is always false [knownConditionTrueFalse] dircproxy-1.0.5/src/irc_log.c:625:7: note: Assuming that condition '!recall' is not redundant dircproxy-1.0.5/src/irc_log.c:629:14: note: Condition 'recall==-1' is always false dircproxy-1.0.5/src/irc_log.c:708:15: style: Variable 'ts' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_net.c:66:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_net.c:86:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_net.c:138:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_net.c:163:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_net.c:618:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_net.c:116:10: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] dircproxy-1.0.5/src/irc_net.c:115:32: note: Assuming allocation function fails dircproxy-1.0.5/src/irc_net.c:115:7: note: Assignment 'p=(struct ircproxy*)malloc(sizeof(struct ircproxy))', assigned value is 0 dircproxy-1.0.5/src/irc_net.c:116:10: note: Null pointer dereference dircproxy-1.0.5/src/irc_net.c:217:10: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] dircproxy-1.0.5/src/irc_net.c:216:34: note: Assuming allocation function fails dircproxy-1.0.5/src/irc_net.c:216:7: note: Assignment 'c=(struct ircchannel*)malloc(sizeof(struct ircchannel))', assigned value is 0 dircproxy-1.0.5/src/irc_net.c:217:10: note: Null pointer dereference dircproxy-1.0.5/src/irc_net.c:218:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] dircproxy-1.0.5/src/irc_net.c:216:34: note: Assuming allocation function fails dircproxy-1.0.5/src/irc_net.c:216:7: note: Assignment 'c=(struct ircchannel*)malloc(sizeof(struct ircchannel))', assigned value is 0 dircproxy-1.0.5/src/irc_net.c:218:3: note: Null pointer dereference dircproxy-1.0.5/src/irc_net.c:219:32: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] dircproxy-1.0.5/src/irc_net.c:216:34: note: Assuming allocation function fails dircproxy-1.0.5/src/irc_net.c:216:7: note: Assignment 'c=(struct ircchannel*)malloc(sizeof(struct ircchannel))', assigned value is 0 dircproxy-1.0.5/src/irc_net.c:219:32: note: Null pointer dereference dircproxy-1.0.5/src/irc_net.c:234:18: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] dircproxy-1.0.5/src/irc_net.c:216:34: note: Assuming allocation function fails dircproxy-1.0.5/src/irc_net.c:216:7: note: Assignment 'c=(struct ircchannel*)malloc(sizeof(struct ircchannel))', assigned value is 0 dircproxy-1.0.5/src/irc_net.c:234:18: note: Null pointer dereference dircproxy-1.0.5/src/irc_net.c:77:40: style: Parameter 'local_addr' can be declared as pointer to const [constParameterPointer] dircproxy-1.0.5/src/irc_net.c:181:57: style: Parameter 'class' can be declared as pointer to const [constParameterPointer] dircproxy-1.0.5/src/irc_net.c:280:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_prot.c:398:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALLBACK_USERNAME [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_prot.c:212:14: style: Redundant condition: The condition '*ptr' is redundant since '*ptr == ' '' is sufficient. [redundantCondition] dircproxy-1.0.5/src/irc_prot.c:272:11: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] dircproxy-1.0.5/src/irc_prot.c:271:39: note: Assuming allocation function fails dircproxy-1.0.5/src/irc_prot.c:271:15: note: Assignment 's=(struct strlist*)malloc(sizeof(struct strlist))', assigned value is 0 dircproxy-1.0.5/src/irc_prot.c:272:11: note: Null pointer dereference dircproxy-1.0.5/src/irc_prot.c:273:11: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] dircproxy-1.0.5/src/irc_prot.c:271:39: note: Assuming allocation function fails dircproxy-1.0.5/src/irc_prot.c:271:15: note: Assignment 's=(struct strlist*)malloc(sizeof(struct strlist))', assigned value is 0 dircproxy-1.0.5/src/irc_prot.c:273:11: note: Null pointer dereference dircproxy-1.0.5/src/irc_prot.c:37:9: style: Variable 'start' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_prot.c:115:9: style: Variable 'str' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_prot.c:220:21: style: Variable 'in' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_prot.c:254:27: style: Variable 'start' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_prot.c:379:21: style: Variable 'in' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_server.c:260:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_in [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_server.c:334:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_server.c:409:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_server.c:643:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_server.c:1451:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_server.c:1482:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/irc_server.c:1290:62: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] dircproxy-1.0.5/src/irc_server.c:917:17: style: Local variable 'msg' shadows outer variable [shadowVariable] dircproxy-1.0.5/src/irc_server.c:458:21: note: Shadowed declaration dircproxy-1.0.5/src/irc_server.c:917:17: note: Shadow variable dircproxy-1.0.5/src/irc_server.c:1047:13: style: Local variable 'str' shadows outer argument [shadowArgument] dircproxy-1.0.5/src/irc_server.c:457:62: note: Shadowed declaration dircproxy-1.0.5/src/irc_server.c:1047:13: note: Shadow variable dircproxy-1.0.5/src/irc_server.c:1121:25: style: Local variable 'ptr' shadows outer variable [shadowVariable] dircproxy-1.0.5/src/irc_server.c:1095:25: note: Shadowed declaration dircproxy-1.0.5/src/irc_server.c:1121:25: note: Shadow variable dircproxy-1.0.5/src/irc_server.c:1365:13: style: Local variable 'str' shadows outer argument [shadowArgument] dircproxy-1.0.5/src/irc_server.c:457:62: note: Shadowed declaration dircproxy-1.0.5/src/irc_server.c:1365:13: note: Shadow variable dircproxy-1.0.5/src/irc_server.c:153:49: style: Parameter 'addr' can be declared as pointer to const. However it seems that '_ircserver_connect2' is a callback function, if 'addr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dircproxy-1.0.5/src/irc_server.c:146:35: note: You might need to cast the function pointer here dircproxy-1.0.5/src/irc_server.c:153:49: note: Parameter 'addr' can be declared as pointer to const dircproxy-1.0.5/src/irc_server.c:181:49: style: Parameter 'addr' can be declared as pointer to const. However it seems that '_ircserver_connect3' is a callback function, if 'addr' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dircproxy-1.0.5/src/irc_server.c:172:22: note: You might need to cast the function pointer here dircproxy-1.0.5/src/irc_server.c:181:49: note: Parameter 'addr' can be declared as pointer to const dircproxy-1.0.5/src/irc_server.c:861:26: style: Variable 'c' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_server.c:953:28: style: Variable 'c' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/irc_server.c:1549:72: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] dircproxy-1.0.5/src/irc_server.c:1572:45: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] dircproxy-1.0.5/src/irc_server.c:1590:55: style: Parameter 'p' can be declared as pointer to const. However it seems that '_ircserver_send_dccreject' is a callback function, if 'p' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dircproxy-1.0.5/src/irc_server.c:1203:32: note: You might need to cast the function pointer here dircproxy-1.0.5/src/irc_server.c:1590:55: note: Parameter 'p' can be declared as pointer to const dircproxy-1.0.5/src/irc_server.c:703:17: style: Variable 's' is assigned a value that is never used. [unreadVariable] dircproxy-1.0.5/src/irc_server.c:744:17: style: Variable 's' is assigned a value that is never used. [unreadVariable] dircproxy-1.0.5/src/main.c:120:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_LISTEN_PORT [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/main.c:408:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEFAULT_LISTEN_PORT [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/main.c:497:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/main.c:505:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/main.c:512:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/main.c:539:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/main.c:567:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ERR [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/main.c:187:10: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] dircproxy-1.0.5/src/memdebug.c:89:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/memdebug.c:108:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/memdebug.c:145:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/memdebug.c:231:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dircproxy-1.0.5/src/memdebug.c:105:13: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] dircproxy-1.0.5/src/memdebug.c:104:26: note: Assuming allocation function fails dircproxy-1.0.5/src/memdebug.c:104:12: note: Assignment 'data=(char*)malloc(strlen("yankydoodledandy")+1)', assigned value is 0 dircproxy-1.0.5/src/memdebug.c:105:13: note: Null pointer dereference dircproxy-1.0.5/src/memdebug.c:106:5: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] dircproxy-1.0.5/src/memdebug.c:104:26: note: Assuming allocation function fails dircproxy-1.0.5/src/memdebug.c:104:12: note: Assignment 'data=(char*)malloc(strlen("yankydoodledandy")+1)', assigned value is 0 dircproxy-1.0.5/src/memdebug.c:106:5: note: Null pointer dereference dircproxy-1.0.5/src/memdebug.c:112:51: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] dircproxy-1.0.5/src/memdebug.c:104:26: note: Assuming allocation function fails dircproxy-1.0.5/src/memdebug.c:104:12: note: Assignment 'data=(char*)malloc(strlen("yankydoodledandy")+1)', assigned value is 0 dircproxy-1.0.5/src/memdebug.c:112:51: note: Null pointer dereference dircproxy-1.0.5/src/memdebug.c:121:13: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] dircproxy-1.0.5/src/memdebug.c:120:26: note: Assuming allocation function fails dircproxy-1.0.5/src/memdebug.c:120:12: note: Assignment 'data=(char*)malloc(strlen("itwasacolddayinhell")+1)', assigned value is 0 dircproxy-1.0.5/src/memdebug.c:121:13: note: Null pointer dereference dircproxy-1.0.5/src/memdebug.c:122:5: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] dircproxy-1.0.5/src/memdebug.c:120:26: note: Assuming allocation function fails dircproxy-1.0.5/src/memdebug.c:120:12: note: Assignment 'data=(char*)malloc(strlen("itwasacolddayinhell")+1)', assigned value is 0 dircproxy-1.0.5/src/memdebug.c:122:5: note: Null pointer dereference dircproxy-1.0.5/src/memdebug.c:127:52: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] dircproxy-1.0.5/src/memdebug.c:120:26: note: Assuming allocation function fails dircproxy-1.0.5/src/memdebug.c:120:12: note: Assignment 'data=(char*)malloc(strlen("itwasacolddayinhell")+1)', assigned value is 0 dircproxy-1.0.5/src/memdebug.c:127:52: note: Null pointer dereference dircproxy-1.0.5/src/memdebug.c:97:54: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] dircproxy-1.0.5/src/memdebug.c:133:37: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] dircproxy-1.0.5/src/memdebug.c:259:23: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] dircproxy-1.0.5/src/net.c:50:0: error: #error "unable to compile, no poll() or select() function" [preprocessorErrorDirective] dircproxy-1.0.5/src/net.c:50:4: error: #error "unable to compile, no poll() or select() function" [preprocessorErrorDirective] dircproxy-1.0.5/src/sprintf.c:132:5: error: Common realloc mistake: 'newstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:141:7: error: Common realloc mistake: 'newstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:156:7: error: Common realloc mistake: 'newstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:167:5: error: Common realloc mistake: 'newstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:181:7: error: Common realloc mistake: 'newstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:197:5: error: Common realloc mistake: 'newstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:234:5: error: Common realloc mistake: 'tmpstr' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:339:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:350:9: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:361:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:382:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:393:9: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:409:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:428:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:443:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:457:13: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:499:9: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:512:9: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:522:7: error: Common realloc mistake: 'newdest' nulled but not freed upon failure [memleakOnRealloc] dircproxy-1.0.5/src/sprintf.c:225:5: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpstr [nullPointerOutOfMemory] dircproxy-1.0.5/src/sprintf.c:223:28: note: Assuming allocation function fails dircproxy-1.0.5/src/sprintf.c:223:14: note: Assignment 'tmpstr=(char*)malloc(i+1)', assigned value is 0 dircproxy-1.0.5/src/sprintf.c:225:5: note: Null pointer dereference dircproxy-1.0.5/src/sprintf.c:227:7: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpstr [nullPointerOutOfMemory] dircproxy-1.0.5/src/sprintf.c:223:28: note: Assuming allocation function fails dircproxy-1.0.5/src/sprintf.c:223:14: note: Assignment 'tmpstr=(char*)malloc(i+1)', assigned value is 0 dircproxy-1.0.5/src/sprintf.c:227:7: note: Null pointer dereference dircproxy-1.0.5/src/sprintf.c:234:45: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: tmpstr [nullPointerOutOfMemory] dircproxy-1.0.5/src/sprintf.c:223:28: note: Assuming allocation function fails dircproxy-1.0.5/src/sprintf.c:223:14: note: Assignment 'tmpstr=(char*)malloc(i+1)', assigned value is 0 dircproxy-1.0.5/src/sprintf.c:234:45: note: Null pointer dereference dircproxy-1.0.5/src/sprintf.c:566:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] dircproxy-1.0.5/src/sprintf.c:564:23: note: Assuming allocation function fails dircproxy-1.0.5/src/sprintf.c:564:9: note: Assignment 'ret=(char*)malloc(strlen(s)+1)', assigned value is 0 dircproxy-1.0.5/src/sprintf.c:566:10: note: Null pointer dereference dircproxy-1.0.5/src/sprintf.c:102:16: style: Variable 'digits' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/sprintf.c:254:31: style: Variable 'formatpos' can be declared as pointer to const [constVariablePointer] dircproxy-1.0.5/src/sprintf.c:201:14: style: Variable 'newstrlen' is assigned a value that is never used. [unreadVariable] dircproxy-1.0.5/src/timers.c:71:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] dircproxy-1.0.5/src/timers.c:65:29: note: Assuming allocation function fails dircproxy-1.0.5/src/timers.c:65:7: note: Assignment 't=(struct timer*)malloc(sizeof(struct timer))', assigned value is 0 dircproxy-1.0.5/src/timers.c:71:3: note: Null pointer dereference dircproxy-1.0.5/src/timers.c:72:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] dircproxy-1.0.5/src/timers.c:65:29: note: Assuming allocation function fails dircproxy-1.0.5/src/timers.c:65:7: note: Assignment 't=(struct timer*)malloc(sizeof(struct timer))', assigned value is 0 dircproxy-1.0.5/src/timers.c:72:3: note: Null pointer dereference dircproxy-1.0.5/src/timers.c:73:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] dircproxy-1.0.5/src/timers.c:65:29: note: Assuming allocation function fails dircproxy-1.0.5/src/timers.c:65:7: note: Assignment 't=(struct timer*)malloc(sizeof(struct timer))', assigned value is 0 dircproxy-1.0.5/src/timers.c:73:3: note: Null pointer dereference dircproxy-1.0.5/src/timers.c:74:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] dircproxy-1.0.5/src/timers.c:65:29: note: Assuming allocation function fails dircproxy-1.0.5/src/timers.c:65:7: note: Assignment 't=(struct timer*)malloc(sizeof(struct timer))', assigned value is 0 dircproxy-1.0.5/src/timers.c:74:3: note: Null pointer dereference dircproxy-1.0.5/src/timers.c:76:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] dircproxy-1.0.5/src/timers.c:65:29: note: Assuming allocation function fails dircproxy-1.0.5/src/timers.c:65:7: note: Assignment 't=(struct timer*)malloc(sizeof(struct timer))', assigned value is 0 dircproxy-1.0.5/src/timers.c:76:3: note: Null pointer dereference dircproxy-1.0.5/src/timers.c:79:53: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] dircproxy-1.0.5/src/timers.c:65:29: note: Assuming allocation function fails dircproxy-1.0.5/src/timers.c:65:7: note: Assignment 't=(struct timer*)malloc(sizeof(struct timer))', assigned value is 0 dircproxy-1.0.5/src/timers.c:79:53: note: Null pointer dereference dircproxy-1.0.5/src/timers.c:80:10: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] dircproxy-1.0.5/src/timers.c:65:29: note: Assuming allocation function fails dircproxy-1.0.5/src/timers.c:65:7: note: Assignment 't=(struct timer*)malloc(sizeof(struct timer))', assigned value is 0 dircproxy-1.0.5/src/timers.c:80:10: note: Null pointer dereference dircproxy-1.0.5/src/timers.c:80:20: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] dircproxy-1.0.5/src/timers.c:65:29: note: Assuming allocation function fails dircproxy-1.0.5/src/timers.c:65:7: note: Assignment 't=(struct timer*)malloc(sizeof(struct timer))', assigned value is 0 dircproxy-1.0.5/src/timers.c:80:20: note: Null pointer dereference dircproxy-1.0.5/src/timers.c:81:10: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] dircproxy-1.0.5/src/timers.c:65:29: note: Assuming allocation function fails dircproxy-1.0.5/src/timers.c:65:7: note: Assignment 't=(struct timer*)malloc(sizeof(struct timer))', assigned value is 0 dircproxy-1.0.5/src/timers.c:81:10: note: Null pointer dereference dircproxy-1.0.5/src/timers.c:44:24: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] dircproxy-1.0.5/src/sprintf.c:564:31: warning: Null pointer dereference: s [ctunullpointer] dircproxy-1.0.5/src/irc_prot.c:145:13: note: Assuming that condition 'source->name' is not redundant dircproxy-1.0.5/src/irc_prot.c:149:32: note: Calling function x_strdup, 1st argument is null dircproxy-1.0.5/src/sprintf.c:564:31: note: Dereferencing argument s that is null diff: head dircproxy-1.0.5/src/net.c:50:4: error: #error "unable to compile, no poll() or select() function" [preprocessorErrorDirective] head dircproxy-1.0.5/src/timers.c:80:20: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] dircproxy-1.0.5/src/timers.c:65:29: note: Assuming allocation function fails dircproxy-1.0.5/src/timers.c:65:7: note: Assignment 't=(struct timer*)malloc(sizeof(struct timer))', assigned value is 0 dircproxy-1.0.5/src/timers.c:80:20: note: Null pointer dereference DONE