2025-11-16 23:13 ftp://ftp.de.debian.org/debian/pool/main/s/stenographer/stenographer_1.0.1.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 -j4 platform: Linux-6.12.48+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 2ad4620 (2025-11-14 19:45:56 +0100) count: 71 71 elapsed-time: 0.2 0.3 head-timing-info: old-timing-info: head results: stenographer-1.0.1/stenotype/util.h:44:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/util.h:77:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/util.h:95:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINTR [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/util.h:126:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable hex [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/util.h:131:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cerr [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/util.h:314:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/index.h:44:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logging_verbose_level [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/index.h:54:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logging_verbose_level [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/index_bin.cc:41:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/index_bin.cc:64:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/aio.cc:35:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logging_verbose_level [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/aio.cc:40:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logging_verbose_level [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/aio.cc:66:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logging_verbose_level [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/aio.cc:111:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kNumMicrosPerSecond [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/aio.cc:122:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable logging_verbose_level [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/aio.cc:144:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAGAIN [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/aio.cc:161:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINTR [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/aio.cc:189:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/index.cc:63:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ethhdr [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/index.cc:281:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kNoCompression [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/packets.h:79:8: style:inconclusive: Technically the member function 'st::Block::Empty' can be const. [functionConst] stenographer-1.0.1/stenotype/index.h:79:5: warning: Class 'SliceSet' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] stenographer-1.0.1/stenotype/index.h:79:5: warning: Class 'SliceSet' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] stenographer-1.0.1/stenotype/index.h:42:7: warning: Struct 'Buffer' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] stenographer-1.0.1/stenotype/index.h:42:7: warning: Struct 'Buffer' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] stenographer-1.0.1/stenotype/index.h:78:3: style: Class 'SliceSet' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] stenographer-1.0.1/stenotype/packets.h:162:12: style: The destructor '~PacketsV3' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] stenographer-1.0.1/stenotype/packets.h:115:12: note: Virtual destructor in base class stenographer-1.0.1/stenotype/packets.h:162:12: note: Destructor in derived class stenographer-1.0.1/stenotype/packets.h:170:17: style: The function 'NextBlock' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] stenographer-1.0.1/stenotype/packets.h:123:17: note: Virtual function in base class stenographer-1.0.1/stenotype/packets.h:170:17: note: Function in derived class stenographer-1.0.1/stenotype/packets.h:172:17: style: The function 'GetStats' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] stenographer-1.0.1/stenotype/packets.h:125:17: note: Virtual function in base class stenographer-1.0.1/stenotype/packets.h:172:17: note: Function in derived class stenographer-1.0.1/stenotype/util.h:138:22: warning: If memory allocation fails, then there is a possible null pointer dereference: symbols [nullPointerOutOfMemory] stenographer-1.0.1/stenotype/util.h:136:41: note: Assuming allocation function fails stenographer-1.0.1/stenotype/util.h:136:41: note: Assignment 'symbols=backtrace_symbols(backtraces,size)', assigned value is 0 stenographer-1.0.1/stenotype/util.h:138:22: note: Null pointer dereference stenographer-1.0.1/stenotype/packets.cc:42:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPACKET_ALIGNMENT [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/packets.cc:93:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TP_STATUS_USER [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/packets.cc:134:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TP_STATUS_KERNEL [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/packets.cc:232:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IFNAMSIZ [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/packets.cc:279:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable code [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/packets.cc:313:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPACKET_V3 [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/packets.cc:340:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PROT_READ [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/packets.cc:350:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_PACKET [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/packets.cc:357:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] stenographer-1.0.1/stenotype/index_bin.cc:40:23: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] stenographer-1.0.1/stenotype/index_bin.cc:48:9: style: Variable 'limit' can be declared as pointer to const [constVariablePointer] stenographer-1.0.1/stenotype/aio.cc:63:7: style:inconclusive: Technically the member function 'st::io::SingleFile::Outstanding' can be const. [functionConst] stenographer-1.0.1/stenotype/aio.cc:69:8: style:inconclusive: Technically the member function 'st::io::SingleFile::Closable' can be const. [functionConst] stenographer-1.0.1/stenotype/aio.cc:84:30: style:inconclusive: Function 'Done' argument 1 names different: declaration 'evt' definition 'event'. [funcArgNamesDifferent] stenographer-1.0.1/stenotype/aio.cc:42:24: note: Function 'Done' argument 1 names different: declaration 'evt' definition 'event'. stenographer-1.0.1/stenotype/aio.cc:84:30: note: Function 'Done' argument 1 names different: declaration 'evt' definition 'event'. stenographer-1.0.1/stenotype/index.cc:347:30: style:inconclusive: Function 'AddVLAN' argument 1 names different: declaration 'port' definition 'vlan'. [funcArgNamesDifferent] stenographer-1.0.1/stenotype/index.h:123:25: note: Function 'AddVLAN' argument 1 names different: declaration 'port' definition 'vlan'. stenographer-1.0.1/stenotype/index.cc:347:30: note: Function 'AddVLAN' argument 1 names different: declaration 'port' definition 'vlan'. stenographer-1.0.1/stenotype/index.cc:349:30: style:inconclusive: Function 'AddIPv4' argument 1 names different: declaration 'ip' definition 'ip4'. [funcArgNamesDifferent] stenographer-1.0.1/stenotype/index.h:119:25: note: Function 'AddIPv4' argument 1 names different: declaration 'ip' definition 'ip4'. stenographer-1.0.1/stenotype/index.cc:349:30: note: Function 'AddIPv4' argument 1 names different: declaration 'ip' definition 'ip4'. stenographer-1.0.1/stenotype/aio.cc:84:30: style: Parameter 'event' can be declared as pointer to const [constParameterPointer] stenographer-1.0.1/stenotype/aio.cc:214:17: style: Consider using std::accumulate algorithm instead of a raw loop. [useStlAlgorithm] stenographer-1.0.1/stenotype/packets.cc:65:8: warning: Member variable 'Block::releaser_arg_' is not initialized in the constructor. [uninitMemberVar] stenographer-1.0.1/stenotype/packets.cc:59:13: style:inconclusive: Technically the member function 'st::Block::UpdateStats' can be const. [functionConst] stenographer-1.0.1/stenotype/packets.h:87:8: note: Technically the member function 'st::Block::UpdateStats' can be const. stenographer-1.0.1/stenotype/packets.cc:59:13: note: Technically the member function 'st::Block::UpdateStats' can be const. stenographer-1.0.1/stenotype/packets.cc:150:12: style:inconclusive: Technically the member function 'st::Block::Status' can be const. [functionConst] stenographer-1.0.1/stenotype/packets.h:93:7: note: Technically the member function 'st::Block::Status' can be const. stenographer-1.0.1/stenotype/packets.cc:150:12: note: Technically the member function 'st::Block::Status' can be const. stenographer-1.0.1/stenotype/packets.cc:151:16: style:inconclusive: Technically the member function 'st::Block::TimeNSecs' can be const. [functionConst] stenographer-1.0.1/stenotype/packets.h:94:11: note: Technically the member function 'st::Block::TimeNSecs' can be const. stenographer-1.0.1/stenotype/packets.cc:151:16: note: Technically the member function 'st::Block::TimeNSecs' can be const. stenographer-1.0.1/stenotype/packets.cc:158:15: style:inconclusive: Technically the member function 'st::Block::Length' can be const. [functionConst] stenographer-1.0.1/stenotype/packets.h:96:10: note: Technically the member function 'st::Block::Length' can be const. stenographer-1.0.1/stenotype/packets.cc:158:15: note: Technically the member function 'st::Block::Length' can be const. stenographer-1.0.1/stenotype/packets.h:226:3: style: Class 'PacketsV3' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] stenographer-1.0.1/stenotype/util.cc:128:5: warning: Class 'Watchdog' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] stenographer-1.0.1/stenotype/util.cc:128:5: warning: Class 'Watchdog' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] stenographer-1.0.1/stenotype/util.cc:51:19: style: Condition 'count_=threads_' is not redundant stenographer-1.0.1/stenotype/util.cc:51:19: note: Condition 'count_