2026-05-31 21:35 ftp://ftp.de.debian.org/debian/pool/main/b/beanstalkd/beanstalkd_1.13.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --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: 202 148 elapsed-time: 0.6 0.6 head-timing-info: old-timing-info: head results: beanstalkd-1.13/conn.c:39:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/conn.c:213:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] beanstalkd-1.13/conn.c:208:18: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/conn.c:223:11: style: Variable 'a' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/conn.c:224:11: style: Variable 'b' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/ct/ct.c:50:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_MONOTONIC [valueFlowBailoutIncompleteVar] beanstalkd-1.13/ct/ct.c:129:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] beanstalkd-1.13/ct/ct.c:147:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/ct/ct.c:168:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/ct/ct.c:194:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/ct/ct.c:249:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/ct/ct.c:264:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/ct/ct.c:305:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/ct/ct.c:423:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] beanstalkd-1.13/ct/ct.c:511:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] beanstalkd-1.13/ct/ct.c:536:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] beanstalkd-1.13/ct/ct.c:550:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] beanstalkd-1.13/ct/ct.c:57:21: style:inconclusive: Function 'ctlogpn' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/ct/ct.c:57:28: style:inconclusive: Function 'ctlogpn' argument 2 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/ct/ct.c:57:43: style:inconclusive: Function 'ctlogpn' argument 3 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/ct/ct.c:120:16: style:inconclusive: Function 'ctsetbytes' argument 1 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/ct/ct.c:279:20: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/ct/ct.c:438:31: warning: Either the condition 'n' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:83:18: style:inconclusive: Function 'filedecref' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:94:18: style:inconclusive: Function 'fileaddjob' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:94:26: style:inconclusive: Function 'fileaddjob' argument 2 names different: declaration '' definition 'j'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:110:17: style:inconclusive: Function 'filermjob' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:110:25: style:inconclusive: Function 'filermjob' argument 2 names different: declaration '' definition 'j'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:128:16: style:inconclusive: Function 'fileread' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:157:15: style:inconclusive: Function 'readrec' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:157:23: style:inconclusive: Function 'readrec' argument 2 names different: declaration '' definition 'l'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:157:31: style:inconclusive: Function 'readrec' argument 3 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:288:16: style:inconclusive: Function 'readrec5' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:288:24: style:inconclusive: Function 'readrec5' argument 2 names different: declaration '' definition 'l'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:288:32: style:inconclusive: Function 'readrec5' argument 3 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:422:16: style:inconclusive: Function 'readfull' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:422:25: style:inconclusive: Function 'readfull' argument 2 names different: declaration '' definition 'c'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:422:32: style:inconclusive: Function 'readfull' argument 3 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:422:40: style:inconclusive: Function 'readfull' argument 4 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:422:51: style:inconclusive: Function 'readfull' argument 5 names different: declaration '' definition 'desc'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:442:15: style:inconclusive: Function 'warnpos' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:442:22: style:inconclusive: Function 'warnpos' argument 2 names different: declaration '' definition 'adj'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:442:33: style:inconclusive: Function 'warnpos' argument 3 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:460:17: style:inconclusive: Function 'filewopen' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:522:22: style:inconclusive: Function 'filewrjobshort' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:522:30: style:inconclusive: Function 'filewrjobshort' argument 2 names different: declaration '' definition 'j'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:540:21: style:inconclusive: Function 'filewrjobfull' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:540:29: style:inconclusive: Function 'filewrjobfull' argument 2 names different: declaration '' definition 'j'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:555:18: style:inconclusive: Function 'filewclose' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:573:16: style:inconclusive: Function 'fileinit' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:573:24: style:inconclusive: Function 'fileinit' argument 2 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:573:31: style:inconclusive: Function 'fileinit' argument 3 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:585:15: style:inconclusive: Function 'fileadd' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:585:23: style:inconclusive: Function 'fileadd' argument 2 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/file.c:442:15: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/file.c:502:34: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/job.c:57:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/job.c:100:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/job.c:120:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/job.c:202:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/job.c:41:12: style:inconclusive: Function 'rehash' argument 1 names different: declaration '' definition 'is_upscaling'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/job.c:142:20: style: Parameter 'j' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/job.c:221:16: style: Parameter 'j' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/job.c:240:24: style: Parameter 'head' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/linux.c:24:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/linux.c:40:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPOLL_CTL_ADD [valueFlowBailoutIncompleteVar] beanstalkd-1.13/linux.c:70:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/main.c:15:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/main.c:50:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] beanstalkd-1.13/main.c:90:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] beanstalkd-1.13/main.c:16:28: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] beanstalkd-1.13/ms.c:7:50: style:inconclusive: Function 'ms_init' argument 3 names different: declaration '' definition 'onremove'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/ms.c:71:24: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/ms.c:83:17: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/ms.c:83:26: style: Parameter 'item' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/net.c:23:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] beanstalkd-1.13/net.c:44:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNSPEC [valueFlowBailoutIncompleteVar] beanstalkd-1.13/net.c:158:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sockaddr_un [valueFlowBailoutIncompleteVar] beanstalkd-1.13/net.c:109:55: style: Variable 'h' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/net.c:109:66: style: Variable 'p' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/prot.c:330:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:377:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:466:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:748:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:887:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:946:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RUSAGE_SELF [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:1017:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:1044:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:1123:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:1159:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:1349:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:2058:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iov_base [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:2111:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:2209:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:2271:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:2317:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/prot.c:936:7: style: Redundant initialization for 's'. The initialized value is overwritten before it is read. [redundantInitialization] beanstalkd-1.13/prot.c:933:15: note: s is initialized beanstalkd-1.13/prot.c:936:7: note: s is overwritten beanstalkd-1.13/prot.c:936:5: style: Variable 's' is assigned an expression that holds the same value. [redundantAssignment] beanstalkd-1.13/prot.c:933:15: note: s is assigned 'x' here. beanstalkd-1.13/prot.c:936:5: note: Variable 's' is assigned an expression that holds the same value. beanstalkd-1.13/prot.c:366:18: style:inconclusive: Function 'reply_line' argument 1 names different: declaration '' definition 'c'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/prot.c:366:25: style:inconclusive: Function 'reply_line' argument 2 names different: declaration '' definition 'state'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/prot.c:366:44: style:inconclusive: Function 'reply_line' argument 3 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/prot.c:298:21: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/prot.c:729:31: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/prot.c:764:11: style: Variable 'match' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/prot.c:779:17: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/prot.c:1147:11: style: Variable 't' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/prot.c:1214:46: style: Parameter 't' can be declared as pointer to const. However it seems that 'fmt_stats_tube' is a callback function, if 't' is declared with const you might also need to cast function pointer(s). [constParameterCallback] beanstalkd-1.13/prot.c:1710:30: note: You might need to cast the function pointer here beanstalkd-1.13/prot.c:1214:46: note: Parameter 't' can be declared as pointer to const beanstalkd-1.13/prot.c:1243:10: style: Variable 'j' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/serv.c:24:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/serv.c:45:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/sunos.c:18:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/sunos.c:33:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] beanstalkd-1.13/sunos.c:68:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testheap.c:225:9: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] beanstalkd-1.13/testheap.c:222:21: note: Assuming allocation function fails beanstalkd-1.13/testheap.c:222:21: note: Assignment 'j=calloc(n,sizeof(*j))', assigned value is 0 beanstalkd-1.13/testheap.c:225:9: note: Null pointer dereference beanstalkd-1.13/testheap.c:226:9: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] beanstalkd-1.13/testheap.c:222:21: note: Assuming allocation function fails beanstalkd-1.13/testheap.c:222:21: note: Assignment 'j=calloc(n,sizeof(*j))', assigned value is 0 beanstalkd-1.13/testheap.c:226:9: note: Null pointer dereference beanstalkd-1.13/testheap.c:227:9: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] beanstalkd-1.13/testheap.c:222:21: note: Assuming allocation function fails beanstalkd-1.13/testheap.c:222:21: note: Assignment 'j=calloc(n,sizeof(*j))', assigned value is 0 beanstalkd-1.13/testheap.c:227:9: note: Null pointer dereference beanstalkd-1.13/testheap.c:227:24: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] beanstalkd-1.13/testheap.c:222:21: note: Assuming allocation function fails beanstalkd-1.13/testheap.c:222:21: note: Assignment 'j=calloc(n,sizeof(*j))', assigned value is 0 beanstalkd-1.13/testheap.c:227:24: note: Null pointer dereference beanstalkd-1.13/testheap.c:227:25: warning: Either the condition '!(j[i])' is redundant or there is possible null pointer dereference: j[i]. [nullPointerRedundantCheck] beanstalkd-1.13/testheap.c:226:9: note: Assuming that condition '!(j[i])' is not redundant beanstalkd-1.13/testheap.c:227:25: note: Null pointer dereference beanstalkd-1.13/testheap.c:236:24: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] beanstalkd-1.13/testheap.c:222:21: note: Assuming allocation function fails beanstalkd-1.13/testheap.c:222:21: note: Assignment 'j=calloc(n,sizeof(*j))', assigned value is 0 beanstalkd-1.13/testheap.c:236:24: note: Null pointer dereference beanstalkd-1.13/testheap.c:263:9: warning: If memory allocation fails, then there is a possible null pointer dereference: jj [nullPointerOutOfMemory] beanstalkd-1.13/testheap.c:259:22: note: Assuming allocation function fails beanstalkd-1.13/testheap.c:259:22: note: Assignment 'jj=calloc(n,sizeof(struct Job*))', assigned value is 0 beanstalkd-1.13/testheap.c:263:9: note: Null pointer dereference beanstalkd-1.13/testheap.c:269:18: warning: If memory allocation fails, then there is a possible null pointer dereference: jj [nullPointerOutOfMemory] beanstalkd-1.13/testheap.c:259:22: note: Assuming allocation function fails beanstalkd-1.13/testheap.c:259:22: note: Assignment 'jj=calloc(n,sizeof(struct Job*))', assigned value is 0 beanstalkd-1.13/testheap.c:269:18: note: Null pointer dereference beanstalkd-1.13/testheap.c:44:10: style: Variable 'got' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/testjobs.c:126:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testjobs.c:139:9: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] beanstalkd-1.13/testjobs.c:134:21: note: Assuming allocation function fails beanstalkd-1.13/testjobs.c:134:21: note: Assignment 'j=calloc(n,sizeof(*j))', assigned value is 0 beanstalkd-1.13/testjobs.c:139:9: note: Null pointer dereference beanstalkd-1.13/testjobs.c:144:18: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] beanstalkd-1.13/testjobs.c:134:21: note: Assuming allocation function fails beanstalkd-1.13/testjobs.c:134:21: note: Assignment 'j=calloc(n,sizeof(*j))', assigned value is 0 beanstalkd-1.13/testjobs.c:144:18: note: Null pointer dereference beanstalkd-1.13/testjobs.c:156:9: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] beanstalkd-1.13/testjobs.c:153:21: note: Assuming allocation function fails beanstalkd-1.13/testjobs.c:153:21: note: Assignment 'j=calloc(n,sizeof(*j))', assigned value is 0 beanstalkd-1.13/testjobs.c:156:9: note: Null pointer dereference beanstalkd-1.13/testjobs.c:161:18: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] beanstalkd-1.13/testjobs.c:153:21: note: Assuming allocation function fails beanstalkd-1.13/testjobs.c:153:21: note: Assignment 'j=calloc(n,sizeof(*j))', assigned value is 0 beanstalkd-1.13/testjobs.c:161:18: note: Null pointer dereference beanstalkd-1.13/testjobs.c:14:10: style: Variable 'j' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/testms.c:103:10: style: Variable 'n' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/testms.c:122:9: style: Variable 'e' can be declared as const array [constVariable] beanstalkd-1.13/testms.c:132:14: style: Variable 'got' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/testserv.c:50:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOSPC [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testserv.c:60:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testserv.c:80:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testserv.c:118:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_UNIX [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testserv.c:151:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testserv.c:204:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testserv.c:241:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testserv.c:273:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testserv.c:352:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testserv.c:362:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testserv.c:1828:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/testserv.c:67:9: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] beanstalkd-1.13/testserv.c:899:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] beanstalkd-1.13/testserv.c:1135:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] beanstalkd-1.13/testserv.c:1175:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] beanstalkd-1.13/testserv.c:1193:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] beanstalkd-1.13/testserv.c:899:12: error: Invalid usleep() argument nr 1. The value is 1010000 but the valid values are '0:999999'. [invalidFunctionArg] beanstalkd-1.13/testserv.c:1193:12: error: Invalid usleep() argument nr 1. The value is 1000000 but the valid values are '0:999999'. [invalidFunctionArg] beanstalkd-1.13/testserv.c:1531:10: style: Redundant initialization for 'port'. The initialized value is overwritten before it is read. [redundantInitialization] beanstalkd-1.13/testserv.c:1528:14: note: port is initialized beanstalkd-1.13/testserv.c:1531:10: note: port is overwritten beanstalkd-1.13/testserv.c:44:24: style: Argument 'size' shadows outer variable [shadowVariable] beanstalkd-1.13/testserv.c:23:20: note: Shadowed variable beanstalkd-1.13/testserv.c:44:24: note: Shadow argument beanstalkd-1.13/testserv.c:1991:34: style: Argument 'size' shadows outer variable [shadowVariable] beanstalkd-1.13/testserv.c:23:20: note: Shadowed variable beanstalkd-1.13/testserv.c:1991:34: note: Shadow argument beanstalkd-1.13/testserv.c:35:13: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/testserv.c:114:20: style: Parameter 'socket_file' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/testserv.c:356:16: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/tube.c:18:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/tube.c:49:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/util.c:22:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] beanstalkd-1.13/util.c:33:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] beanstalkd-1.13/util.c:104:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] beanstalkd-1.13/util.c:155:18: style:inconclusive: Function 'optparse' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/util.c:155:28: style:inconclusive: Function 'optparse' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/util.c:33:11: style: Variable 'err' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/util.c:90:35: style: Parameter 'opt' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/util.c:90:46: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/walg.c:81:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/walg.c:133:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/walg.c:168:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/walg.c:217:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/walg.c:287:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/walg.c:315:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/walg.c:346:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/walg.c:408:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/walg.c:445:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/walg.c:487:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] beanstalkd-1.13/walg.c:427:9: error: Resource leak: fd [resourceLeak] beanstalkd-1.13/walg.c:432:5: error: Resource leak: fd [resourceLeak] beanstalkd-1.13/walg.c:54:12: style:inconclusive: Function 'walgc' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/walg.c:179:15: style:inconclusive: Function 'walwrite' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/walg.c:179:23: style:inconclusive: Function 'walwrite' argument 2 names different: declaration '' definition 'j'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/walg.c:201:15: style:inconclusive: Function 'walmaint' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/walg.c:367:17: style:inconclusive: Function 'walresvput' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/walg.c:367:25: style:inconclusive: Function 'walresvput' argument 2 names different: declaration '' definition 'j'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/walg.c:387:20: style:inconclusive: Function 'walresvupdate' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/walg.c:398:17: style:inconclusive: Function 'waldirlock' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/walg.c:478:14: style:inconclusive: Function 'walinit' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] beanstalkd-1.13/walg.c:28:20: style: Variable 'e' can be declared as pointer to const [constVariablePointer] beanstalkd-1.13/walg.c:92:12: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] beanstalkd-1.13/walg.c:398:17: style: Parameter 'w' can be declared as pointer to const [constParameterPointer] diff: head beanstalkd-1.13/ct/ct.c:120:16: style:inconclusive: Function 'ctsetbytes' argument 1 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/ct/ct.c:57:21: style:inconclusive: Function 'ctlogpn' argument 1 names different: declaration '' definition 'p'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/ct/ct.c:57:28: style:inconclusive: Function 'ctlogpn' argument 2 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/ct/ct.c:57:43: style:inconclusive: Function 'ctlogpn' argument 3 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:110:17: style:inconclusive: Function 'filermjob' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:110:25: style:inconclusive: Function 'filermjob' argument 2 names different: declaration '' definition 'j'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:128:16: style:inconclusive: Function 'fileread' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:157:15: style:inconclusive: Function 'readrec' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:157:23: style:inconclusive: Function 'readrec' argument 2 names different: declaration '' definition 'l'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:157:31: style:inconclusive: Function 'readrec' argument 3 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:288:16: style:inconclusive: Function 'readrec5' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:288:24: style:inconclusive: Function 'readrec5' argument 2 names different: declaration '' definition 'l'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:288:32: style:inconclusive: Function 'readrec5' argument 3 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:422:16: style:inconclusive: Function 'readfull' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:422:25: style:inconclusive: Function 'readfull' argument 2 names different: declaration '' definition 'c'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:422:32: style:inconclusive: Function 'readfull' argument 3 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:422:40: style:inconclusive: Function 'readfull' argument 4 names different: declaration '' definition 'err'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:422:51: style:inconclusive: Function 'readfull' argument 5 names different: declaration '' definition 'desc'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:442:15: style:inconclusive: Function 'warnpos' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:442:22: style:inconclusive: Function 'warnpos' argument 2 names different: declaration '' definition 'adj'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:442:33: style:inconclusive: Function 'warnpos' argument 3 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:460:17: style:inconclusive: Function 'filewopen' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:522:22: style:inconclusive: Function 'filewrjobshort' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:522:30: style:inconclusive: Function 'filewrjobshort' argument 2 names different: declaration '' definition 'j'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:540:21: style:inconclusive: Function 'filewrjobfull' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:540:29: style:inconclusive: Function 'filewrjobfull' argument 2 names different: declaration '' definition 'j'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:555:18: style:inconclusive: Function 'filewclose' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:573:16: style:inconclusive: Function 'fileinit' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:573:24: style:inconclusive: Function 'fileinit' argument 2 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:573:31: style:inconclusive: Function 'fileinit' argument 3 names different: declaration '' definition 'n'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:585:15: style:inconclusive: Function 'fileadd' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:585:23: style:inconclusive: Function 'fileadd' argument 2 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:75:18: style:inconclusive: Function 'fileincref' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:83:18: style:inconclusive: Function 'filedecref' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:94:18: style:inconclusive: Function 'fileaddjob' argument 1 names different: declaration '' definition 'f'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/file.c:94:26: style:inconclusive: Function 'fileaddjob' argument 2 names different: declaration '' definition 'j'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/job.c:41:12: style:inconclusive: Function 'rehash' argument 1 names different: declaration '' definition 'is_upscaling'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/ms.c:7:50: style:inconclusive: Function 'ms_init' argument 3 names different: declaration '' definition 'onremove'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/prot.c:366:18: style:inconclusive: Function 'reply_line' argument 1 names different: declaration '' definition 'c'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/prot.c:366:25: style:inconclusive: Function 'reply_line' argument 2 names different: declaration '' definition 'state'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/prot.c:366:44: style:inconclusive: Function 'reply_line' argument 3 names different: declaration '' definition 'fmt'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/testserv.c:1991:34: style: Argument 'size' shadows outer variable [shadowVariable] beanstalkd-1.13/testserv.c:23:20: note: Shadowed variable beanstalkd-1.13/testserv.c:1991:34: note: Shadow argument head beanstalkd-1.13/testserv.c:44:24: style: Argument 'size' shadows outer variable [shadowVariable] beanstalkd-1.13/testserv.c:23:20: note: Shadowed variable beanstalkd-1.13/testserv.c:44:24: note: Shadow argument head beanstalkd-1.13/util.c:155:18: style:inconclusive: Function 'optparse' argument 1 names different: declaration '' definition 's'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/util.c:155:28: style:inconclusive: Function 'optparse' argument 2 names different: declaration '' definition 'argv'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/walg.c:179:15: style:inconclusive: Function 'walwrite' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/walg.c:179:23: style:inconclusive: Function 'walwrite' argument 2 names different: declaration '' definition 'j'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/walg.c:201:15: style:inconclusive: Function 'walmaint' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/walg.c:367:17: style:inconclusive: Function 'walresvput' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/walg.c:367:25: style:inconclusive: Function 'walresvput' argument 2 names different: declaration '' definition 'j'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/walg.c:387:20: style:inconclusive: Function 'walresvupdate' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/walg.c:398:17: style:inconclusive: Function 'waldirlock' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/walg.c:478:14: style:inconclusive: Function 'walinit' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] head beanstalkd-1.13/walg.c:54:12: style:inconclusive: Function 'walgc' argument 1 names different: declaration '' definition 'w'. [funcArgNamesDifferentUnnamed] DONE