2026-05-31 21:28 ftp://ftp.de.debian.org/debian/pool/main/b/bcron/bcron_0.11.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 -j1 platform: Linux-6.12.88+deb13-amd64-x86_64-with-glibc2.41 python: 3.12.13 client-version: 1.4.0 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.20.0 head-info: 8c14fc7 (2026-05-31 09:56:45 +0200) count: 46 45 elapsed-time: 0.2 0.2 head-timing-info: old-timing-info: head results: bcron-0.11/bcron-exec.c:75:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-exec.c:83:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-exec.c:91:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable s [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-exec.c:266:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sendmail [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-exec.c:394:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-exec.c:340:16: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] bcron-0.11/bcron-exec.c:325:18: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] bcron-0.11/bcron-exec.c:374:26: style: Parameter 'argv' can be declared as const array [constParameter] bcron-0.11/bcron-exec.c:231:10: style: Variable 'fd' is assigned a value that is never used. [unreadVariable] bcron-0.11/bcron-sched.c:134:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-sched.c:29:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] bcron-0.11/bcron-spool.c:29:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable outbuf [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-spool.c:43:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable outbuf [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-spool.c:113:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-spool.c:123:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-spool.c:179:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable inbuf [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-spool.c:184:13: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] bcron-0.11/bcron-spool.c:98:13: warning: Either the condition '(fd=tempfile("tmp/spool"))==-1' is redundant or write() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] bcron-0.11/bcron-spool.c:96:36: note: Assuming that condition '(fd=tempfile("tmp/spool"))==-1' is not redundant bcron-0.11/bcron-spool.c:98:13: note: Invalid argument bcron-0.11/bcron-spool.c:136:27: warning: Either the condition '(dir=opendir("crontabs"))==0' is redundant or there is possible null pointer dereference: dir. [nullPointerRedundantCheck] bcron-0.11/bcron-spool.c:134:36: note: Assuming that condition '(dir=opendir("crontabs"))==0' is not redundant bcron-0.11/bcron-spool.c:136:27: note: Null pointer dereference bcron-0.11/bcron-start.c:27:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-start.c:38:13: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] bcron-0.11/bcron-start.c:23:18: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] bcron-0.11/bcron-update.c:38:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] bcron-0.11/bcron-update.c:263:17: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] bcron-0.11/bcron-update.c:106:55: style: Parameter 'st' can be declared as pointer to const [constParameterPointer] bcron-0.11/bcron-update.c:137:31: style: Variable 'se' can be declared as pointer to const [constVariablePointer] bcron-0.11/bcrontab.c:85:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IOBUF_NEEDSCLOSE [valueFlowBailoutIncompleteVar] bcron-0.11/connection.c:14:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LENGTH [valueFlowBailoutIncompleteVar] bcron-0.11/connection.c:29:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATA [valueFlowBailoutIncompleteVar] bcron-0.11/crontab.c:128:7: style: Condition '!crontab_parse(c,&file,runas)' is always false [knownConditionTrueFalse] bcron-0.11/crontab.c:128:21: note: Calling function 'crontab_parse' returns 1 bcron-0.11/crontab.c:128:7: note: Condition '!crontab_parse(c,&file,runas)' is always false bcron-0.11/crontab.c:65:9: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] bcron-0.11/crontab.c:45:35: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] bcron-0.11/ministat.c:36:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bcron-0.11/sendpacket.c:18:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] bcron-0.11/test-sched.c:47:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable outbuf [valueFlowBailoutIncompleteVar] bcron-0.11/test-sched.c:45:47: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] bcron-0.11/test-sched.c:25:30: style: Parameter 'argv' can be declared as const array [constParameter] bcron-0.11/test-sched.c:36:23: error: Uninitialized variable: jobstr [uninitvar] bcron-0.11/time.c:14:16: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] bcron-0.11/time.c:5:36: style:inconclusive: Function 'fmttm' argument 1 names different: declaration '' definition 'tm'. [funcArgNamesDifferentUnnamed] bcron-0.11/timespec-next.c:84:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable daylight [valueFlowBailoutIncompleteVar] bcron-0.11/timespec-next.c:94:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable daylight [valueFlowBailoutIncompleteVar] bcron-0.11/timespec-next.c:106:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable daylight [valueFlowBailoutIncompleteVar] bcron-0.11/timespec-next.c:208:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tzname [valueFlowBailoutIncompleteVar] bcron-0.11/timespec-next.c:36:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] bcron-0.11/timespec-next.c:107:13: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] diff: head bcron-0.11/time.c:5:36: style:inconclusive: Function 'fmttm' argument 1 names different: declaration '' definition 'tm'. [funcArgNamesDifferentUnnamed] DONE