2025-06-29 05:28 ftp://ftp.de.debian.org/debian/pool/main/m/mrtg/mrtg_2.17.10.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: ca83f56 (2025-06-29 00:31:22 +0200) count: 250 249 elapsed-time: 6.9 7.1 head-timing-info: old-timing-info: head results: mrtg-2.17.10/contrib/mrtgmk/src/alias.c:10:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nalias [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/alias.c:27:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable aliasn [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/alias.c:37:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable usealias [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/alias.c:68:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nalias [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/alias.c:21:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:55:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:79:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:107:86: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/alias.c:20:18: style: Variable 'replace' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/mrtgmk/src/alias.c:35:25: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/alias.c:48:7: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/mrtgmk/src/alias.c:66:22: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:10:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cfgdir [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:64:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nhosts [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:85:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fm [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:6:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable comment [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:15:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fm [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:27:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fh [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:32:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xdebug [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:37:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cfgdir [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:41:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cfgdir [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:46:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fh [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:54:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fm [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:59:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable body [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:63:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable body [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:67:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable base [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:71:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable base [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:83:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable title [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:93:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IREAD [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:139:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable title [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:158:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nmkr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:177:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nmkr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:196:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nmkr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:216:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable nmkr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:233:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fh [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:247:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fh [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:264:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable chngname [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:273:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable conv [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:278:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable conv [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnctn.c:7:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable identl [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnctn.c:15:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable identl [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnctn.c:30:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable base [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnctn.c:40:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable identl [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnctn.c:17:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/fnctn.c:26:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/fnctn.c:42:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/fnctn.c:5:23: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnctn.c:25:17: style: Variable 'text' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/mrtgmk/src/fnctn.c:25:23: style: Variable 'hosti' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/mrtgmk/src/fnctn.c:38:17: style: Variable 'hosti' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/mrtgmk/src/gif.c:7:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fh [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/distrib/distrib.c:72:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/distrib/distrib.c:130:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/distrib/distrib.c:230:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/distrib/distrib.c:423:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable w [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/distrib/distrib.c:532:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:100:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:104:6: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:154:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:183:9: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:186:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:168:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:174:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:232:2: warning: %ld in format string (no. 2) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:53:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:77:7: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtg-blast/tcpblast.c:166:54: error: Uninitialized variable: &size [uninitvar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:16:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:88:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:157:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:176:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:195:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:215:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:237:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:251:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:274:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:279:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/gif.c:8:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/gif.c:5:17: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/gif.c:5:27: style: Parameter 'ext' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/gif.c:6:27: style: Variable 'hosti' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:5:21: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:13:21: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:25:22: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:31:20: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:36:20: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:44:23: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:53:22: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:58:18: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:66:18: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:74:18: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:78:17: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:82:19: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:86:20: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:87:35: style: Variable 'hosti' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:135:28: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:135:38: style: Parameter 'fcfg' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:153:17: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:172:17: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:191:17: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:211:17: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:245:17: style: Variable 'hosti' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:262:25: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:272:25: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:277:25: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/html.c:6:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fh [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/html.c:20:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fh [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:41:2: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:49:1: warning: %ld in format string (no. 1) requires 'long *' but the argument type is 'unsigned long *'. [invalidScanfArgType_int] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:88:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:24:5: error: Resource leak: fcfg [resourceLeak] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:25:28: error: Resource leak: fcfg [resourceLeak] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:62:22: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:78:61: style: Variable 'port' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:82:7: style: Variable 'txt' can be declared as const array [constVariable] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:83:7: style: Variable 'xtxt' can be declared as const array [constVariable] mrtg-2.17.10/contrib/mrtgmk/src/parse0.c:17:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable parse0_ftbl [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/parsen.c:14:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fh [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/parsen.c:42:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NEFTBLn [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/parsen.c:41:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:14:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:86:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/alias.c:24:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/alias.c:42:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/alias.c:57:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/gif.c:30:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:91:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:254:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:269:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnctn.c:45:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/html.c:11:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable btxt [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/defhost.c:166:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable btxt [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtgmk/src/fnct0.c:140:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable btxt [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:126:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:160:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:199:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:235:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:328:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gdFontSmall [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:561:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:153:10: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:165:4: warning: %d in format string (no. 3) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:165:4: warning: %d in format string (no. 4) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:165:4: warning: %d in format string (no. 5) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:185:1: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:185:1: warning: %d in format string (no. 2) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:185:1: warning: %d in format string (no. 3) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:185:1: error: printf format string requires 10 parameters but only 9 are given. [wrongPrintfScanfArgNum] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:46:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:45:24: note: Assuming allocation function fails mrtg-2.17.10/contrib/mrtglog/mrtglog.c:45:9: note: Assignment 'str=(char*)malloc(y*sizeof(char))', assigned value is 0 mrtg-2.17.10/contrib/mrtglog/mrtglog.c:46:4: note: Null pointer dereference mrtg-2.17.10/contrib/mrtglog/mrtglog.c:61:26: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:45:24: note: Assuming allocation function fails mrtg-2.17.10/contrib/mrtglog/mrtglog.c:45:9: note: Assignment 'str=(char*)malloc(y*sizeof(char))', assigned value is 0 mrtg-2.17.10/contrib/mrtglog/mrtglog.c:61:26: note: Null pointer dereference mrtg-2.17.10/contrib/mrtglog/mrtglog.c:61:42: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:45:24: note: Assuming allocation function fails mrtg-2.17.10/contrib/mrtglog/mrtglog.c:45:9: note: Assignment 'str=(char*)malloc(y*sizeof(char))', assigned value is 0 mrtg-2.17.10/contrib/mrtglog/mrtglog.c:61:42: note: Null pointer dereference mrtg-2.17.10/contrib/mrtglog/mrtglog.c:240:12: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:241:7: note: Found duplicate branches for 'if' and 'else'. mrtg-2.17.10/contrib/mrtglog/mrtglog.c:240:12: note: Found duplicate branches for 'if' and 'else'. mrtg-2.17.10/contrib/mrtglog/mrtglog.c:149:8: style: Variable 'i' is reassigned a value before the old one has been used. [redundantAssignment] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:95:3: note: i is assigned mrtg-2.17.10/contrib/mrtglog/mrtglog.c:149:8: note: i is overwritten mrtg-2.17.10/contrib/mrtglog/mrtglog.c:117:10: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:28:12: style: Variable 'zeit' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:199:20: style: Parameter 's' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:117:14: warning: In expression like '*A++' the result of '*' is unused. Did you intend to write '(*A)++;'? [clarifyStatement] mrtg-2.17.10/contrib/mrtgmk/src/parse0.c:16:1: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:89:7: error: Uninitialized variable: start [legacyUninitvar] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:89:17: error: Uninitialized variable: stop [legacyUninitvar] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:89:26: error: Uninitialized variable: log [legacyUninitvar] mrtg-2.17.10/contrib/distrib/distrib.c:227:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mrtg-2.17.10/contrib/distrib/distrib.c:230:53: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] mrtg-2.17.10/contrib/distrib/distrib.c:299:15: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mrtg-2.17.10/contrib/distrib/distrib.c:306:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mrtg-2.17.10/contrib/distrib/distrib.c:309:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mrtg-2.17.10/contrib/distrib/distrib.c:420:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mrtg-2.17.10/contrib/distrib/distrib.c:423:53: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] mrtg-2.17.10/contrib/distrib/distrib.c:279:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mrtg-2.17.10/contrib/distrib/distrib.c:475:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mrtg-2.17.10/contrib/distrib/distrib.c:481:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mrtg-2.17.10/contrib/distrib/distrib.c:635:5: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mrtg-2.17.10/contrib/distrib/distrib.c:295:9: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/distrib/distrib.c:304:16: style: Redundant assignment of 'dist[j][0]' to itself. [selfAssignment] mrtg-2.17.10/contrib/distrib/distrib.c:61:44: style: Parameter 'optstring' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/distrib/distrib.c:224:14: style: Variable 'newtime' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/distrib/distrib.c:291:16: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/distrib/distrib.c:417:14: style: Variable 'newtime' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/distrib/distrib.c:394:13: style: Variable 'i_blank' is assigned a value that is never used. [unreadVariable] mrtg-2.17.10/contrib/distrib/distrib.c:401:13: style: Variable 'i_white' is assigned a value that is never used. [unreadVariable] mrtg-2.17.10/contrib/distrib/distrib.c:402:11: style: Variable 'i_red' is assigned a value that is never used. [unreadVariable] mrtg-2.17.10/contrib/mrtgmk/src/mrtgmk.c:20:17: style: Parameter 'aname' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/mrtgmk/src/parse.c:15:19: style: Parameter 'fcfg' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:325:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:328:40: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:465:8: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:508:8: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:161:3: error: Resource leak: logf [resourceLeak] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:115:44: style: Parameter 'optstring' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:221:35: style: Parameter 'pentry' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:322:14: style: Variable 'newtime' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:707:15: style: Variable 's' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:465:6: style: Variable 'n' is assigned a value that is never used. [unreadVariable] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:472:6: style: Variable 'n' is assigned a value that is never used. [unreadVariable] mrtg-2.17.10/contrib/rdlog2/rdlog2.c:508:6: style: Variable 'n' is assigned a value that is never used. [unreadVariable] mrtg-2.17.10/src/strftime.c:299:13: style: Variable 'sval' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/src/rateup.c:335:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/src/rateup.c:1244:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/src/rateup.c:1324:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/src/rateup.c:1399:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/src/rateup.c:1798:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/src/rateup.c:1865:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mrtg-2.17.10/src/rateup.c:382:7: style: Array index 'n' is used before limits check. [arrayIndexThenCheck] mrtg-2.17.10/src/rateup.c:693:7: style: Array index 'n' is used before limits check. [arrayIndexThenCheck] mrtg-2.17.10/src/rateup.c:1591:4: style: Array index 'n' is used before limits check. [arrayIndexThenCheck] mrtg-2.17.10/src/rateup.c:1608:4: style: Array index 'n' is used before limits check. [arrayIndexThenCheck] mrtg-2.17.10/src/rateup.c:1628:4: style: Array index 'n' is used before limits check. [arrayIndexThenCheck] mrtg-2.17.10/src/rateup.c:1645:4: style: Array index 'n' is used before limits check. [arrayIndexThenCheck] mrtg-2.17.10/src/rateup.c:1665:4: style: Array index 'n' is used before limits check. [arrayIndexThenCheck] mrtg-2.17.10/src/rateup.c:1682:4: style: Array index 'n' is used before limits check. [arrayIndexThenCheck] mrtg-2.17.10/src/rateup.c:1702:4: style: Array index 'n' is used before limits check. [arrayIndexThenCheck] mrtg-2.17.10/src/rateup.c:1719:4: style: Array index 'n' is used before limits check. [arrayIndexThenCheck] mrtg-2.17.10/src/rateup.c:594:19: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mrtg-2.17.10/src/rateup.c:1089:3: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mrtg-2.17.10/src/rateup.c:1834:15: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mrtg-2.17.10/src/rateup.c:2169:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2169:4: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2169:4: warning: %x in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2171:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2171:4: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2171:4: warning: %x in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2173:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2173:4: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2173:4: warning: %x in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2175:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2175:4: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2175:4: warning: %x in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2180:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2180:4: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2180:4: warning: %x in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2182:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2182:4: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2182:4: warning: %x in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2184:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2184:4: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2184:4: warning: %x in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2186:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2186:4: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2186:4: warning: %x in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2188:4: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2188:4: warning: %x in format string (no. 2) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2188:4: warning: %x in format string (no. 3) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mrtg-2.17.10/src/rateup.c:2202:12: warning: If memory allocation fails, then there is a possible null pointer dereference: kMG [nullPointerOutOfMemory] mrtg-2.17.10/src/rateup.c:2201:17: note: Assuming allocation function fails mrtg-2.17.10/src/rateup.c:2201:17: note: Assignment 'kMG=calloc(strlen(argv[argi+1])+1,sizeof(char))', assigned value is 0 mrtg-2.17.10/src/rateup.c:2202:12: note: Null pointer dereference mrtg-2.17.10/src/rateup.c:2215:7: warning: If memory allocation fails, then there is a possible null pointer dereference: longup [nullPointerOutOfMemory] mrtg-2.17.10/src/rateup.c:2214:31: note: Assuming allocation function fails mrtg-2.17.10/src/rateup.c:2214:15: note: Assignment 'longup=(char*)calloc(1,100)', assigned value is 0 mrtg-2.17.10/src/rateup.c:2215:7: note: Null pointer dereference mrtg-2.17.10/src/rateup.c:2310:7: warning: If memory allocation fails, then there is a possible null pointer dereference: pngtitle [nullPointerOutOfMemory] mrtg-2.17.10/src/rateup.c:2309:33: note: Assuming allocation function fails mrtg-2.17.10/src/rateup.c:2309:17: note: Assignment 'pngtitle=(char*)calloc(1,100)', assigned value is 0 mrtg-2.17.10/src/rateup.c:2310:7: note: Null pointer dereference mrtg-2.17.10/src/rateup.c:575:13: style: Variable 'sca_max_q' is reassigned a value before the old one has been used. [redundantAssignment] mrtg-2.17.10/src/rateup.c:532:15: note: sca_max_q is assigned mrtg-2.17.10/src/rateup.c:575:13: note: sca_max_q is overwritten mrtg-2.17.10/src/rateup.c:1009:12: style: Variable 'temp' is reassigned a value before the old one has been used. [redundantAssignment] mrtg-2.17.10/src/rateup.c:1007:9: note: temp is assigned mrtg-2.17.10/src/rateup.c:1009:12: note: temp is overwritten mrtg-2.17.10/src/rateup.c:1229:12: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] mrtg-2.17.10/src/rateup.c:2213:12: style: Variable 'qstr' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/src/rateup.c:2308:12: style: Variable 'qstr' can be declared as pointer to const [constVariablePointer] mrtg-2.17.10/src/rateup.c:1322:12: style: Variable 'err' is assigned a value that is never used. [unreadVariable] diff: head mrtg-2.17.10/contrib/mrtglog/mrtglog.c:61:42: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] mrtg-2.17.10/contrib/mrtglog/mrtglog.c:45:24: note: Assuming allocation function fails mrtg-2.17.10/contrib/mrtglog/mrtglog.c:45:9: note: Assignment 'str=(char*)malloc(y*sizeof(char))', assigned value is 0 mrtg-2.17.10/contrib/mrtglog/mrtglog.c:61:42: note: Null pointer dereference DONE