2024-04-23 01:24 ftp://ftp.de.debian.org/debian/pool/main/v/vnstat/vnstat_2.12.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=sqlite3 --check-library --inconclusive --enable=style,information --inline-suppr --disable=missingInclude --suppress=unmatchedSuppression --template=daca2 --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j2 platform: Linux-6.6.15-amd64-x86_64-with-glibc2.37 python: 3.11.8 client-version: 1.3.53 compiler: g++ (Debian 13.2.0-13) 13.2.0 cppcheck: head 2.14.0 head-info: bd7136d (2024-04-22 21:34:48 +0200) count: 350 350 elapsed-time: 9.0 9.1 head-timing-info: old-timing-info: head results: vnstat-2.12/src/cfg.c:471:97: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vnstat-2.12/src/cfg.c:561:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_ALL [valueFlowBailoutIncompleteVar] vnstat-2.12/src/common.c:20:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] vnstat-2.12/src/common.c:149:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_WARNING [valueFlowBailoutIncompleteVar] vnstat-2.12/src/common.c:240:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/common.c:287:82: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vnstat-2.12/src/common.c:299:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VERSION [valueFlowBailoutIncompleteVar] vnstat-2.12/src/common.c:54:44: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/common.c:109:43: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/daemon.c:38:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:143:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:239:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:306:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:366:87: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:391:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_ERR [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:409:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:474:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:569:112: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:639:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:762:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:795:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:846:97: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:930:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:969:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/daemon.c:261:42: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/daemon.c:372:15: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] vnstat-2.12/src/daemon.c:1083:8: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/daemon.c:1124:45: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/daemon.c:1142:43: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/daemon.c:1144:44: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/daemon.c:1151:44: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/daemon.c:1152:45: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/daemon.c:1157:44: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/daemon.c:1158:45: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/daemon.c:1165:44: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/daemon.c:1166:45: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/daemon.c:230:8: style: Variable 'btime_buffer' can be declared as pointer to const [constVariablePointer] vnstat-2.12/src/daemon.c:362:17: style: Variable 'di' can be declared as pointer to const [constVariablePointer] vnstat-2.12/src/daemon.c:1079:13: style: Variable 'stm' can be declared as pointer to const [constVariablePointer] vnstat-2.12/src/daemon.c:790:36: style: Variable 'interface_already_monitored' is assigned a value that is never used. [unreadVariable] vnstat-2.12/src/datacache.c:173:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbaccess.c:147:84: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbaccess.c:417:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbaccess.c:103:9: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/dbaccess.c:280:6: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/dbaccess.c:35:13: style: Variable 'stm' can be declared as pointer to const [constVariablePointer] vnstat-2.12/src/dbjson.c:8:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbjson.c:105:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbjson.c:137:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbjson.c:157:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbjson.c:210:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbjson.c:294:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbjson.c:371:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbjson.c:349:6: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] vnstat-2.12/src/dbjson.c:332:45: style:inconclusive: Function 'jsoninterfaceinfo' argument 1 names different: declaration 'info' definition 'ifaceinfo'. [funcArgNamesDifferent] vnstat-2.12/src/dbjson.h:15:45: note: Function 'jsoninterfaceinfo' argument 1 names different: declaration 'info' definition 'ifaceinfo'. vnstat-2.12/src/dbjson.c:332:45: note: Function 'jsoninterfaceinfo' argument 1 names different: declaration 'info' definition 'ifaceinfo'. vnstat-2.12/src/dbjson.c:347:13: style: Variable 'd' can be declared as pointer to const [constVariablePointer] vnstat-2.12/src/dbshow.c:79:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbshow.c:314:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbshow.c:593:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbshow.c:696:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbshow.c:876:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbshow.c:996:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbshow.c:1300:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:41:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:365:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:396:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:414:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:588:72: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:602:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:616:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:634:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:667:191: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:722:74: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRId64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:871:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:927:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:941:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:972:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:990:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:1054:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:1144:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:1317:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu32 [valueFlowBailoutIncompleteVar] vnstat-2.12/src/dbsql.c:737:25: error: Buffer is accessed out of bounds: sql [bufferAccessOutOfBounds] vnstat-2.12/src/dbsql.c:1013:26: error: Buffer is accessed out of bounds: sql [bufferAccessOutOfBounds] vnstat-2.12/src/dbsql.c:162:23: style: Condition 'dbversion