2026-05-01 22:10 ftp://ftp.de.debian.org/debian/pool/main/f/flowgrind/flowgrind_0.8.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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 -j6 platform: Linux-7.0.3+deb14-amd64-x86_64-with-glibc2.42 python: 3.13.12 client-version: 1.4.0 compiler: g++ (Debian 15.2.0-17) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a734 (2026-05-01 11:10:43 +0200) count: 223 216 elapsed-time: 0.5 0.4 head-timing-info: old-timing-info: head results: flowgrind-flowgrind-0.8.2/src/fg_affinity.c:61:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_NPROCESSORS_CONF [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_barrier.c:41:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_barrier.c:67:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_barrier.c:83:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_error.c:54:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_log.c:49:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NDELAY [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_log.c:88:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/destination.c:87:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AI_PASSIVE [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/destination.c:163:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/destination.c:261:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_math.c:65:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FE_TONEAREST [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_math.c:114:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_math.c:119:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAND_MAX [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_list.c:49:66: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] flowgrind-flowgrind-0.8.2/src/fg_list.c:57:65: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] flowgrind-flowgrind-0.8.2/src/fg_list.c:211:48: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] flowgrind-flowgrind-0.8.2/src/destination.c:86:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] flowgrind-flowgrind-0.8.2/src/destination.c:127:21: style: Pointer expression 'cc_alg' converted to bool is always true. [knownPointerToBool] flowgrind-flowgrind-0.8.2/src/destination.c:78:58: style: Parameter 'bind_addr' can be declared as pointer to const [constParameterPointer] flowgrind-flowgrind-0.8.2/src/fg_progname.c:45:30: warning: Either the condition 'argv0==NULL' is redundant or there is possible null pointer dereference: argv0. [nullPointerRedundantCheck] flowgrind-flowgrind-0.8.2/src/fg_progname.c:41:12: note: Assuming that condition 'argv0==NULL' is not redundant flowgrind-flowgrind-0.8.2/src/fg_progname.c:45:30: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_pcap.c:88:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_pcap.c:173:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_pcap.c:320:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_rpc_client.c:62:47: style: Redundant condition: The condition '*sepptr != '\0'' is redundant since '*sepptr == ':'' is sufficient. [redundantCondition] flowgrind-flowgrind-0.8.2/src/fg_rpc_client.c:51:28: warning: Char literal compared with pointer 'sepptr'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] flowgrind-flowgrind-0.8.2/src/fg_pcap.c:282:7: style: Local variable 'rc' shadows outer variable [shadowVariable] flowgrind-flowgrind-0.8.2/src/fg_pcap.c:171:6: note: Shadowed declaration flowgrind-flowgrind-0.8.2/src/fg_pcap.c:282:7: note: Shadow variable flowgrind-flowgrind-0.8.2/src/fg_pcap.c:182:21: style: Variable 'a' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/fg_string.c:123:3: error: Memory leak: new_strp [memleak] flowgrind-flowgrind-0.8.2/src/fg_string.c:98:28: style:inconclusive: Function 'asprintf_append' argument 1 names different: declaration 'resultp' definition 'strp'. [funcArgNamesDifferent] flowgrind-flowgrind-0.8.2/src/fg_string.h:75:28: note: Function 'asprintf_append' argument 1 names different: declaration 'resultp' definition 'strp'. flowgrind-flowgrind-0.8.2/src/fg_string.c:98:28: note: Function 'asprintf_append' argument 1 names different: declaration 'resultp' definition 'strp'. flowgrind-flowgrind-0.8.2/src/fg_string.c:109:29: style:inconclusive: Function 'vasprintf_append' argument 1 names different: declaration 'resultp' definition 'strp'. [funcArgNamesDifferent] flowgrind-flowgrind-0.8.2/src/fg_string.h:90:29: note: Function 'vasprintf_append' argument 1 names different: declaration 'resultp' definition 'strp'. flowgrind-flowgrind-0.8.2/src/fg_string.c:109:29: note: Function 'vasprintf_append' argument 1 names different: declaration 'resultp' definition 'strp'. flowgrind-flowgrind-0.8.2/src/fg_socket.c:90:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOL_SOCKET [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:127:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SO_SNDBUF [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:134:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IP_TOS [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:163:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPOPT_NOP [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:179:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:204:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_IP [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:232:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIOCGIFCONF [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:285:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:296:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:355:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IPPROTO_TCP [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:376:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:397:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:445:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXSERV [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind_stop.c:69:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind_stop.c:97:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind_stop.c:170:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_socket.c:162:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] flowgrind-flowgrind-0.8.2/src/fg_socket.c:78:34: style:inconclusive: Function 'set_window_size_directed' argument 1 names different: declaration '' definition 'fd'. [funcArgNamesDifferentUnnamed] flowgrind-flowgrind-0.8.2/src/fg_socket.c:78:42: style:inconclusive: Function 'set_window_size_directed' argument 2 names different: declaration '' definition 'window'. [funcArgNamesDifferentUnnamed] flowgrind-flowgrind-0.8.2/src/fg_socket.c:78:54: style:inconclusive: Function 'set_window_size_directed' argument 3 names different: declaration '' definition 'direction'. [funcArgNamesDifferentUnnamed] flowgrind-flowgrind-0.8.2/src/fg_socket.c:117:25: style:inconclusive: Function 'set_window_size' argument 1 names different: declaration '' definition 'fd'. [funcArgNamesDifferentUnnamed] flowgrind-flowgrind-0.8.2/src/fg_socket.c:117:33: style:inconclusive: Function 'set_window_size' argument 2 names different: declaration '' definition 'window'. [funcArgNamesDifferentUnnamed] flowgrind-flowgrind-0.8.2/src/daemon.c:224:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHUT_WR [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:240:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHUT_RD [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:632:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_MAX [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:813:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:923:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_MAX [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:975:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:1082:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:1135:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:1215:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:1245:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAN [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:1278:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:1338:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:1387:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SOL_SOCKET [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:1431:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:166:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XMLRPC_TYPE_ERROR [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:373:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XMLRPC_TYPE_ERROR [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:489:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XMLRPC_INTERNAL_ERROR [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:615:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:650:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XMLRPC_INTERNAL_ERROR [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:682:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:719:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XMLRPC_INTERNAL_ERROR [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:766:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XMLRPC_INTERNAL_ERROR [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:792:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AI_PASSIVE [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:871:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:881:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable socket_handle [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrindd.c:122:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrindd.c:160:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrindd.c:191:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrindd.c:208:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrindd.c:314:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrindd.c:375:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/source.c:86:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/source.c:157:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/source.c:184:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrindd.c:293:8: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] flowgrind-flowgrind-0.8.2/src/flowgrindd.c:289:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] flowgrind-flowgrind-0.8.2/src/flowgrindd.c:289:26: warning: If memory allocation fails, then there is a possible null pointer dereference: rpc_bind_addr [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/flowgrindd.c:288:26: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/flowgrindd.c:288:26: note: Assignment 'rpc_bind_addr=strdup(arg)', assigned value is 0 flowgrind-flowgrind-0.8.2/src/flowgrindd.c:289:26: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/source.c:85:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] flowgrind-flowgrind-0.8.2/src/trafgen.c:107:42: style:inconclusive: Function 'next_request_block_size' argument 1 names different: declaration '' definition 'flow'. [funcArgNamesDifferentUnnamed] flowgrind-flowgrind-0.8.2/src/trafgen.c:143:43: style:inconclusive: Function 'next_response_block_size' argument 1 names different: declaration '' definition 'flow'. [funcArgNamesDifferentUnnamed] flowgrind-flowgrind-0.8.2/src/trafgen.c:173:42: style:inconclusive: Function 'next_interpacket_gap' argument 1 names different: declaration '' definition 'flow'. [funcArgNamesDifferentUnnamed] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:791:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:230:2: warning: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:229:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:229:18: note: Assignment 'request=malloc(sizeof(struct request_add_flow_source))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:230:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:231:2: warning: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:229:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:229:18: note: Assignment 'request=malloc(sizeof(struct request_add_flow_source))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:231:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:239:14: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:229:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:229:18: note: Assignment 'request=malloc(sizeof(struct request_add_flow_source))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:239:14: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:240:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:229:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:229:18: note: Assignment 'request=malloc(sizeof(struct request_add_flow_source))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:240:13: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:241:28: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:229:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:229:18: note: Assignment 'request=malloc(sizeof(struct request_add_flow_source))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:241:28: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:242:28: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:229:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:229:18: note: Assignment 'request=malloc(sizeof(struct request_add_flow_source))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:242:28: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:432:2: warning: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:431:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:431:18: note: Assignment 'request=malloc(sizeof(struct request_add_flow_destination))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:432:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:440:14: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:431:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:431:18: note: Assignment 'request=malloc(sizeof(struct request_add_flow_destination))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:440:14: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:441:23: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:431:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:431:18: note: Assignment 'request=malloc(sizeof(struct request_add_flow_destination))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:441:23: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:442:35: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:431:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:431:18: note: Assignment 'request=malloc(sizeof(struct request_add_flow_destination))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:442:35: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:443:35: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:431:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:431:18: note: Assignment 'request=malloc(sizeof(struct request_add_flow_destination))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:443:35: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:485:2: warning: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:484:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:484:18: note: Assignment 'request=malloc(sizeof(struct request_start_flows))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:485:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:646:2: warning: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:645:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:645:18: note: Assignment 'request=malloc(sizeof(struct request_stop_flow))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:646:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:723:14: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:715:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:715:18: note: Assignment 'request=malloc(sizeof(struct request_get_status))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:723:14: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:724:16: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:715:18: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:715:18: note: Assignment 'request=malloc(sizeof(struct request_get_status))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:724:16: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:769:56: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: request [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:762:43: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:762:43: note: Assignment 'request=malloc(sizeof(struct request_get_uuid))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:769:56: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:726:1: style: Label 'cleanup' is not used. [unusedLabel] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:771:1: style: Label 'cleanup' is not used. [unusedLabel] flowgrind-flowgrind-0.8.2/src/fg_argparser.c:500:3: portability: Returning an integer in a function with pointer return type is not portable. [CastIntegerToAddressAtReturn] flowgrind-flowgrind-0.8.2/src/fg_rpc_server.c:784:34: style: Parameter 'bind_addr' can be declared as pointer to const [constParameterPointer] flowgrind-flowgrind-0.8.2/src/fg_argparser.c:309:12: warning: Either the condition '!options' is redundant or there is possible null pointer dereference: options. [nullPointerRedundantCheck] flowgrind-flowgrind-0.8.2/src/fg_argparser.c:391:27: note: Assuming that condition '!options' is not redundant flowgrind-flowgrind-0.8.2/src/fg_argparser.c:382:23: note: Calling function 'copy_options', 2nd argument 'options' value is 0 flowgrind-flowgrind-0.8.2/src/fg_argparser.c:345:36: note: Calling function 'get_num_options', 1st argument 'options' value is 0 flowgrind-flowgrind-0.8.2/src/fg_argparser.c:309:12: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_argparser.c:325:16: warning: Either the condition '!options' is redundant or there is possible null pointer dereference: options. [nullPointerRedundantCheck] flowgrind-flowgrind-0.8.2/src/fg_argparser.c:391:27: note: Assuming that condition '!options' is not redundant flowgrind-flowgrind-0.8.2/src/fg_argparser.c:385:34: note: Calling function 'get_mutex_count', 1st argument 'options' value is 0 flowgrind-flowgrind-0.8.2/src/fg_argparser.c:325:16: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/fg_argparser.c:326:13: style: Variable 'mutex' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/fg_argparser.c:540:12: style: Variable 'mutex' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/fg_argparser.c:563:12: style: Variable 'mutex' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:229:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind.c:339:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind.c:385:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind.c:524:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_sec [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind.c:599:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind.c:618:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable transport [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind.c:727:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ALERT [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind.c:1505:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tv_sec [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind.c:1551:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XMLRPC_CLIENT_NO_FLAGS [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind.c:1820:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITY [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2203:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_ALERT [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2413:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2729:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] flowgrind-flowgrind-0.8.2/src/daemon.c:1502:2: error: Address of local auto-variable assigned to a function parameter. [autoVariables] flowgrind-flowgrind-0.8.2/src/daemon.c:299:17: style: Condition 'get_tcp_info(flow,&flow->statistics[FINAL].tcp_info)' is always false [knownConditionTrueFalse] flowgrind-flowgrind-0.8.2/src/daemon.c:299:17: note: Calling function 'get_tcp_info' returns 0 flowgrind-flowgrind-0.8.2/src/daemon.c:299:17: note: Condition 'get_tcp_info(flow,&flow->statistics[FINAL].tcp_info)' is always false flowgrind-flowgrind-0.8.2/src/daemon.c:396:17: style: Condition 'get_tcp_info(flow,&flow->statistics[FINAL].tcp_info)' is always false [knownConditionTrueFalse] flowgrind-flowgrind-0.8.2/src/daemon.c:396:17: note: Calling function 'get_tcp_info' returns 0 flowgrind-flowgrind-0.8.2/src/daemon.c:396:17: note: Condition 'get_tcp_info(flow,&flow->statistics[FINAL].tcp_info)' is always false flowgrind-flowgrind-0.8.2/src/daemon.c:422:16: style: Condition 'get_tcp_info(flow,&flow->statistics[FINAL].tcp_info)' is always false [knownConditionTrueFalse] flowgrind-flowgrind-0.8.2/src/daemon.c:422:16: note: Calling function 'get_tcp_info' returns 0 flowgrind-flowgrind-0.8.2/src/daemon.c:422:16: note: Condition 'get_tcp_info(flow,&flow->statistics[FINAL].tcp_info)' is always false flowgrind-flowgrind-0.8.2/src/daemon.c:716:17: style: Condition 'get_tcp_info(flow,&flow->statistics[INTERVAL].tcp_info)' is always false [knownConditionTrueFalse] flowgrind-flowgrind-0.8.2/src/daemon.c:716:17: note: Calling function 'get_tcp_info' returns 0 flowgrind-flowgrind-0.8.2/src/daemon.c:716:17: note: Condition 'get_tcp_info(flow,&flow->statistics[INTERVAL].tcp_info)' is always false flowgrind-flowgrind-0.8.2/src/daemon.c:788:17: style: Condition 'get_tcp_info(flow,&flow->statistics[FINAL].tcp_info)' is always false [knownConditionTrueFalse] flowgrind-flowgrind-0.8.2/src/daemon.c:788:17: note: Calling function 'get_tcp_info' returns 0 flowgrind-flowgrind-0.8.2/src/daemon.c:788:17: note: Condition 'get_tcp_info(flow,&flow->statistics[FINAL].tcp_info)' is always false flowgrind-flowgrind-0.8.2/src/daemon.c:529:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:529:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:530:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:530:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:531:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:531:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:534:3: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:534:3: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:536:3: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:536:3: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:539:27: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:539:27: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:548:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:548:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:549:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:549:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:550:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:550:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:552:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:552:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:554:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:554:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:556:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:556:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:559:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:559:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:560:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:560:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:561:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:561:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:562:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:562:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:563:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:563:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:564:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:564:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:565:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:565:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:566:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:566:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:567:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:567:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:571:2: warning: If memory allocation fails, then there is a possible null pointer dereference: report [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/daemon.c:527:25: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/daemon.c:527:3: note: Assignment 'report=(struct report*)malloc(sizeof(struct report))', assigned value is 0 flowgrind-flowgrind-0.8.2/src/daemon.c:543:38: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/daemon.c:571:2: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/daemon.c:455:7: style: Local variable 'rc' shadows outer variable [shadowVariable] flowgrind-flowgrind-0.8.2/src/daemon.c:448:6: note: Shadowed declaration flowgrind-flowgrind-0.8.2/src/daemon.c:455:7: note: Shadow variable flowgrind-flowgrind-0.8.2/src/daemon.c:598:57: style: Pointer expression 'finished' converted to bool is always true. [knownPointerToBool] flowgrind-flowgrind-0.8.2/src/daemon.c:615:58: style: Pointer expression 'finished' converted to bool is always true. [knownPointerToBool] flowgrind-flowgrind-0.8.2/src/daemon.c:145:50: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] flowgrind-flowgrind-0.8.2/src/daemon.c:160:57: style: Parameter 'now' can be declared as pointer to const [constParameterPointer] flowgrind-flowgrind-0.8.2/src/daemon.c:729:36: style: Parameter 'rfds' can be declared as pointer to const [constParameterPointer] flowgrind-flowgrind-0.8.2/src/daemon.c:729:50: style: Parameter 'wfds' can be declared as pointer to const [constParameterPointer] flowgrind-flowgrind-0.8.2/src/daemon.c:729:64: style: Parameter 'efds' can be declared as pointer to const [constParameterPointer] flowgrind-flowgrind-0.8.2/src/daemon.c:914:2: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:999:3: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:1012:4: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:1101:2: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:1181:5: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:1186:5: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:1208:19: style: Variable 'data' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:1223:3: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:1257:3: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:1271:19: style: Variable 'data' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:1285:3: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:1359:4: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:1369:5: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/daemon.c:201:9: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] flowgrind-flowgrind-0.8.2/src/daemon.c:235:9: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] flowgrind-flowgrind-0.8.2/src/daemon.c:939:9: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] flowgrind-flowgrind-0.8.2/src/daemon.c:940:26: style: Variable 'response_block_size' is assigned a value that is never used. [unreadVariable] flowgrind-flowgrind-0.8.2/src/daemon.c:941:25: style: Variable 'interpacket_gap' is assigned a value that is never used. [unreadVariable] flowgrind-flowgrind-0.8.2/src/daemon.c:1116:13: style: Variable 'optint' is assigned a value that is never used. [unreadVariable] flowgrind-flowgrind-0.8.2/src/flowgrind.c:952:15: error: Array 'involved_os[1]' accessed at index 1, which is out of bounds. [arrayIndexOutOfBounds] flowgrind-flowgrind-0.8.2/src/flowgrind.c:954:15: error: Array 'involved_os[1]' accessed at index 2, which is out of bounds. [arrayIndexOutOfBounds] flowgrind-flowgrind-0.8.2/src/flowgrind.c:965:18: error: Array 'involved_os[1]' accessed at index 1, which is out of bounds. [arrayIndexOutOfBounds] flowgrind-flowgrind-0.8.2/src/flowgrind.c:1275:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2671:21: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2672:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2844:21: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2845:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2965:23: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2966:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] flowgrind-flowgrind-0.8.2/src/flowgrind.c:233:2: warning: %s in format string (no. 2) requires 'char *' but the argument type is 'signed int'. [invalidPrintfArgType_s] flowgrind-flowgrind-0.8.2/src/flowgrind.c:1748:6: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2498:7: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2507:7: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2568:7: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2589:7: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2595:7: warning: %u in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2762:7: warning: %hd in format string (no. 1) requires 'short *' but the argument type is 'unsigned short *'. [invalidScanfArgType_int] flowgrind-flowgrind-0.8.2/src/flowgrind.c:1505:6: warning: Possible null pointer dereference: f [nullPointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:1491:20: note: Assignment 'f=NULL', assigned value is 0 flowgrind-flowgrind-0.8.2/src/flowgrind.c:1495:18: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/flowgrind.c:1505:6: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/flowgrind.c:1505:26: warning: Possible null pointer dereference: i [nullPointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:1489:11: note: Assignment 'i=NULL', assigned value is 0 flowgrind-flowgrind-0.8.2/src/flowgrind.c:1495:18: note: Assuming condition is false flowgrind-flowgrind-0.8.2/src/flowgrind.c:1505:26: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/flowgrind.c:2422:18: warning: If memory allocation fails, then there is a possible null pointer dereference: arg [nullPointerOutOfMemory] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2418:20: note: Assuming allocation function fails flowgrind-flowgrind-0.8.2/src/flowgrind.c:2418:20: note: Assignment 'arg=strdup(hostarg)', assigned value is 0 flowgrind-flowgrind-0.8.2/src/flowgrind.c:2422:18: note: Null pointer dereference flowgrind-flowgrind-0.8.2/src/flowgrind.c:1521:25: style: Unsigned expression 'active_flows' can't be negative so it is unnecessary to test it. [unsignedPositive] flowgrind-flowgrind-0.8.2/src/flowgrind.c:1297:42: style:inconclusive: Function 'fetch_reports' argument 1 names different: declaration '' definition 'rpc_client'. [funcArgNamesDifferentUnnamed] flowgrind-flowgrind-0.8.2/src/flowgrind.c:1339:18: style: Local variable 'rv' shadows outer variable [shadowVariable] flowgrind-flowgrind-0.8.2/src/flowgrind.c:1307:17: note: Shadowed declaration flowgrind-flowgrind-0.8.2/src/flowgrind.c:1339:18: note: Shadow variable flowgrind-flowgrind-0.8.2/src/flowgrind.c:2848:9: style: Local variable 'arg' shadows outer argument [shadowArgument] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2838:63: note: Shadowed declaration flowgrind-flowgrind-0.8.2/src/flowgrind.c:2848:9: note: Shadow variable flowgrind-flowgrind-0.8.2/src/flowgrind.c:784:3: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:947:18: style: Variable 'daemon' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:970:17: style: Variable 'daemon_firstnode' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2332:2: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2574:4: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2671:13: style: Variable 'token' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2848:9: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2965:15: style: Variable 'token' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:3045:3: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:3091:3: style: Variable 'i' can be declared as pointer to const [constVariablePointer] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2413:25: style: Variable 'source_in6.sin6_family' is assigned a value that is never used. [unreadVariable] diff: head flowgrind-flowgrind-0.8.2/src/fg_socket.c:117:25: style:inconclusive: Function 'set_window_size' argument 1 names different: declaration '' definition 'fd'. [funcArgNamesDifferentUnnamed] head flowgrind-flowgrind-0.8.2/src/fg_socket.c:117:33: style:inconclusive: Function 'set_window_size' argument 2 names different: declaration '' definition 'window'. [funcArgNamesDifferentUnnamed] head flowgrind-flowgrind-0.8.2/src/fg_socket.c:78:34: style:inconclusive: Function 'set_window_size_directed' argument 1 names different: declaration '' definition 'fd'. [funcArgNamesDifferentUnnamed] head flowgrind-flowgrind-0.8.2/src/fg_socket.c:78:42: style:inconclusive: Function 'set_window_size_directed' argument 2 names different: declaration '' definition 'window'. [funcArgNamesDifferentUnnamed] head flowgrind-flowgrind-0.8.2/src/fg_socket.c:78:54: style:inconclusive: Function 'set_window_size_directed' argument 3 names different: declaration '' definition 'direction'. [funcArgNamesDifferentUnnamed] head flowgrind-flowgrind-0.8.2/src/flowgrind.c:1297:42: style:inconclusive: Function 'fetch_reports' argument 1 names different: declaration '' definition 'rpc_client'. [funcArgNamesDifferentUnnamed] 2.20.0 flowgrind-flowgrind-0.8.2/src/flowgrind.c:1521:28: style: Comparing expression of type 'unsigned short' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] 2.20.0 flowgrind-flowgrind-0.8.2/src/flowgrind.c:2136:12: style: The if condition is the same as the previous if condition [duplicateCondition] flowgrind-flowgrind-0.8.2/src/flowgrind.c:2127:12: note: First condition flowgrind-flowgrind-0.8.2/src/flowgrind.c:2136:12: note: Second condition head flowgrind-flowgrind-0.8.2/src/trafgen.c:107:42: style:inconclusive: Function 'next_request_block_size' argument 1 names different: declaration '' definition 'flow'. [funcArgNamesDifferentUnnamed] head flowgrind-flowgrind-0.8.2/src/trafgen.c:143:43: style:inconclusive: Function 'next_response_block_size' argument 1 names different: declaration '' definition 'flow'. [funcArgNamesDifferentUnnamed] head flowgrind-flowgrind-0.8.2/src/trafgen.c:173:42: style:inconclusive: Function 'next_interpacket_gap' argument 1 names different: declaration '' definition 'flow'. [funcArgNamesDifferentUnnamed] DONE