2024-04-16 17:42 ftp://ftp.de.debian.org/debian/pool/main/g/gatling/gatling_0.13.orig.tar.bz2 cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --library=zlib --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 -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 8cd680b (2024-04-15 22:43:04 +0200) count: 204 175 elapsed-time: 3.6 3.8 head-timing-info: old-timing-info: head results: gatling-0.13/bindbench.c:31:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RLIM_INFINITY [valueFlowBailoutIncompleteVar] gatling-0.13/cgi.c:61:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_1 [valueFlowBailoutIncompleteVar] gatling-0.13/bindbench.c:76:16: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/common.c:25:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IROTH [valueFlowBailoutIncompleteVar] gatling-0.13/common.c:50:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IWOTH [valueFlowBailoutIncompleteVar] gatling-0.13/common.c:145:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IP6_FMT [valueFlowBailoutIncompleteVar] gatling-0.13/cgi.c:21:9: style: Variable 'method' can be declared as pointer to const [constVariablePointer] gatling-0.13/cgi.c:58:17: style: Unused variable: port [unusedVariable] gatling-0.13/bench.c:28:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable V4mappedprefix [valueFlowBailoutIncompleteVar] gatling-0.13/bench.c:71:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] gatling-0.13/bench.c:127:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] gatling-0.13/common.c:46:7: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/common.c:145:5: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/acc.c:212:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_1 [valueFlowBailoutIncompleteVar] gatling-0.13/forkbench.c:30:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] gatling-0.13/dl.c:75:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_2 [valueFlowBailoutIncompleteVar] gatling-0.13/dl.c:105:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FMT_ULONG [valueFlowBailoutIncompleteVar] gatling-0.13/dl.c:189:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_2 [valueFlowBailoutIncompleteVar] gatling-0.13/dl.c:194:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable V4mappedprefix [valueFlowBailoutIncompleteVar] gatling-0.13/dl.c:368:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_2 [valueFlowBailoutIncompleteVar] gatling-0.13/dl.c:524:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_base [valueFlowBailoutIncompleteVar] gatling-0.13/dl.c:586:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_1 [valueFlowBailoutIncompleteVar] gatling-0.13/dl.c:700:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] gatling-0.13/ftp.c:65:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gatling-0.13/ftp.c:106:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IP6_FMT [valueFlowBailoutIncompleteVar] gatling-0.13/ftp.c:235:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] gatling-0.13/ftp.c:407:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_PATHNAME [valueFlowBailoutIncompleteVar] gatling-0.13/ftp.c:592:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_1 [valueFlowBailoutIncompleteVar] gatling-0.13/ftp.c:850:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_1 [valueFlowBailoutIncompleteVar] gatling-0.13/ftp.c:914:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] gatling-0.13/bench.c:402:20: error: Using pointer to local variable 'req' that is out of scope. [invalidLifetime] gatling-0.13/bench.c:366:24: note: Array decayed to pointer here. gatling-0.13/bench.c:342:9: note: Variable created here. gatling-0.13/bench.c:402:20: note: Using pointer to local variable 'req' that is out of scope. gatling-0.13/bench.c:228:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/bench.c:250:13: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/bench.c:251:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/bench.c:273:7: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/bench.c:274:9: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/bench.c:275:12: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/bench.c:276:12: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/bench.c:292:27: style: Condition '(i=io_timeouted())!=-1' is always true [knownConditionTrueFalse] gatling-0.13/bench.c:323:29: style: Condition '(i=io_canwrite())!=-1' is always true [knownConditionTrueFalse] gatling-0.13/bench.c:418:28: style: Condition '(i=io_canread())!=-1' is always true [knownConditionTrueFalse] gatling-0.13/bench.c:131:9: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/bench.c:113:17: note: Shadowed declaration gatling-0.13/bench.c:131:9: note: Shadow variable gatling-0.13/bench.c:204:11: style: Local variable 'c' shadows outer variable [shadowVariable] gatling-0.13/bench.c:105:17: note: Shadowed declaration gatling-0.13/bench.c:204:11: note: Shadow variable gatling-0.13/bench.c:253:11: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/bench.c:113:17: note: Shadowed declaration gatling-0.13/bench.c:253:11: note: Shadow variable gatling-0.13/bench.c:344:8: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/bench.c:113:17: note: Shadowed declaration gatling-0.13/bench.c:344:8: note: Shadow variable gatling-0.13/bench.c:345:10: style: Local variable 'c' shadows outer variable [shadowVariable] gatling-0.13/bench.c:105:17: note: Shadowed declaration gatling-0.13/bench.c:345:10: note: Shadow variable gatling-0.13/bench.c:372:12: style: Local variable 'j' shadows outer variable [shadowVariable] gatling-0.13/bench.c:324:11: note: Shadowed declaration gatling-0.13/bench.c:372:12: note: Shadow variable gatling-0.13/bench.c:395:10: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/bench.c:113:17: note: Shadowed declaration gatling-0.13/bench.c:395:10: note: Shadow variable gatling-0.13/bench.c:396:10: style: Local variable 'j' shadows outer variable [shadowVariable] gatling-0.13/bench.c:324:11: note: Shadowed declaration gatling-0.13/bench.c:396:10: note: Shadow variable gatling-0.13/bench.c:444:8: style: Local variable 'k' shadows outer variable [shadowVariable] gatling-0.13/bench.c:107:17: note: Shadowed declaration gatling-0.13/bench.c:444:8: note: Shadow variable gatling-0.13/bench.c:522:10: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/bench.c:113:17: note: Shadowed declaration gatling-0.13/bench.c:522:10: note: Shadow variable gatling-0.13/bench.c:535:11: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/bench.c:522:10: note: Shadowed declaration gatling-0.13/bench.c:535:11: note: Shadow variable gatling-0.13/bench.c:568:11: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/bench.c:522:10: note: Shadowed declaration gatling-0.13/bench.c:568:11: note: Shadow variable gatling-0.13/bench.c:154:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] gatling-0.13/gatling.c:380:35: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] gatling-0.13/getlinks.c:284:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_1 [valueFlowBailoutIncompleteVar] gatling-0.13/getlinks.c:305:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_0 [valueFlowBailoutIncompleteVar] gatling-0.13/acc.c:159:15: style: Local variable 'x' shadows outer variable [shadowVariable] gatling-0.13/acc.c:140:13: note: Shadowed declaration gatling-0.13/acc.c:159:15: note: Shadow variable gatling-0.13/acc.c:193:17: style: Local variable 'x' shadows outer variable [shadowVariable] gatling-0.13/acc.c:140:13: note: Shadowed declaration gatling-0.13/acc.c:193:17: note: Shadow variable gatling-0.13/acc.c:36:28: style: Parameter 'word' can be declared as pointer to const [constParameterPointer] gatling-0.13/acc.c:117:13: style: Variable 'x' can be declared as pointer to const [constVariablePointer] gatling-0.13/acc.c:123:13: style: Variable 'x' can be declared as pointer to const [constVariablePointer] gatling-0.13/getrusage.c:6:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] gatling-0.13/getrusage.c:9:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUSAGE_SELF [valueFlowBailoutIncompleteVar] gatling-0.13/getlinks.c:239:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/http.c:1068:58: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] gatling-0.13/httpbench.c:22:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_1 [valueFlowBailoutIncompleteVar] gatling-0.13/httpbench.c:38:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable V4mappedprefix [valueFlowBailoutIncompleteVar] gatling-0.13/httpbench.c:99:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_2 [valueFlowBailoutIncompleteVar] gatling-0.13/httpbench.c:173:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] gatling-0.13/ioerr.c:22:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_2 [valueFlowBailoutIncompleteVar] gatling-0.13/ioerr.c:37:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable V4mappedprefix [valueFlowBailoutIncompleteVar] gatling-0.13/ioerr.c:91:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] gatling-0.13/ioerr.c:156:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/manymapbench.c:21:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_2 [valueFlowBailoutIncompleteVar] gatling-0.13/manymapbench.c:51:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] gatling-0.13/manymapbench.c:47:9: style: Local variable 'c' shadows outer variable [shadowVariable] gatling-0.13/manymapbench.c:37:22: note: Shadowed declaration gatling-0.13/manymapbench.c:47:9: note: Shadow variable gatling-0.13/httpbench.c:266:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/httpbench.c:353:8: style: Local variable 's' shadows outer variable [shadowVariable] gatling-0.13/httpbench.c:169:7: note: Shadowed declaration gatling-0.13/httpbench.c:353:8: note: Shadow variable gatling-0.13/httpbench.c:369:8: error: Uninitialized variable: err [uninitvar] gatling-0.13/httpbench.c:345:10: style: Variable 'err' is not assigned a value. [unassignedVariable] gatling-0.13/matchiprange.c:95:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_0 [valueFlowBailoutIncompleteVar] gatling-0.13/mktestdata.c:20:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_2 [valueFlowBailoutIncompleteVar] gatling-0.13/mktestdata.c:40:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] gatling-0.13/mmapbench.c:35:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] gatling-0.13/mmapbench.c:31:9: style: Local variable 'c' shadows outer variable [shadowVariable] gatling-0.13/mmapbench.c:25:22: note: Shadowed declaration gatling-0.13/mmapbench.c:31:9: note: Shadow variable gatling-0.13/mmapbench.c:71:19: style: Local variable 'c' shadows outer variable [shadowVariable] gatling-0.13/mmapbench.c:25:22: note: Shadowed declaration gatling-0.13/mmapbench.c:71:19: note: Shadow variable gatling-0.13/mmapbench.c:70:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] gatling-0.13/mmapbench.c:80:7: error: Uninitialized variable: c [legacyUninitvar] gatling-0.13/pssl.c:106:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ssl_session [valueFlowBailoutIncompleteVar] gatling-0.13/pssl.c:141:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x509_cert [valueFlowBailoutIncompleteVar] gatling-0.13/pssl.c:85:41: style: Parameter 'ssl' can be declared as pointer to const. However it seems that 'my_set_session' is a callback function, if 'ssl' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gatling-0.13/pssl.c:181:37: note: You might need to cast the function pointer here gatling-0.13/pssl.c:85:41: note: Parameter 'ssl' can be declared as pointer to const gatling-0.13/pthreadbench.c:38:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] gatling-0.13/pthreadbench.c:12:21: style: Parameter 'pipefd' can be declared as pointer to const. However it seems that 'mythread' is a callback function, if 'pipefd' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gatling-0.13/pthreadbench.c:72:56: note: You might need to cast the function pointer here gatling-0.13/pthreadbench.c:12:21: note: Parameter 'pipefd' can be declared as pointer to const gatling-0.13/mime.c:127:17: style: Local variable 'mimetype' shadows outer function [shadowFunction] gatling-0.13/gatling.h:303:20: note: Shadowed declaration gatling-0.13/mime.c:127:17: note: Shadow variable gatling-0.13/mime.c:191:17: style: Local variable 'last' shadows outer variable [shadowVariable] gatling-0.13/gatling.h:283:26: note: Shadowed declaration gatling-0.13/mime.c:191:17: note: Shadow variable gatling-0.13/mime.c:312:14: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/mime.c:268:7: note: Shadowed declaration gatling-0.13/mime.c:312:14: note: Shadow variable gatling-0.13/readfrag.c:72:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] gatling-0.13/dl.c:875:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/dl.c:1115:17: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/dl.c:1696:33: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] gatling-0.13/dl.c:49:13: style: Condition '!(n+1)' is always false [knownConditionTrueFalse] gatling-0.13/dl.c:1202:4: style: Statements following 'goto' will never be executed. [unreachableCode] gatling-0.13/dl.c:360:11: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/dl.c:340:7: note: Shadowed declaration gatling-0.13/dl.c:360:11: note: Shadow variable gatling-0.13/dl.c:1079:6: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/dl.c:1054:9: note: Shadowed declaration gatling-0.13/dl.c:1079:6: note: Shadow variable gatling-0.13/dl.c:1115:13: style: Local variable 'buf' shadows outer variable [shadowVariable] gatling-0.13/dl.c:1053:10: note: Shadowed declaration gatling-0.13/dl.c:1115:13: note: Shadow variable gatling-0.13/dl.c:1116:11: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/dl.c:1054:9: note: Shadowed declaration gatling-0.13/dl.c:1116:11: note: Shadow variable gatling-0.13/dl.c:1132:14: style: Local variable 'port' shadows outer variable [shadowVariable] gatling-0.13/dl.c:662:10: note: Shadowed declaration gatling-0.13/dl.c:1132:14: note: Shadow variable gatling-0.13/dl.c:1134:12: style: Local variable 'buf' shadows outer variable [shadowVariable] gatling-0.13/dl.c:1053:10: note: Shadowed declaration gatling-0.13/dl.c:1134:12: note: Shadow variable gatling-0.13/dl.c:1136:6: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/dl.c:1054:9: note: Shadowed declaration gatling-0.13/dl.c:1136:6: note: Shadow variable gatling-0.13/dl.c:1156:6: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/dl.c:1054:9: note: Shadowed declaration gatling-0.13/dl.c:1156:6: note: Shadow variable gatling-0.13/dl.c:1177:11: style: Local variable 'srv' shadows outer variable [shadowVariable] gatling-0.13/dl.c:1055:9: note: Shadowed declaration gatling-0.13/dl.c:1177:11: note: Shadow variable gatling-0.13/dl.c:1180:6: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/dl.c:1054:9: note: Shadowed declaration gatling-0.13/dl.c:1180:6: note: Shadow variable gatling-0.13/dl.c:1239:11: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/dl.c:1054:9: note: Shadowed declaration gatling-0.13/dl.c:1239:11: note: Shadow variable gatling-0.13/dl.c:1280:12: style: Local variable 'buf' shadows outer variable [shadowVariable] gatling-0.13/dl.c:1053:10: note: Shadowed declaration gatling-0.13/dl.c:1280:12: note: Shadow variable gatling-0.13/dl.c:1293:17: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/dl.c:1054:9: note: Shadowed declaration gatling-0.13/dl.c:1293:17: note: Shadow variable gatling-0.13/dl.c:1540:8: style: Local variable 'y' shadows outer variable [shadowVariable] gatling-0.13/dl.c:1506:16: note: Shadowed declaration gatling-0.13/dl.c:1540:8: note: Shadow variable gatling-0.13/dl.c:1345:13: style: Variable 'max' can be declared as pointer to const [constVariablePointer] gatling-0.13/dl.c:1419:21: style: Variable 'max' can be declared as pointer to const [constVariablePointer] gatling-0.13/dl.c:916:19: style: Variable 'gaierr' is assigned a value that is never used. [unreadVariable] gatling-0.13/readfrag.c:149:2: warning: %u in format string (no. 5) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] gatling-0.13/readfrag.c:159:7: warning: %u in format string (no. 4) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] gatling-0.13/readfrag.c:80:5: error: Resource leak: fd [resourceLeak] gatling-0.13/readfrag.c:88:5: error: Resource leak: fd [resourceLeak] gatling-0.13/readfrag.c:95:5: error: Resource leak: fd [resourceLeak] gatling-0.13/readfrag.c:21:18: style: Local variable 'x' shadows outer variable [shadowVariable] gatling-0.13/readfrag.c:61:14: note: Shadowed declaration gatling-0.13/readfrag.c:21:18: note: Shadow variable gatling-0.13/readfrag.c:71:25: style: Parameter 'argv' can be declared as const array [constParameter] gatling-0.13/referrer.c:26:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gatling-0.13/referrer.c:79:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] gatling-0.13/rellink.c:74:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] gatling-0.13/rellink.c:252:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] gatling-0.13/rellink.c:26:14: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/rellink.c:258:5: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] gatling-0.13/rellink.c:88:37: style: Parameter 'sa' can be declared as pointer to const [constParameterPointer] gatling-0.13/rellink.c:104:13: style: Variable 'max' can be declared as pointer to const [constVariablePointer] gatling-0.13/rellink.c:209:9: style: Variable 'baseurl' can be declared as pointer to const [constVariablePointer] gatling-0.13/rellink.c:210:15: style: Variable 'max' can be declared as pointer to const [constVariablePointer] gatling-0.13/rellink.c:107:25: style: Variable 'y' is assigned a value that is never used. [unreadVariable] gatling-0.13/ssl.c:71:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSL_FILETYPE_PEM [valueFlowBailoutIncompleteVar] gatling-0.13/ssl.c:108:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSL_FILETYPE_PEM [valueFlowBailoutIncompleteVar] gatling-0.13/ssl.c:14:56: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'verify_cb' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gatling-0.13/ssl.c:58:44: note: You might need to cast the function pointer here gatling-0.13/ssl.c:14:56: note: Parameter 'ctx' can be declared as pointer to const gatling-0.13/ssl.c:26:15: style: Unused variable: store [unusedVariable] gatling-0.13/ssl.c:27:16: style: Unused variable: lookup [unusedVariable] gatling-0.13/torrent.c:127:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable port [valueFlowBailoutIncompleteVar] gatling-0.13/smb.c:665:21: error: maximum AST depth exceeded [internalAstError] gatling-0.13/tryalloca.c:8:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] gatling-0.13/tryalloca.c:9:11: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/tryalloca.c:9:9: style: Variable 'c' can be declared as pointer to const [constVariablePointer] gatling-0.13/tryalloca.c:9:10: style: Variable 'c' is assigned a value that is never used. [unreadVariable] gatling-0.13/trycrypt.c:13:3: warning: Return value of function crypt() is not used. [ignoredReturnValue] gatling-0.13/trycrypt.c:13:3: portability: Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'. [prohibitedcryptCalled] gatling-0.13/trycrypt.c:8:8: style: Unused variable: charset [unusedVariable] gatling-0.13/trycrypt.c:9:16: style: Unused variable: l [unusedVariable] gatling-0.13/trycrypt.c:9:18: style: Unused variable: i [unusedVariable] gatling-0.13/trycrypt.c:10:7: style: Unused variable: fd [unusedVariable] gatling-0.13/referrer.c:86:11: error: Array 'line[8192]' accessed at index 8192, which is out of bounds. [arrayIndexOutOfBounds] gatling-0.13/referrer.c:84:7: note: After for loop, i has value 8192 gatling-0.13/referrer.c:86:11: note: Array index out of bounds gatling-0.13/referrer.c:125:13: error: Array 'fields[20]' accessed at index 20, which is out of bounds. [arrayIndexOutOfBounds] gatling-0.13/referrer.c:118:18: note: Assuming that condition 'i<20' is not redundant gatling-0.13/referrer.c:125:13: note: Array index out of bounds gatling-0.13/referrer.c:130:8: style: Local variable 'x' shadows outer variable [shadowVariable] gatling-0.13/referrer.c:115:13: note: Shadowed declaration gatling-0.13/referrer.c:130:8: note: Shadow variable gatling-0.13/referrer.c:32:28: style: Parameter 'word' can be declared as pointer to const [constParameterPointer] gatling-0.13/referrer.c:40:36: style: Parameter 'word' can be declared as pointer to const [constParameterPointer] gatling-0.13/referrer.c:92:13: style: Variable 'x' can be declared as pointer to const [constVariablePointer] gatling-0.13/referrer.c:98:13: style: Variable 'x' can be declared as pointer to const [constVariablePointer] gatling-0.13/trysocket.c:9:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] gatling-0.13/trysocket.c:11:1: error: Resource leak: fd [resourceLeak] gatling-0.13/trysocket.c:10:9: style: Variable 'fd' is assigned a value that is never used. [unreadVariable] gatling-0.13/torrent.c:31:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gatling-0.13/torrent.c:39:0: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] gatling-0.13/torrent.c:99:5: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/torrent.c:163:9: style: Variable 'c' can be declared as pointer to const [constVariablePointer] gatling-0.13/torrent.c:32:8: error: Uninitialized variable: i [uninitvar] gatling-0.13/torrent.c:40:8: error: Uninitialized variable: i [uninitvar] gatling-0.13/torrent.c:71:22: style: struct member 'peer_state::next' is never used. [unusedStructMember] gatling-0.13/torrent.c:73:8: style: struct member 'peer_state::key' is never used. [unusedStructMember] gatling-0.13/torrent.c:74:8: style: struct member 'peer_state::ip' is never used. [unusedStructMember] gatling-0.13/torrent.c:77:40: style: struct member 'peer_state::state' is never used. [unusedStructMember] gatling-0.13/torrent.c:81:25: style: struct member 'torrent_state::next' is never used. [unusedStructMember] gatling-0.13/torrent.c:82:22: style: struct member 'torrent_state::peers' is never used. [unusedStructMember] gatling-0.13/torrent.c:83:8: style: struct member 'torrent_state::info_hash' is never used. [unusedStructMember] gatling-0.13/torrent.c:30:10: style: Variable 'i' is not assigned a value. [unassignedVariable] gatling-0.13/torrent.c:38:10: style: Variable 'i' is not assigned a value. [unassignedVariable] gatling-0.13/torrent.c:94:11: style: Variable 'ok' is assigned a value that is never used. [unreadVariable] gatling-0.13/torrent.c:94:21: style: Variable 'compact' is assigned a value that is never used. [unreadVariable] gatling-0.13/torrent.c:117:9: style: Variable 'ok' is assigned a value that is never used. [unreadVariable] gatling-0.13/torrent.c:141:14: style: Variable 'compact' is assigned a value that is never used. [unreadVariable] gatling-0.13/torrent.c:174:4: style: Variable 'l' is assigned a value that is never used. [unreadVariable] gatling-0.13/torrent.c:160:8: style: Unused variable: buf [unusedVariable] gatling-0.13/torrent.c:161:7: style: Unused variable: i [unusedVariable] gatling-0.13/torrent.c:162:22: style: Unused variable: ull [unusedVariable] gatling-0.13/ftp.c:45:11: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/ftp.c:188:5: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] gatling-0.13/ftp.c:258:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] gatling-0.13/ftp.c:284:11: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/ftp.c:371:13: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/ftp.c:391:18: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/ftp.c:402:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] gatling-0.13/ftp.c:490:11: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] gatling-0.13/ftp.c:231:9: style: Local variable 'i' shadows outer variable [shadowVariable] gatling-0.13/ftp.c:228:7: note: Shadowed declaration gatling-0.13/ftp.c:231:9: note: Shadow variable gatling-0.13/ftp.c:290:10: style: Local variable 'now' shadows outer variable [shadowVariable] gatling-0.13/gatling.h:300:16: note: Shadowed declaration gatling-0.13/ftp.c:290:10: note: Shadow variable gatling-0.13/ftp.c:451:23: style: Local variable 'b' shadows outer variable [shadowVariable] gatling-0.13/ftp.c:297:11: note: Shadowed declaration gatling-0.13/ftp.c:451:23: note: Shadow variable gatling-0.13/ftp.c:477:11: style: Local variable 'x' shadows outer variable [shadowVariable] gatling-0.13/ftp.c:284:9: note: Shadowed declaration gatling-0.13/ftp.c:477:11: note: Shadow variable gatling-0.13/ftp.c:185:14: style: Variable 't' can be declared as pointer to const [constVariablePointer] gatling-0.13/ftp.c:229:14: style: Variable 't' can be declared as pointer to const [constVariablePointer] gatling-0.13/ftp.c:293:9: style: Variable 'match' can be declared as pointer to const [constVariablePointer] gatling-0.13/ftp.c:537:15: style: Variable 'e' can be declared as pointer to const [constVariablePointer] diff: head gatling-0.13/bench.c:127:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] head gatling-0.13/bench.c:71:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] head gatling-0.13/common.c:145:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IP6_FMT [valueFlowBailoutIncompleteVar] head gatling-0.13/common.c:50:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IWOTH [valueFlowBailoutIncompleteVar] head gatling-0.13/dl.c:105:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FMT_ULONG [valueFlowBailoutIncompleteVar] head gatling-0.13/dl.c:189:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_2 [valueFlowBailoutIncompleteVar] head gatling-0.13/dl.c:194:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable V4mappedprefix [valueFlowBailoutIncompleteVar] head gatling-0.13/dl.c:368:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_2 [valueFlowBailoutIncompleteVar] head gatling-0.13/dl.c:524:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_base [valueFlowBailoutIncompleteVar] head gatling-0.13/dl.c:586:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_1 [valueFlowBailoutIncompleteVar] head gatling-0.13/dl.c:700:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] head gatling-0.13/ftp.c:106:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IP6_FMT [valueFlowBailoutIncompleteVar] head gatling-0.13/ftp.c:235:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRUSR [valueFlowBailoutIncompleteVar] head gatling-0.13/ftp.c:407:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_PATHNAME [valueFlowBailoutIncompleteVar] head gatling-0.13/ftp.c:592:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_1 [valueFlowBailoutIncompleteVar] head gatling-0.13/ftp.c:850:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_1 [valueFlowBailoutIncompleteVar] head gatling-0.13/ftp.c:914:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] head gatling-0.13/getlinks.c:305:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_0 [valueFlowBailoutIncompleteVar] head gatling-0.13/httpbench.c:173:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] head gatling-0.13/httpbench.c:38:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable V4mappedprefix [valueFlowBailoutIncompleteVar] head gatling-0.13/httpbench.c:99:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer_2 [valueFlowBailoutIncompleteVar] head gatling-0.13/ioerr.c:37:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable V4mappedprefix [valueFlowBailoutIncompleteVar] head gatling-0.13/ioerr.c:91:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] head gatling-0.13/manymapbench.c:51:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] head gatling-0.13/mktestdata.c:40:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] head gatling-0.13/pssl.c:141:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable x509_cert [valueFlowBailoutIncompleteVar] 2.13.0 gatling-0.13/pthreadbench.c:72:39: error: Null pointer dereference [nullPointer] head gatling-0.13/referrer.c:79:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] head gatling-0.13/rellink.c:252:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] head gatling-0.13/ssl.c:108:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSL_FILETYPE_PEM [valueFlowBailoutIncompleteVar] head gatling-0.13/ssl.c:14:56: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'verify_cb' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gatling-0.13/ssl.c:58:44: note: You might need to cast the function pointer here gatling-0.13/ssl.c:14:56: note: Parameter 'ctx' can be declared as pointer to const DONE