2025-07-29 05:29 ftp://ftp.de.debian.org/debian/pool/main/s/spambayes/spambayes_1.1b1+git20190201.1335ca8.orig.tar.bz2 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.18.0 head-info: 55e2dc6 (2025-07-24 17:37:42 +0200) count: 9 9 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: spambayes-1.1b1+git20190201.1335ca8/src/sb_bnfilter.c:26:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spambayes-1.1b1+git20190201.1335ca8/src/sb_bnfilter.c:64:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] spambayes-1.1b1+git20190201.1335ca8/src/sb_bnfilter.c:103:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] spambayes-1.1b1+git20190201.1335ca8/src/sb_bnfilter.c:207:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] spambayes-1.1b1+git20190201.1335ca8/src/sb_bnfilter.c:232:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] spambayes-1.1b1+git20190201.1335ca8/src/sb_bnfilter.c:289:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] spambayes-1.1b1+git20190201.1335ca8/src/sb_bnfilter.c:278:13: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] spambayes-1.1b1+git20190201.1335ca8/src/sb_bnfilter.c:288:13: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] spambayes-1.1b1+git20190201.1335ca8/src/sb_bnfilter.c:287:21: note: Assuming allocation function fails spambayes-1.1b1+git20190201.1335ca8/src/sb_bnfilter.c:287:21: note: Assignment 'f=fdopen(s_fd,"w+")', assigned value is 0 spambayes-1.1b1+git20190201.1335ca8/src/sb_bnfilter.c:288:13: note: Null pointer dereference spambayes-1.1b1+git20190201.1335ca8/src/sb_bnfilter.c:219:9: style: Unused variable: sleep_time [unusedVariable] diff: DONE