2025-07-22 07:11 ftp://ftp.de.debian.org/debian/pool/main/k/knocker/knocker_0.7.1.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-64-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.18.0 head-info: 140480f (2025-07-21 08:45:09 +0200) count: 116 116 elapsed-time: 1.2 1.0 head-timing-info: old-timing-info: head results: knocker-0.7.1/src/knocker_args.c:47:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_args.c:61:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_args.c:158:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_args.c:361:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_args.c:269:15: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] knocker-0.7.1/src/knocker_args.c:289:15: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] knocker-0.7.1/src/knocker_args.c:308:15: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] knocker-0.7.1/src/knocker_args.c:338:75: style: Parameter 'argv' can be declared as const array [constParameter] knocker-0.7.1/src/knocker_conf.c:125:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_conf.c:199:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_conf.c:394:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_conf.c:522:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_conf.c:619:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_conf.c:152:19: style: Condition 'line[i]=='\0'' is always false [knownConditionTrueFalse] knocker-0.7.1/src/knocker_conf.c:155:33: style: Condition '!first_char' is always true [knownConditionTrueFalse] knocker-0.7.1/src/knocker_conf.c:144:20: note: Assignment 'first_char=0', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:147:15: note: Assuming condition is false knocker-0.7.1/src/knocker_conf.c:155:33: note: Condition '!first_char' is always true knocker-0.7.1/src/knocker_conf.c:125:3: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] knocker-0.7.1/src/knocker_conf.c:228:3: error: Memory leak: tmpp [memleak] knocker-0.7.1/src/knocker_conf.c:231:5: error: Memory leak: p [memleak] knocker-0.7.1/src/knocker_conf.c:238:7: error: Memory leak: p [memleak] knocker-0.7.1/src/knocker_conf.c:242:3: error: Memory leak: p [memleak] knocker-0.7.1/src/knocker_conf.c:125:24: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:113:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:113:22: note: Assignment 'tmp=malloc(255)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:125:24: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:128:30: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:113:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:113:22: note: Assignment 'tmp=malloc(255)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:128:30: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:130:39: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:113:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:113:22: note: Assignment 'tmp=malloc(255)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:130:39: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:132:11: warning: If memory allocation fails, then there is a possible null pointer dereference: answer [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:128:21: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:128:21: note: Assignment 'answer=malloc(strlen(tmp)+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:132:11: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:132:19: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:113:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:113:22: note: Assignment 'tmp=malloc(255)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:132:19: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:377:11: warning: If memory allocation fails, then there is a possible null pointer dereference: conf_file [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:375:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:375:22: note: Assignment 'conf_file=malloc(strlen(knocker_user.dir)+strlen("/")+strlen("knocker.conf")+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:377:11: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:378:11: warning: If memory allocation fails, then there is a possible null pointer dereference: conf_file [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:375:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:375:22: note: Assignment 'conf_file=malloc(strlen(knocker_user.dir)+strlen("/")+strlen("knocker.conf")+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:378:11: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:379:11: warning: If memory allocation fails, then there is a possible null pointer dereference: conf_file [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:375:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:375:22: note: Assignment 'conf_file=malloc(strlen(knocker_user.dir)+strlen("/")+strlen("knocker.conf")+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:379:11: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:381:20: warning: If memory allocation fails, then there is a possible null pointer dereference: conf_file [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:375:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:375:22: note: Assignment 'conf_file=malloc(strlen(knocker_user.dir)+strlen("/")+strlen("knocker.conf")+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:381:20: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:454:11: warning: If memory allocation fails, then there is a possible null pointer dereference: conf_file [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:452:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:452:22: note: Assignment 'conf_file=malloc(strlen(knocker_user.dir)+strlen("/")+strlen("knocker.conf")+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:454:11: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:455:11: warning: If memory allocation fails, then there is a possible null pointer dereference: conf_file [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:452:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:452:22: note: Assignment 'conf_file=malloc(strlen(knocker_user.dir)+strlen("/")+strlen("knocker.conf")+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:455:11: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:456:11: warning: If memory allocation fails, then there is a possible null pointer dereference: conf_file [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:452:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:452:22: note: Assignment 'conf_file=malloc(strlen(knocker_user.dir)+strlen("/")+strlen("knocker.conf")+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:456:11: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:458:20: warning: If memory allocation fails, then there is a possible null pointer dereference: conf_file [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:452:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:452:22: note: Assignment 'conf_file=malloc(strlen(knocker_user.dir)+strlen("/")+strlen("knocker.conf")+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:458:20: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:513:11: warning: If memory allocation fails, then there is a possible null pointer dereference: conf_file [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:511:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:511:22: note: Assignment 'conf_file=malloc(strlen(knocker_user.dir)+strlen("/")+strlen("knocker.conf")+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:513:11: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:514:11: warning: If memory allocation fails, then there is a possible null pointer dereference: conf_file [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:511:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:511:22: note: Assignment 'conf_file=malloc(strlen(knocker_user.dir)+strlen("/")+strlen("knocker.conf")+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:514:11: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:515:11: warning: If memory allocation fails, then there is a possible null pointer dereference: conf_file [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:511:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:511:22: note: Assignment 'conf_file=malloc(strlen(knocker_user.dir)+strlen("/")+strlen("knocker.conf")+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:515:11: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:517:20: warning: If memory allocation fails, then there is a possible null pointer dereference: conf_file [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:511:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:511:22: note: Assignment 'conf_file=malloc(strlen(knocker_user.dir)+strlen("/")+strlen("knocker.conf")+1)', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:517:20: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:666:19: warning: If memory allocation fails, then there is a possible null pointer dereference: color1 [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:665:27: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:665:27: note: Assignment 'color1=malloc(strlen(_get_answer(buff)+1))', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:666:19: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:673:19: warning: If memory allocation fails, then there is a possible null pointer dereference: color1_attr [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:672:32: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:672:32: note: Assignment 'color1_attr=malloc(strlen(_get_answer(buff)+1))', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:673:19: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:682:19: warning: If memory allocation fails, then there is a possible null pointer dereference: color2 [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:681:27: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:681:27: note: Assignment 'color2=malloc(strlen(_get_answer(buff)+1))', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:682:19: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:689:19: warning: If memory allocation fails, then there is a possible null pointer dereference: color2_attr [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_conf.c:688:32: note: Assuming allocation function fails knocker-0.7.1/src/knocker_conf.c:688:32: note: Assignment 'color2_attr=malloc(strlen(_get_answer(buff)+1))', assigned value is 0 knocker-0.7.1/src/knocker_conf.c:689:19: note: Null pointer dereference knocker-0.7.1/src/knocker_conf.c:407:24: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] knocker-0.7.1/src/knocker_conf.c:409:19: note: Found duplicate branches for 'if' and 'else'. knocker-0.7.1/src/knocker_conf.c:407:24: note: Found duplicate branches for 'if' and 'else'. knocker-0.7.1/src/knocker_conf.c:228:8: style: Redundant initialization for 'tmpp'. The initialized value is overwritten before it is read. [redundantInitialization] knocker-0.7.1/src/knocker_conf.c:224:14: note: tmpp is initialized knocker-0.7.1/src/knocker_conf.c:228:8: note: tmpp is overwritten knocker-0.7.1/src/knocker_conf.c:242:5: style: Redundant initialization for 'p'. The initialized value is overwritten before it is read. [redundantInitialization] knocker-0.7.1/src/knocker_conf.c:225:11: note: p is initialized knocker-0.7.1/src/knocker_conf.c:242:5: note: p is overwritten knocker-0.7.1/src/knocker_conf.c:55:25: style: Parameter 'answer' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_conf.c:76:26: style: Parameter 'answer' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_conf.c:142:32: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_conf.c:177:28: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_conf.c:222:42: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_conf.c:225:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] knocker-0.7.1/src/knocker_conf.c:261:30: style: Parameter 'opt_value' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_conf.c:291:37: style: Parameter 'opt_value' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_conf.c:505:47: style: Parameter 'color1' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_conf.c:505:61: style: Parameter 'color2' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_conf.c:505:75: style: Parameter 'color1_attr' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_conf.c:505:94: style: Parameter 'color2_attr' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_conf.c:701:22: style: Variable 'use_colors' is assigned a value that is never used. [unreadVariable] knocker-0.7.1/src/knocker_core.c:375:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_core.c:584:22: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] knocker-0.7.1/src/knocker_core.c:603:20: portability: Non reentrant function 'getservbyport' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyport_r'. [prohibitedgetservbyportCalled] knocker-0.7.1/src/knocker_core.c:607:20: portability: Non reentrant function 'getservbyport' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyport_r'. [prohibitedgetservbyportCalled] knocker-0.7.1/src/knocker_core.c:222:7: error: Common realloc mistake: 'knocker_core_last_hostname' nulled but not freed upon failure [memleakOnRealloc] knocker-0.7.1/src/knocker_core.c:254:7: error: Common realloc mistake: 'knocker_core_last_hostip' nulled but not freed upon failure [memleakOnRealloc] knocker-0.7.1/src/knocker_core.c:319:11: error: Common realloc mistake: 'knocker_core_last_service' nulled but not freed upon failure [memleakOnRealloc] knocker-0.7.1/src/knocker_core.c:331:7: error: Common realloc mistake: 'knocker_core_last_service' nulled but not freed upon failure [memleakOnRealloc] knocker-0.7.1/src/knocker_core.c:234:19: warning: If memory allocation fails, then there is a possible null pointer dereference: knocker_core_last_hostname [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_core.c:218:43: note: Assuming allocation function fails knocker-0.7.1/src/knocker_core.c:218:43: note: Assignment 'knocker_core_last_hostname=malloc(1+strlen(knocker_core_get_host_name_string(&data->host)))', assigned value is 0 knocker-0.7.1/src/knocker_core.c:234:19: note: Null pointer dereference knocker-0.7.1/src/knocker_core.c:263:19: warning: If memory allocation fails, then there is a possible null pointer dereference: knocker_core_last_hostip [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_core.c:250:41: note: Assuming allocation function fails knocker-0.7.1/src/knocker_core.c:250:41: note: Assignment 'knocker_core_last_hostip=malloc(1+strlen(knocker_core_get_host_ip_string(&data->host)))', assigned value is 0 knocker-0.7.1/src/knocker_core.c:263:19: note: Null pointer dereference knocker-0.7.1/src/knocker_core.c:315:19: warning: If memory allocation fails, then there is a possible null pointer dereference: knocker_core_last_service [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_core.c:314:46: note: Assuming allocation function fails knocker-0.7.1/src/knocker_core.c:314:46: note: Assignment 'knocker_core_last_service=malloc(strlen("unknown")+1)', assigned value is 0 knocker-0.7.1/src/knocker_core.c:315:19: note: Null pointer dereference knocker-0.7.1/src/knocker_core.c:335:19: warning: If memory allocation fails, then there is a possible null pointer dereference: knocker_core_last_service [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_core.c:327:42: note: Assuming allocation function fails knocker-0.7.1/src/knocker_core.c:327:42: note: Assignment 'knocker_core_last_service=malloc(slenght+1)', assigned value is 0 knocker-0.7.1/src/knocker_core.c:335:19: note: Null pointer dereference knocker-0.7.1/src/knocker_core.c:599:19: style: Variable 'service_st' can be declared as pointer to const [constVariablePointer] knocker-0.7.1/src/knocker_core.c:711:71: style: Parameter 'hinfo' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_core.c:720:69: style: Parameter 'hinfo' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_led.c:64:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDSETLED [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_led.c:111:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDGETLED [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_led.c:153:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDGETLED [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_led.c:200:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LED_NUM [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_led.c:221:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDGETLED [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_led.c:309:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable KDSETLED [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_log.c:77:35: style: Parameter 'hostname_str' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_log.c:77:55: style: Parameter 'hostip_str' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_log.c:94:39: style: Parameter 'hostname_str' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_log.c:130:45: style: Parameter 'service_str' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_log.c:144:33: style: Parameter 'hostname_str' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_log.c:144:53: style: Parameter 'hostip_str' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_log.c:144:96: style: Parameter 'secs' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_main.c:62:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_main.c:160:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_main.c:238:102: style: Condition 'knocker_args.eport!=0' is always true [knownConditionTrueFalse] knocker-0.7.1/src/knocker_main.c:238:73: note: Assuming that condition 'knocker_args.sport!=0' is not redundant knocker-0.7.1/src/knocker_main.c:238:27: note: Assuming that condition 'knocker_args.sport==knocker_args.eport' is not redundant knocker-0.7.1/src/knocker_main.c:238:102: note: Condition 'knocker_args.eport!=0' is always true knocker-0.7.1/src/knocker_output.c:59:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_output.c:109:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_output.c:139:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_output.c:162:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_output.c:188:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_output.c:221:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_output.c:135:42: style: Parameter 'hostname_str' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_output.c:184:48: style: Parameter 'service_str' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_output.c:217:36: style: Parameter 'hostname_str' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_output.c:217:56: style: Parameter 'hostname_ip' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_output.c:217:101: style: Parameter 'secs' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_services.c:1039:11: error: Common realloc mistake: 'knocker_core_last_service' nulled but not freed upon failure [memleakOnRealloc] knocker-0.7.1/src/knocker_services.c:1052:7: error: Common realloc mistake: 'knocker_core_last_service' nulled but not freed upon failure [memleakOnRealloc] knocker-0.7.1/src/knocker_services.c:1035:19: warning: If memory allocation fails, then there is a possible null pointer dereference: knocker_core_last_service [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_services.c:1034:46: note: Assuming allocation function fails knocker-0.7.1/src/knocker_services.c:1034:46: note: Assignment 'knocker_core_last_service=malloc(strlen("unknown")+1)', assigned value is 0 knocker-0.7.1/src/knocker_services.c:1035:19: note: Null pointer dereference knocker-0.7.1/src/knocker_services.c:1056:19: warning: If memory allocation fails, then there is a possible null pointer dereference: knocker_core_last_service [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_services.c:1048:42: note: Assuming allocation function fails knocker-0.7.1/src/knocker_services.c:1048:42: note: Assignment 'knocker_core_last_service=malloc(slenght+1)', assigned value is 0 knocker-0.7.1/src/knocker_services.c:1056:19: note: Null pointer dereference knocker-0.7.1/src/knocker_term.c:141:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_user.c:417:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] knocker-0.7.1/src/knocker_user.c:202:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] knocker-0.7.1/src/knocker_user.c:203:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] knocker-0.7.1/src/knocker_user.c:275:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] knocker-0.7.1/src/knocker_user.c:146:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] knocker-0.7.1/src/knocker_user.c:147:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] knocker-0.7.1/src/knocker_user.c:148:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] knocker-0.7.1/src/knocker_user.c:136:20: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: lscanfile [nullPointerOutOfMemory] knocker-0.7.1/src/knocker_user.c:133:22: note: Assuming allocation function fails knocker-0.7.1/src/knocker_user.c:133:22: note: Assignment 'lscanfile=malloc(strlen(user->dir)+strlen("lastscan")+2)', assigned value is 0 knocker-0.7.1/src/knocker_user.c:136:20: note: Null pointer dereference knocker-0.7.1/src/knocker_user.c:119:51: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_user.c:119:74: style: Parameter 'args' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_user.c:170:50: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] knocker-0.7.1/src/knocker_user.c:243:50: style: Parameter 'user' can be declared as pointer to const [constParameterPointer] diff: DONE