2025-05-10 17:46 ftp://ftp.de.debian.org/debian/pool/main/f/fwlogwatch/fwlogwatch_1.4.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=zlib --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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: beb3362 (2025-05-10 14:33:23 +0200) count: 187 194 elapsed-time: 3.7 3.7 head-timing-info: old-timing-info: head results: fwlogwatch-1.4/lancom.c:29:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/main.c:246:100: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/compare.c:158:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/compare.c:264:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/compare.c:383:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/modes.c:108:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/modes.c:413:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/modes.c:427:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/modes.c:444:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/modes.c:459:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/modes.c:483:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/modes.c:533:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/modes.c:594:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/modes.c:725:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/main.c:22:18: style: Parameter 'me' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/main.c:136:9: style: Variable 'user' can be declared as pointer to const [constVariablePointer] fwlogwatch-1.4/compare.c:382:49: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/compare.c:384:49: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/compare.c:25:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:25:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:26:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:26:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:32:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:32:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:33:12: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:33:12: note: Null pointer dereference fwlogwatch-1.4/compare.c:34:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:34:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:35:12: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:35:12: note: Null pointer dereference fwlogwatch-1.4/compare.c:36:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:36:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:37:12: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:37:12: note: Null pointer dereference fwlogwatch-1.4/compare.c:38:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:38:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:39:12: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:39:12: note: Null pointer dereference fwlogwatch-1.4/compare.c:40:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:40:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:41:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:41:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:42:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:42:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:43:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:43:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:44:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:44:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:45:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:45:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:46:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:46:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:47:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:47:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:49:3: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fwlogwatch-1.4/compare.c:23:17: note: Assuming allocation function fails fwlogwatch-1.4/compare.c:23:17: note: Assignment 'data=xmalloc(sizeof(struct conn_data))', assigned value is 0 fwlogwatch-1.4/compare.c:49:3: note: Null pointer dereference fwlogwatch-1.4/compare.c:213:7: warning: Possible null pointer dereference: tail [nullPointer] fwlogwatch-1.4/compare.c:173:21: note: Assignment 'tail=NULL', assigned value is 0 fwlogwatch-1.4/compare.c:213:7: note: Null pointer dereference fwlogwatch-1.4/compare.c:195:29: style: Checking if unsigned expression 'compare(p,q)' is less than zero. [unsignedLessThanZero] fwlogwatch-1.4/compare.c:164:55: style:inconclusive: Function 'fwlw_pc_mergesort' argument 1 names different: declaration 'list1' definition 'list'. [funcArgNamesDifferent] fwlogwatch-1.4/compare.h:9:55: note: Function 'fwlw_pc_mergesort' argument 1 names different: declaration 'list1' definition 'list'. fwlogwatch-1.4/compare.c:164:55: note: Function 'fwlw_pc_mergesort' argument 1 names different: declaration 'list1' definition 'list'. fwlogwatch-1.4/modes.c:193:58: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/modes.c:200:57: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/modes.c:246:58: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/modes.c:249:14: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] fwlogwatch-1.4/modes.c:663:11: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] fwlogwatch-1.4/modes.c:815:52: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/modes.c:817:52: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/modes.c:599:3: error: Resource leak: retval [resourceLeak] fwlogwatch-1.4/modes.c:670:21: warning: Either the condition 'pwe==NULL' is redundant or there is possible null pointer dereference: pwe. [nullPointerRedundantCheck] fwlogwatch-1.4/modes.c:664:13: note: Assuming that condition 'pwe==NULL' is not redundant fwlogwatch-1.4/modes.c:670:21: note: Null pointer dereference fwlogwatch-1.4/modes.c:718:10: style: Local variable 'first' shadows outer variable [shadowVariable] fwlogwatch-1.4/modes.c:39:26: note: Shadowed declaration fwlogwatch-1.4/modes.c:718:10: note: Shadow variable fwlogwatch-1.4/modes.c:95:70: style: Variable 'input' can be declared as pointer to const [constVariablePointer] fwlogwatch-1.4/modes.c:99:18: style: Variable 'gen_user' can be declared as pointer to const [constVariablePointer] fwlogwatch-1.4/modes.c:661:20: style: Variable 'pwe' can be declared as pointer to const [constVariablePointer] fwlogwatch-1.4/modes.c:714:50: style: Variable 'input' can be declared as pointer to const [constVariablePointer] fwlogwatch-1.4/modes.c:49:19: style: Variable 'hit' is assigned a value that is never used. [unreadVariable] fwlogwatch-1.4/modes.c:715:14: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] fwlogwatch-1.4/output.c:397:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/net.c:54:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/net.c:70:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/net.c:149:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/net.c:590:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INET6_ADDRSTRLEN [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/parser.c:41:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/parser.c:270:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/output.c:106:51: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/output.c:113:53: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/output.c:193:51: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/output.c:202:53: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/output.c:380:49: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/output.c:97:3: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] fwlogwatch-1.4/output.c:99:5: note: Found duplicate branches for 'if' and 'else'. fwlogwatch-1.4/output.c:97:3: note: Found duplicate branches for 'if' and 'else'. fwlogwatch-1.4/output.c:190:17: style: Local variable 'first' shadows outer variable [shadowVariable] fwlogwatch-1.4/output.c:19:26: note: Shadowed declaration fwlogwatch-1.4/output.c:190:17: note: Shadow variable fwlogwatch-1.4/output.c:51:40: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/output.c:150:27: style: Variable 'we' can be declared as pointer to const [constVariablePointer] fwlogwatch-1.4/output.c:268:27: style: Variable 'we' can be declared as pointer to const [constVariablePointer] fwlogwatch-1.4/parser.c:36:11: error: Width 32 given in format string (no. 4) is larger than destination buffer 'name[32]', use %31s to prevent overflowing it. [invalidScanfFormatWidth] fwlogwatch-1.4/parser.c:36:11: error: Width 1024 given in format string (no. 5) is larger than destination buffer 'rest[1024]', use %1023s to prevent overflowing it. [invalidScanfFormatWidth] fwlogwatch-1.4/parser.c:197:25: warning: If memory allocation fails, then there is a possible null pointer dereference: pnt [nullPointerOutOfMemory] fwlogwatch-1.4/parser.c:195:18: note: Assuming allocation function fails fwlogwatch-1.4/parser.c:195:18: note: Assignment 'string=strdup(input)', assigned value is 0 fwlogwatch-1.4/parser.c:196:9: note: Assignment 'pnt=string', assigned value is 0 fwlogwatch-1.4/parser.c:197:25: note: Null pointer dereference fwlogwatch-1.4/parser.c:29:9: style: Variable 'pnt' can be declared as pointer to const [constVariablePointer] fwlogwatch-1.4/parser.c:190:22: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/resolve.c:62:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/resolve.c:76:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/resolve.c:206:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/resolve.c:240:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/resolve.c:354:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/resolve.c:41:14: portability: Non reentrant function 'getprotobynumber' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotobynumber_r'. [prohibitedgetprotobynumberCalled] fwlogwatch-1.4/resolve.c:58:13: portability: Non reentrant function 'getservbyport' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyport_r'. [prohibitedgetservbyportCalled] fwlogwatch-1.4/resolve.c:47:14: warning: If memory allocation fails, then there is a possible null pointer dereference: number [nullPointerOutOfMemory] fwlogwatch-1.4/resolve.c:46:21: note: Assuming allocation function fails fwlogwatch-1.4/resolve.c:46:21: note: Assignment 'number=xmalloc(4)', assigned value is 0 fwlogwatch-1.4/resolve.c:47:14: note: Null pointer dereference fwlogwatch-1.4/resolve.c:225:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dns [nullPointerOutOfMemory] fwlogwatch-1.4/resolve.c:223:16: note: Assuming allocation function fails fwlogwatch-1.4/resolve.c:223:16: note: Assignment 'dns=xmalloc(sizeof(struct dns_cache))', assigned value is 0 fwlogwatch-1.4/resolve.c:225:3: note: Null pointer dereference fwlogwatch-1.4/resolve.c:226:12: warning: If memory allocation fails, then there is a possible null pointer dereference: dns [nullPointerOutOfMemory] fwlogwatch-1.4/resolve.c:223:16: note: Assuming allocation function fails fwlogwatch-1.4/resolve.c:223:16: note: Assignment 'dns=xmalloc(sizeof(struct dns_cache))', assigned value is 0 fwlogwatch-1.4/resolve.c:226:12: note: Null pointer dereference fwlogwatch-1.4/resolve.c:227:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dns [nullPointerOutOfMemory] fwlogwatch-1.4/resolve.c:223:16: note: Assuming allocation function fails fwlogwatch-1.4/resolve.c:223:16: note: Assignment 'dns=xmalloc(sizeof(struct dns_cache))', assigned value is 0 fwlogwatch-1.4/resolve.c:227:3: note: Null pointer dereference fwlogwatch-1.4/resolve.c:230:11: warning: If memory allocation fails, then there is a possible null pointer dereference: dns [nullPointerOutOfMemory] fwlogwatch-1.4/resolve.c:223:16: note: Assuming allocation function fails fwlogwatch-1.4/resolve.c:223:16: note: Assignment 'dns=xmalloc(sizeof(struct dns_cache))', assigned value is 0 fwlogwatch-1.4/resolve.c:230:11: note: Null pointer dereference fwlogwatch-1.4/resolve.c:249:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dns [nullPointerOutOfMemory] fwlogwatch-1.4/resolve.c:247:16: note: Assuming allocation function fails fwlogwatch-1.4/resolve.c:247:16: note: Assignment 'dns=xmalloc(sizeof(struct dns_cache))', assigned value is 0 fwlogwatch-1.4/resolve.c:249:3: note: Null pointer dereference fwlogwatch-1.4/resolve.c:250:12: warning: If memory allocation fails, then there is a possible null pointer dereference: dns [nullPointerOutOfMemory] fwlogwatch-1.4/resolve.c:247:16: note: Assuming allocation function fails fwlogwatch-1.4/resolve.c:247:16: note: Assignment 'dns=xmalloc(sizeof(struct dns_cache))', assigned value is 0 fwlogwatch-1.4/resolve.c:250:12: note: Null pointer dereference fwlogwatch-1.4/resolve.c:251:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dns [nullPointerOutOfMemory] fwlogwatch-1.4/resolve.c:247:16: note: Assuming allocation function fails fwlogwatch-1.4/resolve.c:247:16: note: Assignment 'dns=xmalloc(sizeof(struct dns_cache))', assigned value is 0 fwlogwatch-1.4/resolve.c:251:3: note: Null pointer dereference fwlogwatch-1.4/resolve.c:52:39: style: Parameter 'proto' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/resolve.c:80:9: style: Variable 'sa' can be declared as pointer to const [constVariablePointer] fwlogwatch-1.4/resolve.c:128:26: style: Variable 'sin' can be declared as pointer to const [constVariablePointer] fwlogwatch-1.4/resolve.c:233:48: style: Parameter 'hostname' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/resolve.c:346:52: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/rcfile.c:58:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/rcfile.c:87:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/rcfile.c:281:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/rcfile.c:332:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/rcfile.c:349:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/response.c:36:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/response.c:75:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/response.c:168:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/response.c:233:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in6_addr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/response.c:272:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in6_addr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/response.c:41:14: error: Width 10 given in format string (no. 1) is larger than destination buffer 'chain[10]', use %9s to prevent overflowing it. [invalidScanfFormatWidth] fwlogwatch-1.4/response.c:41:14: error: Width 36 given in format string (no. 2) is larger than destination buffer 'src_dst[36]', use %35s to prevent overflowing it. [invalidScanfFormatWidth] fwlogwatch-1.4/response.c:41:14: error: Width 16 given in format string (no. 3) is larger than destination buffer 'interface[16]', use %15s to prevent overflowing it. [invalidScanfFormatWidth] fwlogwatch-1.4/response.c:41:14: error: Width 80 given in format string (no. 7) is larger than destination buffer 'rest[80]', use %79s to prevent overflowing it. [invalidScanfFormatWidth] fwlogwatch-1.4/response.c:83:7: error: Memory pointed to by 'buf' is freed twice. [doubleFree] fwlogwatch-1.4/response.c:76:5: note: Memory pointed to by 'buf' is freed twice. fwlogwatch-1.4/response.c:83:7: note: Memory pointed to by 'buf' is freed twice. fwlogwatch-1.4/response.c:88:3: error: Memory pointed to by 'buf' is freed twice. [doubleFree] fwlogwatch-1.4/response.c:76:5: note: Memory pointed to by 'buf' is freed twice. fwlogwatch-1.4/response.c:88:3: note: Memory pointed to by 'buf' is freed twice. fwlogwatch-1.4/response.c:40:30: warning: If resource allocation fails, then there is a possible null pointer dereference: fd [nullPointerOutOfResources] fwlogwatch-1.4/response.c:34:13: note: Assuming allocation function fails fwlogwatch-1.4/response.c:34:13: note: Assignment 'fd=fopen("/proc/net/ip_fwchains","r")', assigned value is 0 fwlogwatch-1.4/response.c:40:30: note: Null pointer dereference fwlogwatch-1.4/response.c:73:23: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] fwlogwatch-1.4/response.c:71:16: note: Assuming allocation function fails fwlogwatch-1.4/response.c:71:16: note: Assignment 'buf=xmalloc(sizeof(struct stat))', assigned value is 0 fwlogwatch-1.4/response.c:73:23: note: Null pointer dereference fwlogwatch-1.4/response.c:269:2: warning: If memory allocation fails, then there is a possible null pointer dereference: this_host [nullPointerOutOfMemory] fwlogwatch-1.4/response.c:268:21: note: Assuming allocation function fails fwlogwatch-1.4/response.c:268:21: note: Assignment 'this_host=xmalloc(sizeof(struct known_hosts))', assigned value is 0 fwlogwatch-1.4/response.c:269:2: note: Null pointer dereference fwlogwatch-1.4/response.c:270:2: warning: If memory allocation fails, then there is a possible null pointer dereference: this_host [nullPointerOutOfMemory] fwlogwatch-1.4/response.c:268:21: note: Assuming allocation function fails fwlogwatch-1.4/response.c:268:21: note: Assignment 'this_host=xmalloc(sizeof(struct known_hosts))', assigned value is 0 fwlogwatch-1.4/response.c:270:2: note: Null pointer dereference fwlogwatch-1.4/response.c:271:2: warning: If memory allocation fails, then there is a possible null pointer dereference: this_host [nullPointerOutOfMemory] fwlogwatch-1.4/response.c:268:21: note: Assuming allocation function fails fwlogwatch-1.4/response.c:268:21: note: Assignment 'this_host=xmalloc(sizeof(struct known_hosts))', assigned value is 0 fwlogwatch-1.4/response.c:271:2: note: Null pointer dereference fwlogwatch-1.4/response.c:273:2: warning: If memory allocation fails, then there is a possible null pointer dereference: this_host [nullPointerOutOfMemory] fwlogwatch-1.4/response.c:268:21: note: Assuming allocation function fails fwlogwatch-1.4/response.c:268:21: note: Assignment 'this_host=xmalloc(sizeof(struct known_hosts))', assigned value is 0 fwlogwatch-1.4/response.c:273:2: note: Null pointer dereference fwlogwatch-1.4/response.c:274:2: warning: If memory allocation fails, then there is a possible null pointer dereference: this_host [nullPointerOutOfMemory] fwlogwatch-1.4/response.c:268:21: note: Assuming allocation function fails fwlogwatch-1.4/response.c:268:21: note: Assignment 'this_host=xmalloc(sizeof(struct known_hosts))', assigned value is 0 fwlogwatch-1.4/response.c:274:2: note: Null pointer dereference fwlogwatch-1.4/response.c:275:2: warning: If memory allocation fails, then there is a possible null pointer dereference: this_host [nullPointerOutOfMemory] fwlogwatch-1.4/response.c:268:21: note: Assuming allocation function fails fwlogwatch-1.4/response.c:268:21: note: Assignment 'this_host=xmalloc(sizeof(struct known_hosts))', assigned value is 0 fwlogwatch-1.4/response.c:275:2: note: Null pointer dereference fwlogwatch-1.4/response.c:276:2: warning: If memory allocation fails, then there is a possible null pointer dereference: this_host [nullPointerOutOfMemory] fwlogwatch-1.4/response.c:268:21: note: Assuming allocation function fails fwlogwatch-1.4/response.c:268:21: note: Assignment 'this_host=xmalloc(sizeof(struct known_hosts))', assigned value is 0 fwlogwatch-1.4/response.c:276:2: note: Null pointer dereference fwlogwatch-1.4/response.c:277:2: warning: If memory allocation fails, then there is a possible null pointer dereference: this_host [nullPointerOutOfMemory] fwlogwatch-1.4/response.c:268:21: note: Assuming allocation function fails fwlogwatch-1.4/response.c:268:21: note: Assignment 'this_host=xmalloc(sizeof(struct known_hosts))', assigned value is 0 fwlogwatch-1.4/response.c:277:2: note: Null pointer dereference fwlogwatch-1.4/response.c:278:2: warning: If memory allocation fails, then there is a possible null pointer dereference: this_host [nullPointerOutOfMemory] fwlogwatch-1.4/response.c:268:21: note: Assuming allocation function fails fwlogwatch-1.4/response.c:268:21: note: Assignment 'this_host=xmalloc(sizeof(struct known_hosts))', assigned value is 0 fwlogwatch-1.4/response.c:278:2: note: Null pointer dereference fwlogwatch-1.4/response.c:280:54: warning: If memory allocation fails, then there is a possible null pointer dereference: this_host [nullPointerOutOfMemory] fwlogwatch-1.4/response.c:268:21: note: Assuming allocation function fails fwlogwatch-1.4/response.c:268:21: note: Assignment 'this_host=xmalloc(sizeof(struct known_hosts))', assigned value is 0 fwlogwatch-1.4/response.c:280:54: note: Null pointer dereference fwlogwatch-1.4/response.c:443:2: warning: Possible null pointer dereference: tail [nullPointer] fwlogwatch-1.4/response.c:403:16: note: Assignment 'tail=NULL', assigned value is 0 fwlogwatch-1.4/response.c:443:2: note: Null pointer dereference fwlogwatch-1.4/response.c:425:34: style: Checking if unsigned expression 'hs_compare(p,q)' is less than zero. [unsignedLessThanZero] fwlogwatch-1.4/net.c:52:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] fwlogwatch-1.4/net.c:90:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] fwlogwatch-1.4/net.c:341:60: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/net.c:344:60: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/net.c:419:51: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/net.c:528:51: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/net.c:664:8: portability: Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'. [prohibitedcryptCalled] fwlogwatch-1.4/net.c:591:56: style: Variable 'pnt' can be declared as pointer to const [constVariablePointer] fwlogwatch-1.4/net.c:93:21: error: Uninitialized variable: in6a [uninitvar] fwlogwatch-1.4/utils.c:53:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/utils.c:65:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/utils.c:77:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/utils.c:184:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in6_addr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/utils.c:194:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/utils.c:296:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/utils.c:310:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/utils.c:338:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable in6_addr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/utils.c:403:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/utils.c:443:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/utils.c:545:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/whois.c:35:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/whois.c:226:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/whois.c:254:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fwlogwatch-1.4/utils.c:207:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/utils.c:212:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/utils.c:517:46: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fwlogwatch-1.4/utils.c:463:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: excluded_this [nullPointerOutOfMemory] fwlogwatch-1.4/utils.c:437:26: note: Assuming allocation function fails fwlogwatch-1.4/utils.c:437:26: note: Assignment 'excluded_this=xmalloc(sizeof(struct parser_options))', assigned value is 0 fwlogwatch-1.4/utils.c:463:3: note: Null pointer dereference fwlogwatch-1.4/utils.c:35:10: style: Checking if unsigned expression 'n' is less than zero. [unsignedLessThanZero] fwlogwatch-1.4/utils.c:201:23: style: Parameter 'smonth' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/utils.c:253:36: style: Parameter 'ip1' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/utils.c:253:58: style: Parameter 'ip2' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/utils.c:268:42: style: Parameter 'ip1' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/utils.c:268:64: style: Parameter 'ip2' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/utils.c:278:49: style: Parameter 'ip' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/utils.c:306:32: style: Parameter 'ip' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/utils.c:467:27: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/whois.c:40:9: warning: Either the condition 'cnt<32' is redundant or the array 'buffer[32]' is accessed at index 32, which is out of bounds. [arrayIndexOutOfBoundsCond] fwlogwatch-1.4/whois.c:35:44: note: Assuming that condition 'cnt<32' is not redundant fwlogwatch-1.4/whois.c:40:9: note: Array index out of bounds fwlogwatch-1.4/whois.c:62:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] fwlogwatch-1.4/whois.c:252:8: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] fwlogwatch-1.4/whois.c:266:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] fwlogwatch-1.4/whois.c:62:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] fwlogwatch-1.4/whois.c:82:21: note: Assuming allocation function fails fwlogwatch-1.4/whois.c:82:21: note: Assignment 'data=xmalloc(retval+1)', assigned value is 0 fwlogwatch-1.4/whois.c:83:25: note: Calling function 'whois_read_socket', 1st argument 'data' value is 0 fwlogwatch-1.4/whois.c:62:9: note: Null pointer dereference fwlogwatch-1.4/whois.c:128:3: warning: If memory allocation fails, then there is a possible null pointer dereference: we [nullPointerOutOfMemory] fwlogwatch-1.4/whois.c:235:15: note: Assuming allocation function fails fwlogwatch-1.4/whois.c:235:15: note: Assignment 'we=xmalloc(sizeof(struct whois_entry))', assigned value is 0 fwlogwatch-1.4/whois.c:236:21: note: Calling function 'whois_from_ip', 2nd argument 'we' value is 0 fwlogwatch-1.4/whois.c:128:3: note: Null pointer dereference fwlogwatch-1.4/whois.c:129:3: warning: If memory allocation fails, then there is a possible null pointer dereference: we [nullPointerOutOfMemory] fwlogwatch-1.4/whois.c:235:15: note: Assuming allocation function fails fwlogwatch-1.4/whois.c:235:15: note: Assignment 'we=xmalloc(sizeof(struct whois_entry))', assigned value is 0 fwlogwatch-1.4/whois.c:236:21: note: Calling function 'whois_from_ip', 2nd argument 'we' value is 0 fwlogwatch-1.4/whois.c:129:3: note: Null pointer dereference fwlogwatch-1.4/whois.c:130:3: warning: If memory allocation fails, then there is a possible null pointer dereference: we [nullPointerOutOfMemory] fwlogwatch-1.4/whois.c:235:15: note: Assuming allocation function fails fwlogwatch-1.4/whois.c:235:15: note: Assignment 'we=xmalloc(sizeof(struct whois_entry))', assigned value is 0 fwlogwatch-1.4/whois.c:236:21: note: Calling function 'whois_from_ip', 2nd argument 'we' value is 0 fwlogwatch-1.4/whois.c:130:3: note: Null pointer dereference fwlogwatch-1.4/whois.c:131:3: warning: If memory allocation fails, then there is a possible null pointer dereference: we [nullPointerOutOfMemory] fwlogwatch-1.4/whois.c:235:15: note: Assuming allocation function fails fwlogwatch-1.4/whois.c:235:15: note: Assignment 'we=xmalloc(sizeof(struct whois_entry))', assigned value is 0 fwlogwatch-1.4/whois.c:236:21: note: Calling function 'whois_from_ip', 2nd argument 'we' value is 0 fwlogwatch-1.4/whois.c:131:3: note: Null pointer dereference fwlogwatch-1.4/whois.c:178:7: warning: If memory allocation fails, then there is a possible null pointer dereference: we [nullPointerOutOfMemory] fwlogwatch-1.4/whois.c:235:15: note: Assuming allocation function fails fwlogwatch-1.4/whois.c:235:15: note: Assignment 'we=xmalloc(sizeof(struct whois_entry))', assigned value is 0 fwlogwatch-1.4/whois.c:236:21: note: Calling function 'whois_from_ip', 2nd argument 'we' value is 0 fwlogwatch-1.4/whois.c:178:7: note: Null pointer dereference fwlogwatch-1.4/whois.c:237:7: warning: If memory allocation fails, then there is a possible null pointer dereference: we [nullPointerOutOfMemory] fwlogwatch-1.4/whois.c:235:15: note: Assuming allocation function fails fwlogwatch-1.4/whois.c:235:15: note: Assignment 'we=xmalloc(sizeof(struct whois_entry))', assigned value is 0 fwlogwatch-1.4/whois.c:237:7: note: Null pointer dereference fwlogwatch-1.4/whois.c:67:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fwlogwatch-1.4/whois.c:82:21: note: Assuming allocation function fails fwlogwatch-1.4/whois.c:82:21: note: Assignment 'data=xmalloc(retval+1)', assigned value is 0 fwlogwatch-1.4/whois.c:83:25: note: Calling function 'whois_read_socket', 1st argument 'data' value is 0 fwlogwatch-1.4/whois.c:63:14: note: Assuming condition is false fwlogwatch-1.4/whois.c:67:9: note: Null pointer addition fwlogwatch-1.4/whois.c:150:16: warning: Either the condition 'desce!=NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] fwlogwatch-1.4/whois.c:146:12: note: Assuming that condition 'desce!=NULL' is not redundant fwlogwatch-1.4/whois.c:145:16: note: Assignment to 'desce=strchr(descs,'\n')' fwlogwatch-1.4/whois.c:145:8: note: desce is assigned 'strchr(descs,'\n')' here. fwlogwatch-1.4/whois.c:150:16: note: Null pointer addition fwlogwatch-1.4/whois.c:160:16: warning: Either the condition 'desce!=NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] fwlogwatch-1.4/whois.c:156:12: note: Assuming that condition 'desce!=NULL' is not redundant fwlogwatch-1.4/whois.c:155:16: note: Assignment to 'desce=strchr(descs,'\n')' fwlogwatch-1.4/whois.c:155:8: note: desce is assigned 'strchr(descs,'\n')' here. fwlogwatch-1.4/whois.c:160:16: note: Null pointer addition fwlogwatch-1.4/whois.c:170:16: warning: Either the condition 'desce!=NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] fwlogwatch-1.4/whois.c:166:12: note: Assuming that condition 'desce!=NULL' is not redundant fwlogwatch-1.4/whois.c:165:16: note: Assignment to 'desce=strchr(descs,'\n')' fwlogwatch-1.4/whois.c:165:8: note: desce is assigned 'strchr(descs,'\n')' here. fwlogwatch-1.4/whois.c:170:16: note: Null pointer addition fwlogwatch-1.4/whois.c:248:19: style: Variable 'he' can be declared as pointer to const [constVariablePointer] fwlogwatch-1.4/rcfile.c:106:19: warning: If memory allocation fails, then there is a possible null pointer dereference: command [nullPointerOutOfMemory] fwlogwatch-1.4/rcfile.c:102:19: note: Assuming allocation function fails fwlogwatch-1.4/rcfile.c:102:19: note: Assignment 'command=strdup(input)', assigned value is 0 fwlogwatch-1.4/rcfile.c:106:19: note: Null pointer dereference fwlogwatch-1.4/rcfile.c:364:14: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] fwlogwatch-1.4/rcfile.c:354:16: note: Assuming allocation function fails fwlogwatch-1.4/rcfile.c:354:16: note: Assignment 'name=strdup(rcfile)', assigned value is 0 fwlogwatch-1.4/rcfile.c:364:14: note: Null pointer dereference fwlogwatch-1.4/rcfile.c:48:43: style: Parameter 'rcfile' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/rcfile.c:66:49: style: Parameter 'rcfile' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/rcfile.c:92:25: style: Parameter 'input' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/rcfile.c:288:41: style: Parameter 'rcfile' can be declared as pointer to const [constParameterPointer] fwlogwatch-1.4/rcfile.c:335:33: style: Parameter 'rcfile' can be declared as pointer to const [constParameterPointer] diff: 2.17.0 fwlogwatch-1.4/utils.c:438:3: warning: If memory allocation fails, then there is a possible null pointer dereference: excluded_this [nullPointerOutOfMemory] fwlogwatch-1.4/utils.c:437:26: note: Assuming allocation function fails fwlogwatch-1.4/utils.c:437:26: note: Assignment 'excluded_this=xmalloc(sizeof(struct parser_options))', assigned value is 0 fwlogwatch-1.4/utils.c:438:3: note: Null pointer dereference 2.17.0 fwlogwatch-1.4/utils.c:458:5: warning: If memory allocation fails, then there is a possible null pointer dereference: excluded_this [nullPointerOutOfMemory] fwlogwatch-1.4/utils.c:437:26: note: Assuming allocation function fails fwlogwatch-1.4/utils.c:437:26: note: Assignment 'excluded_this=xmalloc(sizeof(struct parser_options))', assigned value is 0 fwlogwatch-1.4/utils.c:458:5: note: Null pointer dereference 2.17.0 fwlogwatch-1.4/utils.c:460:5: warning: If memory allocation fails, then there is a possible null pointer dereference: excluded_this [nullPointerOutOfMemory] fwlogwatch-1.4/utils.c:437:26: note: Assuming allocation function fails fwlogwatch-1.4/utils.c:437:26: note: Assignment 'excluded_this=xmalloc(sizeof(struct parser_options))', assigned value is 0 fwlogwatch-1.4/utils.c:460:5: note: Null pointer dereference 2.17.0 fwlogwatch-1.4/utils.c:461:14: warning: If memory allocation fails, then there is a possible null pointer dereference: excluded_this [nullPointerOutOfMemory] fwlogwatch-1.4/utils.c:437:26: note: Assuming allocation function fails fwlogwatch-1.4/utils.c:437:26: note: Assignment 'excluded_this=xmalloc(sizeof(struct parser_options))', assigned value is 0 fwlogwatch-1.4/utils.c:461:14: note: Null pointer dereference 2.17.0 fwlogwatch-1.4/utils.c:480:3: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] fwlogwatch-1.4/utils.c:479:17: note: Assuming allocation function fails fwlogwatch-1.4/utils.c:479:17: note: Assignment 'file=xmalloc(sizeof(struct input_file))', assigned value is 0 fwlogwatch-1.4/utils.c:480:3: note: Null pointer dereference 2.17.0 fwlogwatch-1.4/utils.c:481:3: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] fwlogwatch-1.4/utils.c:479:17: note: Assuming allocation function fails fwlogwatch-1.4/utils.c:479:17: note: Assignment 'file=xmalloc(sizeof(struct input_file))', assigned value is 0 fwlogwatch-1.4/utils.c:481:3: note: Null pointer dereference 2.17.0 fwlogwatch-1.4/utils.c:483:12: warning: If memory allocation fails, then there is a possible null pointer dereference: file [nullPointerOutOfMemory] fwlogwatch-1.4/utils.c:479:17: note: Assuming allocation function fails fwlogwatch-1.4/utils.c:479:17: note: Assignment 'file=xmalloc(sizeof(struct input_file))', assigned value is 0 fwlogwatch-1.4/utils.c:483:12: note: Null pointer dereference 2.17.0 fwlogwatch-1.4/whois.c:67:9: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fwlogwatch-1.4/whois.c:82:21: note: Assuming allocation function fails fwlogwatch-1.4/whois.c:82:21: note: Assignment 'data=xmalloc(retval+1)', assigned value is 0 fwlogwatch-1.4/whois.c:83:25: note: Calling function 'whois_read_socket', 1st argument 'data' value is 0 fwlogwatch-1.4/whois.c:63:14: note: Assuming condition is false fwlogwatch-1.4/whois.c:67:9: note: Null pointer addition head fwlogwatch-1.4/whois.c:67:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fwlogwatch-1.4/whois.c:82:21: note: Assuming allocation function fails fwlogwatch-1.4/whois.c:82:21: note: Assignment 'data=xmalloc(retval+1)', assigned value is 0 fwlogwatch-1.4/whois.c:83:25: note: Calling function 'whois_read_socket', 1st argument 'data' value is 0 fwlogwatch-1.4/whois.c:63:14: note: Assuming condition is false fwlogwatch-1.4/whois.c:67:9: note: Null pointer addition DONE