2025-05-05 00:14 ftp://ftp.de.debian.org/debian/pool/main/h/httperf/httperf_0.9.0.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --library=openssl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-59-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 88ef81e (2025-05-02 08:42:38 +0200) count: 170 170 elapsed-time: 2.6 2.0 head-timing-info: old-timing-info: head results: httperf-0.9.0/src/call.c:52:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable http_version [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/call.c:71:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_EXTRA_HEADERS [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/call.c:62:20: style: Parameter 'call' can be declared as pointer to const [constParameterPointer] httperf-0.9.0/src/conn.c:48:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/conn.c:91:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_FREE [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/core.c:110:38: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] httperf-0.9.0/src/event.c:95:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/event.c:111:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBG [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/event.c:109:23: style: Variable 'end' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/gen/call_seq.c:71:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable burst_len [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/call_seq.c:86:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CONN_CONNECTED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/call_seq.c:109:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/call_seq.c:133:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CONN_CONNECTED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/call_seq.c:92:33: style: Parameter 'call' can be declared as pointer to const. However it seems that 'call_done' is a callback function, if 'call' is declared with const you might also need to cast function pointer(s). [constParameterCallback] httperf-0.9.0/src/gen/call_seq.c:135:62: note: You might need to cast the function pointer here httperf-0.9.0/src/gen/call_seq.c:92:33: note: Parameter 'call' can be declared as pointer to const httperf-0.9.0/src/gen/conn_rate.c:57:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num_conns [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/conn_rate.c:71:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num_conns [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/conn_rate.c:84:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CONN_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/conn_rate.c:90:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rate [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/misc.c:71:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/misc.c:118:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_NEW [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/misc.c:133:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable additional_header [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/rate.c:91:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable verbose [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/rate.c:124:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/sess_cookie.c:106:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_ISSUE [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/sess_cookie.c:138:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_RECV_HDR [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/sess_cookie.c:131:15: style: Variable 'start' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/gen/sess_cookie.c:131:23: style: Variable 'end' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/gen/sess_cookie.c:134:17: style: Variable 'line' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/gen/session.c:196:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_SESS_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/session.c:224:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CONN_CONNECTED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/session.c:254:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CONN_FAILED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/session.c:278:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CONN_TIMEOUT [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/session.c:294:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_RECV_STOP [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/session.c:337:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_conns [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/session.c:396:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_conns [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/session.c:415:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable max_conns [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/session.c:438:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sess [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/session.c:445:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sess [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/session.c:351:7: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] httperf-0.9.0/src/gen/session.c:357:7: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] httperf-0.9.0/src/gen/session.c:191:22: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/gen/session.c:382:25: style: Parameter 'sess' can be declared as pointer to const [constParameterPointer] httperf-0.9.0/src/gen/uri_fixed.c:51:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_NEW [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/uri_fixed.c:60:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uri [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/uri_wlog.c:93:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_NEW [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/uri_wlog.c:132:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable file [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/uri_wlog.c:140:27: error: Overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmetic] httperf-0.9.0/src/gen/uri_wlog.c:146:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] httperf-0.9.0/src/gen/uri_wlog.c:139:25: note: Assuming allocation function fails httperf-0.9.0/src/gen/uri_wlog.c:139:11: note: Assignment 'fbase=(char*)mmap(0,st.st_size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 httperf-0.9.0/src/gen/uri_wlog.c:146:16: note: Null pointer addition httperf-0.9.0/src/gen/uri_wset.c:62:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_NEW [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/uri_wset.c:108:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsess.c:83:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable burst_len [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsess.c:126:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsess.c:163:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num_sessions [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsess.c:183:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_SESS_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsess.c:206:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rate [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsess.c:218:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_SESS_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesslog.c:174:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_SESS_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesslog.c:222:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable prog_name [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesslog.c:267:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num_sessions [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesslog.c:324:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesslog.c:353:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable file [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesslog.c:371:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable file [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesslog.c:399:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable file [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesslog.c:623:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rate [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesslog.c:639:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_SESS_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesslog.c:283:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] httperf-0.9.0/src/gen/wsesslog.c:411:11: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] httperf-0.9.0/src/gen/wsesslog.c:445:14: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] httperf-0.9.0/src/gen/wsesslog.c:447:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] httperf-0.9.0/src/gen/wsesslog.c:464:13: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] httperf-0.9.0/src/gen/wsesslog.c:355:11: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: retptr [nullPointerOutOfMemory] httperf-0.9.0/src/gen/wsesslog.c:350:27: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesslog.c:350:12: note: Assignment 'retptr=(struct REQ*)malloc(sizeof(*retptr))', assigned value is 0 httperf-0.9.0/src/gen/wsesslog.c:355:11: note: Null pointer dereference httperf-0.9.0/src/gen/wsesslog.c:356:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: retptr [nullPointerOutOfMemory] httperf-0.9.0/src/gen/wsesslog.c:350:27: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesslog.c:350:12: note: Assignment 'retptr=(struct REQ*)malloc(sizeof(*retptr))', assigned value is 0 httperf-0.9.0/src/gen/wsesslog.c:356:3: note: Null pointer dereference httperf-0.9.0/src/gen/wsesslog.c:357:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: retptr [nullPointerOutOfMemory] httperf-0.9.0/src/gen/wsesslog.c:350:27: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesslog.c:350:12: note: Assignment 'retptr=(struct REQ*)malloc(sizeof(*retptr))', assigned value is 0 httperf-0.9.0/src/gen/wsesslog.c:357:3: note: Null pointer dereference httperf-0.9.0/src/gen/wsesslog.c:357:29: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: uristr [nullPointerOutOfMemory] httperf-0.9.0/src/gen/wsesslog.c:419:36: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesslog.c:419:36: note: Calling function 'new_request', 1st argument 'strdup(uri)' value is 0 httperf-0.9.0/src/gen/wsesslog.c:357:29: note: Null pointer dereference httperf-0.9.0/src/gen/wsesslog.c:358:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: retptr [nullPointerOutOfMemory] httperf-0.9.0/src/gen/wsesslog.c:350:27: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesslog.c:350:12: note: Assignment 'retptr=(struct REQ*)malloc(sizeof(*retptr))', assigned value is 0 httperf-0.9.0/src/gen/wsesslog.c:358:3: note: Null pointer dereference httperf-0.9.0/src/gen/wsesslog.c:372:11: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: retptr [nullPointerOutOfMemory] httperf-0.9.0/src/gen/wsesslog.c:368:29: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesslog.c:368:12: note: Assignment 'retptr=(struct BURST*)malloc(sizeof(*retptr))', assigned value is 0 httperf-0.9.0/src/gen/wsesslog.c:372:11: note: Null pointer dereference httperf-0.9.0/src/gen/wsesslog.c:373:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: retptr [nullPointerOutOfMemory] httperf-0.9.0/src/gen/wsesslog.c:368:29: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesslog.c:368:12: note: Assignment 'retptr=(struct BURST*)malloc(sizeof(*retptr))', assigned value is 0 httperf-0.9.0/src/gen/wsesslog.c:373:3: note: Null pointer dereference httperf-0.9.0/src/gen/wsesslog.c:374:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: retptr [nullPointerOutOfMemory] httperf-0.9.0/src/gen/wsesslog.c:368:29: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesslog.c:368:12: note: Assignment 'retptr=(struct BURST*)malloc(sizeof(*retptr))', assigned value is 0 httperf-0.9.0/src/gen/wsesslog.c:374:3: note: Null pointer dereference httperf-0.9.0/src/gen/wsesslog.c:406:48: warning:inconclusive: If resource allocation fails, then there is a possible null pointer dereference: fp [nullPointerOutOfResources] httperf-0.9.0/src/gen/wsesslog.c:399:14: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesslog.c:399:14: note: Assignment 'fp=fopen(param.wsesslog.file,"r")', assigned value is 0 httperf-0.9.0/src/gen/wsesslog.c:406:48: note: Null pointer dereference httperf-0.9.0/src/gen/wsesslog.c:395:9: style: Variable 'from' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/gen/wsesspage.c:150:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable verbose [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesspage.c:172:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesspage.c:240:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_RECV_HDR [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesspage.c:277:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_RECV_DATA [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesspage.c:433:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesspage.c:478:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable num_sessions [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesspage.c:497:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_SESS_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesspage.c:517:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable uri [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesspage.c:546:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_SESS_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/gen/wsesspage.c:201:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: el [nullPointerOutOfMemory] httperf-0.9.0/src/gen/wsesspage.c:197:15: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesspage.c:197:15: note: Assignment 'el=malloc(sizeof(*el)+len)', assigned value is 0 httperf-0.9.0/src/gen/wsesspage.c:201:3: note: Null pointer dereference httperf-0.9.0/src/gen/wsesspage.c:202:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: el [nullPointerOutOfMemory] httperf-0.9.0/src/gen/wsesspage.c:197:15: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesspage.c:197:15: note: Assignment 'el=malloc(sizeof(*el)+len)', assigned value is 0 httperf-0.9.0/src/gen/wsesspage.c:202:9: note: Null pointer dereference httperf-0.9.0/src/gen/wsesspage.c:210:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: el [nullPointerOutOfMemory] httperf-0.9.0/src/gen/wsesspage.c:197:15: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesspage.c:197:15: note: Assignment 'el=malloc(sizeof(*el)+len)', assigned value is 0 httperf-0.9.0/src/gen/wsesspage.c:210:3: note: Null pointer dereference httperf-0.9.0/src/gen/wsesspage.c:524:3: warning: If memory allocation fails, then there is a possible null pointer dereference: prefix [nullPointerOutOfMemory] httperf-0.9.0/src/gen/wsesspage.c:523:19: note: Assuming allocation function fails httperf-0.9.0/src/gen/wsesspage.c:523:19: note: Assignment 'prefix=strdup(param.uri)', assigned value is 0 httperf-0.9.0/src/gen/wsesspage.c:524:3: note: Null pointer dereference httperf-0.9.0/src/gen/wsesspage.c:235:17: style: Variable 'line' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/gen/wsesspage.c:238:9: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/gen/wsesspage.c:272:17: style: Variable 'line' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/gen/wsesspage.c:475:22: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/gen/wsesspage.c:368:9: error: Overlapping read/write in memcpy() is undefined behavior [overlappingWriteFunction] httperf-0.9.0/src/gen/wsesspage.c:390:9: error: Overlapping read/write in memcpy() is undefined behavior [overlappingWriteFunction] httperf-0.9.0/src/gen/wsesspage.c:485:8: style: Variable 'priv' is assigned a value that is never used. [unreadVariable] httperf-0.9.0/src/http.c:76:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/http.c:133:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/http.c:217:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_REPLY_CHUNKED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/http.c:280:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_REPLY_DONE [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/http.c:310:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_RECV_DATA [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/http.c:326:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_CLOSING [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/http.c:368:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_RECV_RAW_DATA [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/http.c:132:27: style: Condition 'c->reply.status==599' is always true [knownConditionTrueFalse] httperf-0.9.0/src/http.c:131:25: note: Assignment 'c->reply.status=599', assigned value is 599 httperf-0.9.0/src/http.c:132:27: note: Condition 'c->reply.status==599' is always true httperf-0.9.0/src/http.c:62:15: style: Checking if unsigned expression 'buf_len' is less than zero. [unsignedLessThanZero] httperf-0.9.0/src/http.c:54:17: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] httperf-0.9.0/src/http.c:109:9: style: Variable 'buf' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/http.c:109:15: style: Variable 'buf_start' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/http.c:200:15: style: Variable 'buf_start' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/http.c:267:9: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/http.c:267:15: style: Variable 'buf_start' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/http.c:297:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/http.c:274:11: style: Variable 'hdr' is assigned a value that is never used. [unreadVariable] httperf-0.9.0/src/httperf.c:765:26: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] httperf-0.9.0/src/idleconn.c:93:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/idleconn.c:131:8: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] httperf-0.9.0/src/idleconn.c:171:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] httperf-0.9.0/src/idleconn.c:171:13: error: Invalid usleep() argument nr 1. The value is 1000000 but the valid values are '0:999999'. [invalidFunctionArg] httperf-0.9.0/src/idleconn.c:78:19: style: Variable 'he' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/lib/getopt.c:503:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/lib/getopt.c:674:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/object.c:76:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/object.c:134:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/sess.c:62:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_SESS_FAILED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/sess.c:39:18: style: Parameter 'sess' can be declared as pointer to const [constParameterPointer] httperf-0.9.0/src/sess.c:44:20: style: Parameter 'sess' can be declared as pointer to const [constParameterPointer] httperf-0.9.0/src/stat/basic.c:110:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_PERF_SAMPLE [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/basic.c:132:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CONN_TIMEOUT [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/basic.c:143:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CONN_FAILED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/basic.c:185:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CONN_CONNECTING [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/basic.c:197:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CONN_CONNECTED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/basic.c:209:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CONN_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/basic.c:236:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_SEND_START [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/basic.c:246:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_SEND_STOP [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/basic.c:258:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_RECV_START [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/basic.c:273:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_RECV_STOP [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/basic.c:295:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/basic.c:329:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_time_stop [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/basic.c:226:33: error: Array 'basic.conn_lifetime_hist[100000]' accessed at index 100000, which is out of bounds. [arrayIndexOutOfBounds] httperf-0.9.0/src/stat/basic.c:225:8: note: Assignment 'bin=(u_int)(100.0/1e-3)', assigned value is 100000 httperf-0.9.0/src/stat/basic.c:226:33: note: Array index out of bounds httperf-0.9.0/src/stat/basic.c:344:3: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] httperf-0.9.0/src/stat/basic.c:130:38: style: Parameter 'obj' can be declared as pointer to const. However it seems that 'conn_timeout' is a callback function, if 'obj' is declared with const you might also need to cast function pointer(s). [constParameterCallback] httperf-0.9.0/src/stat/basic.c:301:44: note: You might need to cast the function pointer here httperf-0.9.0/src/stat/basic.c:130:38: note: Parameter 'obj' can be declared as pointer to const httperf-0.9.0/src/stat/basic.c:173:38: style: Parameter 'obj' can be declared as pointer to const. However it seems that 'conn_created' is a callback function, if 'obj' is declared with const you might also need to cast function pointer(s). [constParameterCallback] httperf-0.9.0/src/stat/basic.c:302:40: note: You might need to cast the function pointer here httperf-0.9.0/src/stat/basic.c:173:38: note: Parameter 'obj' can be declared as pointer to const httperf-0.9.0/src/stat/basic.c:92:11: style: struct member 'Anonymous0::num_received' is never used. [unusedStructMember] httperf-0.9.0/src/stat/print_reply.c:111:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/print_reply.c:128:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IE_CONTENT [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/print_reply.c:192:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/print_reply.c:205:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_SEND_RAW_DATA [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/print_reply.c:217:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_RECV_RAW_DATA [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/print_reply.c:230:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_RECV_DATA [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/print_reply.c:242:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_RECV_STOP [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/print_reply.c:260:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable print_request [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/print_reply.c:126:9: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/stat/print_reply.c:214:17: style: Variable 'iov' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/stat/print_reply.c:227:17: style: Variable 'iov' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/stat/sess_stat.c:93:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_PERF_SAMPLE [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/sess_stat.c:116:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_SESS_NEW [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/sess_stat.c:130:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_SESS_DESTROYED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/sess_stat.c:177:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CONN_CONNECTED [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/sess_stat.c:191:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EV_CALL_RECV_STOP [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/sess_stat.c:211:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBL_MAX [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/sess_stat.c:234:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable test_time_stop [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/stat/sess_stat.c:126:22: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] httperf-0.9.0/src/timer.c:86:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIMER_INTERVAL [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/timer.c:115:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIMER_INTERVAL [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/timer.c:140:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] httperf-0.9.0/src/timer.c:193:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBG [valueFlowBailoutIncompleteVar] diff: 2.17.0 httperf-0.9.0/src/gen/uri_wlog.c:146:16: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] httperf-0.9.0/src/gen/uri_wlog.c:139:25: note: Assuming allocation function fails httperf-0.9.0/src/gen/uri_wlog.c:139:11: note: Assignment 'fbase=(char*)mmap(0,st.st_size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 httperf-0.9.0/src/gen/uri_wlog.c:146:16: note: Null pointer addition head httperf-0.9.0/src/gen/uri_wlog.c:146:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] httperf-0.9.0/src/gen/uri_wlog.c:139:25: note: Assuming allocation function fails httperf-0.9.0/src/gen/uri_wlog.c:139:11: note: Assignment 'fbase=(char*)mmap(0,st.st_size,PROT_READ,MAP_PRIVATE,fd,0)', assigned value is 0 httperf-0.9.0/src/gen/uri_wlog.c:146:16: note: Null pointer addition DONE