2025-10-16 16:23 ftp://ftp.de.debian.org/debian/pool/main/f/fdm/fdm_2.2+git20250202.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --library=zlib --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: 7828eb5 (2025-10-15 23:40:19 +0200) count: 368 366 elapsed-time: 2.0 2.0 head-timing-info: old-timing-info: head results: fdm_2.2+git20250202/buffer.c:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/buffer.c:63:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/buffer.c:87:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/buffer.c:99:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/buffer.c:111:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/buffer.c:124:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/buffer.c:137:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/buffer.c:152:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/buffer.c:168:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/buffer.c:180:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/cache-op.c:34:8: style: Variable 'cmd' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/buffer.c:39:2: error: Memory leak: b.base [memleak] fdm_2.2+git20250202/buffer.c:36:2: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] fdm_2.2+git20250202/buffer.c:34:13: note: Assuming allocation function fails fdm_2.2+git20250202/buffer.c:34:13: note: Assignment 'b=xcalloc(1,sizeof(*b))', assigned value is 0 fdm_2.2+git20250202/buffer.c:36:2: note: Null pointer dereference fdm_2.2+git20250202/buffer.c:37:2: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] fdm_2.2+git20250202/buffer.c:34:13: note: Assuming allocation function fails fdm_2.2+git20250202/buffer.c:34:13: note: Assignment 'b=xcalloc(1,sizeof(*b))', assigned value is 0 fdm_2.2+git20250202/buffer.c:37:2: note: Null pointer dereference fdm_2.2+git20250202/child-deliver.c:58:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/child-fetch.c:655:22: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] fdm_2.2+git20250202/child-deliver.c:99:6: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx->udata [nullPointerOutOfMemory] fdm_2.2+git20250202/child-deliver.c:98:23: note: Assuming allocation function fails fdm_2.2+git20250202/child-deliver.c:98:23: note: Assignment 'dctx->udata=xmalloc(sizeof(*dctx->udata))', assigned value is 0 fdm_2.2+git20250202/child-deliver.c:99:6: note: Null pointer dereference fdm_2.2+git20250202/child.c:55:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/child.c:110:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/child.c:113:2: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] fdm_2.2+git20250202/child.c:112:17: note: Assuming allocation function fails fdm_2.2+git20250202/child.c:112:17: note: Assignment 'child=xcalloc(1,sizeof(*child))', assigned value is 0 fdm_2.2+git20250202/child.c:113:2: note: Null pointer dereference fdm_2.2+git20250202/child.c:114:2: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] fdm_2.2+git20250202/child.c:112:17: note: Assuming allocation function fails fdm_2.2+git20250202/child.c:112:17: note: Assignment 'child=xcalloc(1,sizeof(*child))', assigned value is 0 fdm_2.2+git20250202/child.c:114:2: note: Null pointer dereference fdm_2.2+git20250202/child.c:115:2: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] fdm_2.2+git20250202/child.c:112:17: note: Assuming allocation function fails fdm_2.2+git20250202/child.c:112:17: note: Assignment 'child=xcalloc(1,sizeof(*child))', assigned value is 0 fdm_2.2+git20250202/child.c:115:2: note: Null pointer dereference fdm_2.2+git20250202/child.c:116:2: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] fdm_2.2+git20250202/child.c:112:17: note: Assuming allocation function fails fdm_2.2+git20250202/child.c:112:17: note: Assignment 'child=xcalloc(1,sizeof(*child))', assigned value is 0 fdm_2.2+git20250202/child.c:116:2: note: Null pointer dereference fdm_2.2+git20250202/child.c:118:7: warning: If memory allocation fails, then there is a possible null pointer dereference: child [nullPointerOutOfMemory] fdm_2.2+git20250202/child.c:112:17: note: Assuming allocation function fails fdm_2.2+git20250202/child.c:112:17: note: Assignment 'child=xcalloc(1,sizeof(*child))', assigned value is 0 fdm_2.2+git20250202/child.c:118:7: note: Null pointer dereference fdm_2.2+git20250202/cleanup.c:42:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/cleanup.c:56:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/cleanup.c:73:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_BLOCK [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/cleanup.c:98:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/cleanup.c:124:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/cleanup.c:101:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cent [nullPointerOutOfMemory] fdm_2.2+git20250202/cleanup.c:100:16: note: Assuming allocation function fails fdm_2.2+git20250202/cleanup.c:100:16: note: Assignment 'cent=xmalloc(sizeof(*cent))', assigned value is 0 fdm_2.2+git20250202/cleanup.c:101:2: note: Null pointer dereference fdm_2.2+git20250202/cleanup.c:49:19: style: Variable 'cent' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/command.c:62:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/command.c:233:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/compat/strtonum.c:43:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/command.c:44:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] fdm_2.2+git20250202/command.c:43:15: note: Assuming allocation function fails fdm_2.2+git20250202/command.c:43:15: note: Assignment 'cmd=xmalloc(sizeof(*cmd))', assigned value is 0 fdm_2.2+git20250202/command.c:44:2: note: Null pointer dereference fdm_2.2+git20250202/command.c:45:2: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] fdm_2.2+git20250202/command.c:43:15: note: Assuming allocation function fails fdm_2.2+git20250202/command.c:43:15: note: Assignment 'cmd=xmalloc(sizeof(*cmd))', assigned value is 0 fdm_2.2+git20250202/command.c:45:2: note: Null pointer dereference fdm_2.2+git20250202/connect.c:64:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/connect.c:104:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEN_DNS [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/connect.c:134:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable X509_V_OK [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/connect.c:194:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NI_MAXHOST [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/connect.c:335:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/connect.c:575:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSL_OP_ALL [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/connect.c:660:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PF_UNSPEC [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/connect.c:717:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/db-tdb.c:42:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/db-tdb.c:72:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TDB_REPLACE [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/db-tdb.c:132:19: style: Variable 'lim' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/compat/base64.c:197:8: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/attach.c:145:9: warning: If memory allocation fails, then there is a possible null pointer dereference: type [nullPointerOutOfMemory] fdm_2.2+git20250202/attach.c:144:16: note: Assuming allocation function fails fdm_2.2+git20250202/attach.c:144:16: note: Assignment 'type=xmalloc(ptr-hdr+1)', assigned value is 0 fdm_2.2+git20250202/attach.c:145:9: note: Null pointer dereference fdm_2.2+git20250202/attach.c:146:2: warning: If memory allocation fails, then there is a possible null pointer dereference: type [nullPointerOutOfMemory] fdm_2.2+git20250202/attach.c:144:16: note: Assuming allocation function fails fdm_2.2+git20250202/attach.c:144:16: note: Assignment 'type=xmalloc(ptr-hdr+1)', assigned value is 0 fdm_2.2+git20250202/attach.c:146:2: note: Null pointer dereference fdm_2.2+git20250202/attach.c:249:9: warning: If memory allocation fails, then there is a possible null pointer dereference: atr [nullPointerOutOfMemory] fdm_2.2+git20250202/attach.c:248:15: note: Assuming allocation function fails fdm_2.2+git20250202/attach.c:248:15: note: Assignment 'atr=xmalloc(sizeof(*atr))', assigned value is 0 fdm_2.2+git20250202/attach.c:249:9: note: Null pointer dereference fdm_2.2+git20250202/attach.c:308:9: warning: If memory allocation fails, then there is a possible null pointer dereference: atr [nullPointerOutOfMemory] fdm_2.2+git20250202/attach.c:307:15: note: Assuming allocation function fails fdm_2.2+git20250202/attach.c:307:15: note: Assignment 'atr=xmalloc(sizeof(*atr))', assigned value is 0 fdm_2.2+git20250202/attach.c:308:9: note: Null pointer dereference fdm_2.2+git20250202/attach.c:111:26: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/connect.c:362:7: portability: Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. [prohibitedgetservbynameCalled] fdm_2.2+git20250202/connect.c:726:3: error: Resource leak: s [resourceLeak] fdm_2.2+git20250202/connect.c:291:2: error: Memory leak: pr.server [memleak] fdm_2.2+git20250202/connect.c:247:2: warning: If memory allocation fails, then there is a possible null pointer dereference: pr [nullPointerOutOfMemory] fdm_2.2+git20250202/connect.c:246:14: note: Assuming allocation function fails fdm_2.2+git20250202/connect.c:246:14: note: Assignment 'pr=xcalloc(1,sizeof(*pr))', assigned value is 0 fdm_2.2+git20250202/connect.c:247:2: note: Null pointer dereference fdm_2.2+git20250202/connect.c:248:2: warning: If memory allocation fails, then there is a possible null pointer dereference: pr [nullPointerOutOfMemory] fdm_2.2+git20250202/connect.c:246:14: note: Assuming allocation function fails fdm_2.2+git20250202/connect.c:246:14: note: Assignment 'pr=xcalloc(1,sizeof(*pr))', assigned value is 0 fdm_2.2+git20250202/connect.c:248:2: note: Null pointer dereference fdm_2.2+git20250202/connect.c:249:2: warning: If memory allocation fails, then there is a possible null pointer dereference: pr [nullPointerOutOfMemory] fdm_2.2+git20250202/connect.c:246:14: note: Assuming allocation function fails fdm_2.2+git20250202/connect.c:246:14: note: Assignment 'pr=xcalloc(1,sizeof(*pr))', assigned value is 0 fdm_2.2+git20250202/connect.c:249:2: note: Null pointer dereference fdm_2.2+git20250202/connect.c:89:23: style: Parameter 'host' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/connect.c:89:35: style: Parameter 'fqdn' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/connect.c:226:5: style: Variable 'proxyent' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/connect.c:356:15: style: Parameter 'port' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/connect.c:358:18: style: Variable 'sv' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/connect.c:378:19: style: Parameter 'pr' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/connect.c:526:19: style: Parameter 'pr' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/deliver-maildir.c:57:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXHOSTNAMELEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/deliver-maildir.c:98:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/deliver-maildir.c:146:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/deliver-mbox.c:53:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/deliver-mbox.c:105:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/deliver-mbox.c:72:24: style: Variable 'lptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/deliver-stdout.c:45:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/deliver-stdout.c:41:17: style: Variable 'm' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/fdm.c:415:30: error: There is an unknown macro here somewhere. Configuration is required. If VERSION is a macro then please configure it. [unknownMacro] fdm_2.2+git20250202/fetch-imap.c:81:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-imappipe.c:55:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPIPE [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-imappipe.c:70:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPIPE [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-imappipe.c:111:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-maildir.c:92:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-maildir.c:156:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-maildir.c:216:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-maildir.c:337:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-mbox.c:68:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-mbox.c:94:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-mbox.c:126:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-mbox.c:317:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-mbox.c:433:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-pop3.c:74:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-nntp.c:191:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-nntp.c:269:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-nntp.c:328:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-nntp.c:381:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-nntp.c:483:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ignore [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-maildir.c:82:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data->paths [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-maildir.c:81:23: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-maildir.c:81:23: note: Assignment 'data->paths=xmalloc(sizeof(*data->paths))', assigned value is 0 fdm_2.2+git20250202/fetch-maildir.c:82:2: note: Null pointer dereference fdm_2.2+git20250202/fetch-maildir.c:402:10: warning: If memory allocation fails, then there is a possible null pointer dereference: aux [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-maildir.c:401:15: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-maildir.c:401:15: note: Assignment 'aux=xmalloc(sizeof(*aux))', assigned value is 0 fdm_2.2+git20250202/fetch-maildir.c:402:10: note: Null pointer dereference fdm_2.2+git20250202/fetch-maildir.c:211:29: style: Variable 'aux' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/fetch-maildir.c:242:29: style: Variable 'data' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/fetch-pop3pipe.c:55:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EPIPE [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-pop3pipe.c:96:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-stdin.c:66:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-stdin.c:113:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-stdin.c:52:42: style: Parameter 'a' can be declared as pointer to const. However it seems that 'fetch_stdin_abort' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fdm_2.2+git20250202/fetch-stdin.c:45:2: note: You might need to cast the function pointer here fdm_2.2+git20250202/fetch-stdin.c:52:42: note: Parameter 'a' can be declared as pointer to const fdm_2.2+git20250202/fetch-stdin.c:145:47: style: Parameter 'a' can be declared as pointer to const. However it seems that 'fetch_stdin_state_exit' is a callback function, if 'a' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fdm_2.2+git20250202/fetch-stdin.c:132:16: note: You might need to cast the function pointer here fdm_2.2+git20250202/fetch-stdin.c:145:47: note: Parameter 'a' can be declared as pointer to const fdm_2.2+git20250202/fetch-stdin.c:145:75: style: Parameter 'fctx' can be declared as pointer to const. However it seems that 'fetch_stdin_state_exit' is a callback function, if 'fctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fdm_2.2+git20250202/fetch-stdin.c:132:16: note: You might need to cast the function pointer here fdm_2.2+git20250202/fetch-stdin.c:145:75: note: Parameter 'fctx' can be declared as pointer to const fdm_2.2+git20250202/fetch-nntp.c:210:13: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-nntp.c:209:17: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-nntp.c:209:17: note: Assignment 'name=xmalloc(namelen+1)', assigned value is 0 fdm_2.2+git20250202/fetch-nntp.c:210:13: note: Null pointer dereference fdm_2.2+git20250202/fetch-nntp.c:220:13: warning: If memory allocation fails, then there is a possible null pointer dereference: id [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-nntp.c:219:15: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-nntp.c:219:15: note: Assignment 'id=xmalloc(idlen+1)', assigned value is 0 fdm_2.2+git20250202/fetch-nntp.c:220:13: note: Null pointer dereference fdm_2.2+git20250202/fetch-nntp.c:378:3: warning: If memory allocation fails, then there is a possible null pointer dereference: group [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-nntp.c:377:18: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-nntp.c:377:18: note: Assignment 'group=xcalloc(1,sizeof(*group))', assigned value is 0 fdm_2.2+git20250202/fetch-nntp.c:378:3: note: Null pointer dereference fdm_2.2+git20250202/fetch-nntp.c:379:3: warning: If memory allocation fails, then there is a possible null pointer dereference: group [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-nntp.c:377:18: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-nntp.c:377:18: note: Assignment 'group=xcalloc(1,sizeof(*group))', assigned value is 0 fdm_2.2+git20250202/fetch-nntp.c:379:3: note: Null pointer dereference fdm_2.2+git20250202/fetch-nntp.c:380:3: warning: If memory allocation fails, then there is a possible null pointer dereference: group [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-nntp.c:377:18: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-nntp.c:377:18: note: Assignment 'group=xcalloc(1,sizeof(*group))', assigned value is 0 fdm_2.2+git20250202/fetch-nntp.c:380:3: note: Null pointer dereference fdm_2.2+git20250202/file.c:52:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/file.c:63:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/file.c:88:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/file.c:109:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCK_EX [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/file.c:150:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/file.c:162:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/file.c:200:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/file.c:221:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/file.c:261:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/file.c:282:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_IRWXU [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/file.c:339:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/fetch-nntp.c:155:27: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/fetch-nntp.c:157:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/fetch-nntp.c:157:14: style: Variable 'ptr2' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/fetch-nntp.c:268:27: style: Variable 'group' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/fetch-nntp.c:269:10: style: Variable 'path' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/fetch-nntp.c:688:10: style: Variable 'line' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/file.c:174:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] fdm_2.2+git20250202/file.c:225:4: error: Resource leak: fd [resourceLeak] fdm_2.2+git20250202/file.c:286:35: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fdm_2.2+git20250202/file.c:286:54: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] fdm_2.2+git20250202/file.c:278:24: style: Parameter 'sb' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/fetch-mbox.c:97:4: warning: If memory allocation fails, then there is a possible null pointer dereference: fmbox [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-mbox.c:96:19: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-mbox.c:96:19: note: Assignment 'fmbox=xcalloc(1,sizeof(*fmbox))', assigned value is 0 fdm_2.2+git20250202/fetch-mbox.c:97:4: note: Null pointer dereference fdm_2.2+git20250202/fetch-mbox.c:98:4: warning: If memory allocation fails, then there is a possible null pointer dereference: fmbox [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-mbox.c:96:19: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-mbox.c:96:19: note: Assignment 'fmbox=xcalloc(1,sizeof(*fmbox))', assigned value is 0 fdm_2.2+git20250202/fetch-mbox.c:98:4: note: Null pointer dereference fdm_2.2+git20250202/fetch-mbox.c:99:4: warning: If memory allocation fails, then there is a possible null pointer dereference: fmbox [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-mbox.c:96:19: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-mbox.c:96:19: note: Assignment 'fmbox=xcalloc(1,sizeof(*fmbox))', assigned value is 0 fdm_2.2+git20250202/fetch-mbox.c:99:4: note: Null pointer dereference fdm_2.2+git20250202/fetch-mbox.c:429:2: warning: If memory allocation fails, then there is a possible null pointer dereference: aux [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-mbox.c:428:15: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-mbox.c:428:15: note: Assignment 'aux=xmalloc(sizeof(*aux))', assigned value is 0 fdm_2.2+git20250202/fetch-mbox.c:429:2: note: Null pointer dereference fdm_2.2+git20250202/fetch-mbox.c:430:2: warning: If memory allocation fails, then there is a possible null pointer dereference: aux [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-mbox.c:428:15: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-mbox.c:428:15: note: Assignment 'aux=xmalloc(sizeof(*aux))', assigned value is 0 fdm_2.2+git20250202/fetch-mbox.c:430:2: note: Null pointer dereference fdm_2.2+git20250202/fetch-mbox.c:431:2: warning: If memory allocation fails, then there is a possible null pointer dereference: aux [nullPointerOutOfMemory] fdm_2.2+git20250202/fetch-mbox.c:428:15: note: Assuming allocation function fails fdm_2.2+git20250202/fetch-mbox.c:428:15: note: Assignment 'aux=xmalloc(sizeof(*aux))', assigned value is 0 fdm_2.2+git20250202/fetch-mbox.c:431:2: note: Null pointer dereference fdm_2.2+git20250202/fetch-mbox.c:306:10: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/fetch-mbox.c:409:24: style: Variable 'last_line' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/fetch-mbox.c:409:36: style: Variable 'lptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/fetch-mbox.c:359:6: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] fdm_2.2+git20250202/io.c:61:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_GETFL [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/io.c:162:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/io.c:222:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLIN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/io.c:243:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable POLLERR [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/io.c:323:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/io.c:398:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/log.c:49:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_PID [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/imap-common.c:273:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/log.c:61:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/imap-common.c:612:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVP_MAX_MD_SIZE [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/log.c:116:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/imap-common.c:894:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/log.c:140:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/log.c:154:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_CRIT [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/log.c:166:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_INFO [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/log.c:179:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/log.c:192:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/log.c:205:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DEBUG [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/log.c:216:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/log.c:246:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/lex.c:221:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/lex.c:361:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/lex.c:446:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/lex.c:480:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/lex.c:510:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/lex.c:591:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/lex.c:643:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/log.c:238:1: error: va_list 'ap' was opened but not closed by va_end(). [va_end_missing] fdm_2.2+git20250202/log.c:249:1: error: va_list 'ap' was opened but not closed by va_end(). [va_end_missing] fdm_2.2+git20250202/io.c:56:2: warning: If memory allocation fails, then there is a possible null pointer dereference: io [nullPointerOutOfMemory] fdm_2.2+git20250202/io.c:55:14: note: Assuming allocation function fails fdm_2.2+git20250202/io.c:55:14: note: Assignment 'io=xcalloc(1,sizeof(*io))', assigned value is 0 fdm_2.2+git20250202/io.c:56:2: note: Null pointer dereference fdm_2.2+git20250202/io.c:57:2: warning: If memory allocation fails, then there is a possible null pointer dereference: io [nullPointerOutOfMemory] fdm_2.2+git20250202/io.c:55:14: note: Assuming allocation function fails fdm_2.2+git20250202/io.c:55:14: note: Assignment 'io=xcalloc(1,sizeof(*io))', assigned value is 0 fdm_2.2+git20250202/io.c:57:2: note: Null pointer dereference fdm_2.2+git20250202/io.c:58:2: warning: If memory allocation fails, then there is a possible null pointer dereference: io [nullPointerOutOfMemory] fdm_2.2+git20250202/io.c:55:14: note: Assuming allocation function fails fdm_2.2+git20250202/io.c:55:14: note: Assignment 'io=xcalloc(1,sizeof(*io))', assigned value is 0 fdm_2.2+git20250202/io.c:58:2: note: Null pointer dereference fdm_2.2+git20250202/io.c:234:45: style: Parameter 'pfd' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/io.c:523:14: style: Variable 'base' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/lookup-passwd.c:34:12: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] fdm_2.2+git20250202/lookup-passwd.c:39:13: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] fdm_2.2+git20250202/lookup-passwd.c:57:2: error: Memory leak: ud.name [memleak] fdm_2.2+git20250202/lookup-passwd.c:57:2: error: Memory leak: ud.home [memleak] fdm_2.2+git20250202/lookup-passwd.c:47:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ud [nullPointerOutOfMemory] fdm_2.2+git20250202/lookup-passwd.c:45:14: note: Assuming allocation function fails fdm_2.2+git20250202/lookup-passwd.c:45:14: note: Assignment 'ud=xmalloc(sizeof(*ud))', assigned value is 0 fdm_2.2+git20250202/lookup-passwd.c:47:2: note: Null pointer dereference fdm_2.2+git20250202/lookup-passwd.c:53:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ud [nullPointerOutOfMemory] fdm_2.2+git20250202/lookup-passwd.c:45:14: note: Assuming allocation function fails fdm_2.2+git20250202/lookup-passwd.c:45:14: note: Assignment 'ud=xmalloc(sizeof(*ud))', assigned value is 0 fdm_2.2+git20250202/lookup-passwd.c:53:2: note: Null pointer dereference fdm_2.2+git20250202/lookup-passwd.c:54:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ud [nullPointerOutOfMemory] fdm_2.2+git20250202/lookup-passwd.c:45:14: note: Assuming allocation function fails fdm_2.2+git20250202/lookup-passwd.c:45:14: note: Assignment 'ud=xmalloc(sizeof(*ud))', assigned value is 0 fdm_2.2+git20250202/lookup-passwd.c:54:2: note: Null pointer dereference fdm_2.2+git20250202/lookup-passwd.c:29:17: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/lex.c:625:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] fdm_2.2+git20250202/lex.c:560:15: note: Assuming allocation function fails fdm_2.2+git20250202/lex.c:560:15: note: Assignment 'buf=xmalloc(len+1)', assigned value is 0 fdm_2.2+git20250202/lex.c:563:27: note: Assuming condition is false fdm_2.2+git20250202/lex.c:625:2: note: Null pointer dereference fdm_2.2+git20250202/lex.c:655:2: warning: If memory allocation fails, then there is a possible null pointer dereference: parse_file [nullPointerOutOfMemory] fdm_2.2+git20250202/lex.c:654:22: note: Assuming allocation function fails fdm_2.2+git20250202/lex.c:654:22: note: Assignment 'parse_file=xmalloc(sizeof(*parse_file))', assigned value is 0 fdm_2.2+git20250202/lex.c:655:2: note: Null pointer dereference fdm_2.2+git20250202/lex.c:656:2: warning: If memory allocation fails, then there is a possible null pointer dereference: parse_file [nullPointerOutOfMemory] fdm_2.2+git20250202/lex.c:654:22: note: Assuming allocation function fails fdm_2.2+git20250202/lex.c:654:22: note: Assignment 'parse_file=xmalloc(sizeof(*parse_file))', assigned value is 0 fdm_2.2+git20250202/lex.c:656:2: note: Null pointer dereference fdm_2.2+git20250202/lex.c:657:2: warning: If memory allocation fails, then there is a possible null pointer dereference: parse_file [nullPointerOutOfMemory] fdm_2.2+git20250202/lex.c:654:22: note: Assuming allocation function fails fdm_2.2+git20250202/lex.c:654:22: note: Assignment 'parse_file=xmalloc(sizeof(*parse_file))', assigned value is 0 fdm_2.2+git20250202/lex.c:657:2: note: Null pointer dereference fdm_2.2+git20250202/io.c:664:5: style: Variable 'n' is assigned a value that is never used. [unreadVariable] fdm_2.2+git20250202/lex.c:356:16: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/lex.c:357:16: style: Variable 'macro' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/lookup.c:59:2: error: Memory leak: ue.name [memleak] fdm_2.2+git20250202/lookup.c:59:2: error: Memory leak: ue.home [memleak] fdm_2.2+git20250202/lookup.c:54:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ue [nullPointerOutOfMemory] fdm_2.2+git20250202/lookup.c:53:14: note: Assuming allocation function fails fdm_2.2+git20250202/lookup.c:53:14: note: Assignment 'ue=xmalloc(sizeof(*ue))', assigned value is 0 fdm_2.2+git20250202/lookup.c:54:2: note: Null pointer dereference fdm_2.2+git20250202/lookup.c:55:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ue [nullPointerOutOfMemory] fdm_2.2+git20250202/lookup.c:53:14: note: Assuming allocation function fails fdm_2.2+git20250202/lookup.c:53:14: note: Assignment 'ue=xmalloc(sizeof(*ue))', assigned value is 0 fdm_2.2+git20250202/lookup.c:55:2: note: Null pointer dereference fdm_2.2+git20250202/lookup.c:56:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ue [nullPointerOutOfMemory] fdm_2.2+git20250202/lookup.c:53:14: note: Assuming allocation function fails fdm_2.2+git20250202/lookup.c:53:14: note: Assignment 'ue=xmalloc(sizeof(*ue))', assigned value is 0 fdm_2.2+git20250202/lookup.c:56:2: note: Null pointer dereference fdm_2.2+git20250202/lookup.c:57:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ue [nullPointerOutOfMemory] fdm_2.2+git20250202/lookup.c:53:14: note: Assuming allocation function fails fdm_2.2+git20250202/lookup.c:53:14: note: Assignment 'ue=xmalloc(sizeof(*ue))', assigned value is 0 fdm_2.2+git20250202/lookup.c:57:2: note: Null pointer dereference fdm_2.2+git20250202/lookup.c:49:28: style: Parameter 'ud' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/imap-common.c:1188:6: warning: %llu in format string (no. 2) requires 'unsigned long long *' but the argument type is 'unsigned long *'. [invalidScanfArgType_int] fdm_2.2+git20250202/imap-common.c:1188:6: warning: %llu in format string (no. 3) requires 'unsigned long long *' but the argument type is 'unsigned long *'. [invalidScanfArgType_int] fdm_2.2+git20250202/imap-common.c:1036:2: warning: If memory allocation fails, then there is a possible null pointer dereference: aux [nullPointerOutOfMemory] fdm_2.2+git20250202/imap-common.c:1035:15: note: Assuming allocation function fails fdm_2.2+git20250202/imap-common.c:1035:15: note: Assignment 'aux=xcalloc(1,sizeof(*aux))', assigned value is 0 fdm_2.2+git20250202/imap-common.c:1036:2: note: Null pointer dereference fdm_2.2+git20250202/imap-common.c:589:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fdm_2.2+git20250202/imap-common.c:588:15: note: Assuming allocation function fails fdm_2.2+git20250202/imap-common.c:588:15: note: Assignment 'out=xcalloc(1,outlen)', assigned value is 0 fdm_2.2+git20250202/imap-common.c:589:13: note: Null pointer addition fdm_2.2+git20250202/imap-common.c:590:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] fdm_2.2+git20250202/imap-common.c:588:15: note: Assuming allocation function fails fdm_2.2+git20250202/imap-common.c:588:15: note: Assignment 'out=xcalloc(1,outlen)', assigned value is 0 fdm_2.2+git20250202/imap-common.c:590:13: note: Null pointer addition fdm_2.2+git20250202/imap-common.c:119:17: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/imap-common.c:121:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/imap-common.c:133:15: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/imap-common.c:135:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/imap-common.c:152:26: style: Variable 'data' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/imap-common.c:300:26: style: Variable 'data' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/imap-common.c:571:26: style: Variable 'data' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/imap-common.c:572:17: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/imap-common.c:611:17: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/imap-common.c:1017:17: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/imap-common.c:1126:26: style: Variable 'data' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/imap-common.c:1165:26: style: Variable 'data' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/mail-time.c:36:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fdm_2.2+git20250202/mail-time.c:70:7: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fdm_2.2+git20250202/mail-time.c:112:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] fdm_2.2+git20250202/mail-time.c:107:13: note: Assuming allocation function fails fdm_2.2+git20250202/mail-time.c:107:13: note: Assignment 's=xmalloc(len+1)', assigned value is 0 fdm_2.2+git20250202/mail-time.c:111:8: note: Assignment 'ptr=s', assigned value is 0 fdm_2.2+git20250202/mail-time.c:112:10: note: Null pointer dereference fdm_2.2+git20250202/mail-time.c:33:18: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/mail-time.c:56:13: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/mail-time.c:97:28: style: Variable 'hdr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/mail-state.c:74:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/mail-state.c:335:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/mail-state.c:517:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/mail.c:139:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/mail.c:330:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FNM_CASEFOLD [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/mail.c:576:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/match-age.c:39:25: style: Variable 'data' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/match-all.c:36:41: style: Parameter 'mctx' can be declared as pointer to const. However it seems that 'match_all_match' is a callback function, if 'mctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fdm_2.2+git20250202/match-all.c:31:2: note: You might need to cast the function pointer here fdm_2.2+git20250202/match-all.c:36:41: note: Parameter 'mctx' can be declared as pointer to const fdm_2.2+git20250202/match-all.c:36:71: style: Parameter 'ei' can be declared as pointer to const. However it seems that 'match_all_match' is a callback function, if 'ei' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fdm_2.2+git20250202/match-all.c:31:2: note: You might need to cast the function pointer here fdm_2.2+git20250202/match-all.c:36:71: note: Parameter 'ei' can be declared as pointer to const fdm_2.2+git20250202/match-attachment.c:56:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATTACHOP_COUNT [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/mail-state.c:334:3: warning: If memory allocation fails, then there is a possible null pointer dereference: users [nullPointerOutOfMemory] fdm_2.2+git20250202/mail-state.c:333:18: note: Assuming allocation function fails fdm_2.2+git20250202/mail-state.c:333:18: note: Assignment 'users=xmalloc(sizeof(*users))', assigned value is 0 fdm_2.2+git20250202/mail-state.c:334:3: note: Null pointer dereference fdm_2.2+git20250202/mail-state.c:335:3: warning: If memory allocation fails, then there is a possible null pointer dereference: users [nullPointerOutOfMemory] fdm_2.2+git20250202/mail-state.c:333:18: note: Assuming allocation function fails fdm_2.2+git20250202/mail-state.c:333:18: note: Assignment 'users=xmalloc(sizeof(*users))', assigned value is 0 fdm_2.2+git20250202/mail-state.c:335:3: note: Null pointer dereference fdm_2.2+git20250202/mail-state.c:335:3: warning: If memory allocation fails, then there is a possible null pointer dereference: users [nullPointerOutOfMemory] fdm_2.2+git20250202/mail-state.c:333:18: note: Assuming allocation function fails fdm_2.2+git20250202/mail-state.c:333:18: note: Assignment 'users=xmalloc(sizeof(*users))', assigned value is 0 fdm_2.2+git20250202/mail-state.c:335:3: note: Assuming condition is false fdm_2.2+git20250202/mail-state.c:335:3: note: Null pointer dereference fdm_2.2+git20250202/mail-state.c:450:4: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/mail-state.c:449:18: note: Assuming allocation function fails fdm_2.2+git20250202/mail-state.c:449:18: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/mail-state.c:450:4: note: Null pointer dereference fdm_2.2+git20250202/mail-state.c:451:4: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/mail-state.c:449:18: note: Assuming allocation function fails fdm_2.2+git20250202/mail-state.c:449:18: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/mail-state.c:451:4: note: Null pointer dereference fdm_2.2+git20250202/mail-state.c:452:4: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/mail-state.c:449:18: note: Assuming allocation function fails fdm_2.2+git20250202/mail-state.c:449:18: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/mail-state.c:452:4: note: Null pointer dereference fdm_2.2+git20250202/mail-state.c:453:4: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/mail-state.c:449:18: note: Assuming allocation function fails fdm_2.2+git20250202/mail-state.c:449:18: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/mail-state.c:453:4: note: Null pointer dereference fdm_2.2+git20250202/mail-state.c:454:4: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/mail-state.c:449:18: note: Assuming allocation function fails fdm_2.2+git20250202/mail-state.c:449:18: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/mail-state.c:454:4: note: Null pointer dereference fdm_2.2+git20250202/mail-state.c:456:4: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/mail-state.c:449:18: note: Assuming allocation function fails fdm_2.2+git20250202/mail-state.c:449:18: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/mail-state.c:456:4: note: Null pointer dereference fdm_2.2+git20250202/mail-state.c:461:4: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/mail-state.c:449:18: note: Assuming allocation function fails fdm_2.2+git20250202/mail-state.c:449:18: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/mail-state.c:461:4: note: Null pointer dereference fdm_2.2+git20250202/mail-state.c:56:47: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/mail-state.c:250:31: style: Parameter 'ei' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/mail-state.c:529:18: style: Variable 'ti' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/match-command.c:81:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/match-matched.c:36:38: style: Parameter 'mctx' can be declared as pointer to const. However it seems that 'match_matched_match' is a callback function, if 'mctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fdm_2.2+git20250202/match-matched.c:31:2: note: You might need to cast the function pointer here fdm_2.2+git20250202/match-matched.c:36:38: note: Parameter 'mctx' can be declared as pointer to const fdm_2.2+git20250202/match-matched.c:36:68: style: Parameter 'ei' can be declared as pointer to const. However it seems that 'match_matched_match' is a callback function, if 'ei' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fdm_2.2+git20250202/match-matched.c:31:2: note: You might need to cast the function pointer here fdm_2.2+git20250202/match-matched.c:36:68: note: Parameter 'ei' can be declared as pointer to const fdm_2.2+git20250202/match-size.c:38:26: style: Variable 'data' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/match-size.c:39:16: style: Variable 'm' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/match-unmatched.c:36:40: style: Parameter 'mctx' can be declared as pointer to const. However it seems that 'match_unmatched_match' is a callback function, if 'mctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fdm_2.2+git20250202/match-unmatched.c:31:2: note: You might need to cast the function pointer here fdm_2.2+git20250202/match-unmatched.c:36:40: note: Parameter 'mctx' can be declared as pointer to const fdm_2.2+git20250202/match-unmatched.c:36:70: style: Parameter 'ei' can be declared as pointer to const. However it seems that 'match_unmatched_match' is a callback function, if 'ei' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fdm_2.2+git20250202/match-unmatched.c:31:2: note: You might need to cast the function pointer here fdm_2.2+git20250202/match-unmatched.c:36:70: note: Parameter 'ei' can be declared as pointer to const fdm_2.2+git20250202/netrc.c:32:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/netrc.c:228:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/mail.c:305:10: warning: Either the condition 'len==0' is redundant or there is possible null pointer dereference: len. [nullPointerRedundantCheck] fdm_2.2+git20250202/mail.c:308:10: note: Assuming that condition 'len==0' is not redundant fdm_2.2+git20250202/mail.c:305:10: note: Null pointer dereference fdm_2.2+git20250202/mail.c:330:22: warning: If memory allocation fails, then there is a possible null pointer dereference: hdr [nullPointerOutOfMemory] fdm_2.2+git20250202/mail.c:327:17: note: Assuming allocation function fails fdm_2.2+git20250202/mail.c:327:17: note: Assignment 'hdr=xmalloc(hdrlen+1)', assigned value is 0 fdm_2.2+git20250202/mail.c:330:22: note: Null pointer dereference fdm_2.2+git20250202/mail.c:358:10: warning: Either the condition 'len==0' is redundant or there is possible null pointer dereference: len. [nullPointerRedundantCheck] fdm_2.2+git20250202/mail.c:361:10: note: Assuming that condition 'len==0' is not redundant fdm_2.2+git20250202/mail.c:358:10: note: Null pointer dereference fdm_2.2+git20250202/mail.c:445:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] fdm_2.2+git20250202/mail.c:440:15: note: Assuming allocation function fails fdm_2.2+git20250202/mail.c:440:15: note: Assignment 'hdr=xmalloc(len+1)', assigned value is 0 fdm_2.2+git20250202/mail.c:444:8: note: Assignment 'ptr=hdr', assigned value is 0 fdm_2.2+git20250202/mail.c:445:10: note: Null pointer dereference fdm_2.2+git20250202/mail.c:58:24: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/mail.c:154:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/mail.c:167:24: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/mail.c:169:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/mail.c:317:14: style: Variable 'last' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/mail.c:429:20: style: Variable 'first' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/parent-deliver.c:40:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/netrc.c:122:15: style: Condition 'found' is always true [knownConditionTrueFalse] fdm_2.2+git20250202/netrc.c:132:15: style: Condition 'found' is always true [knownConditionTrueFalse] fdm_2.2+git20250202/netrc.c:144:15: style: Condition 'found' is always true [knownConditionTrueFalse] fdm_2.2+git20250202/netrc.c:113:23: warning: Either the condition 'user!=NULL' is redundant or there is possible null pointer dereference: user. [nullPointerRedundantCheck] fdm_2.2+git20250202/netrc.c:107:13: note: Assuming that condition 'user!=NULL' is not redundant fdm_2.2+git20250202/netrc.c:113:23: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:50:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/parent-fetch.c:97:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/parent-fetch.c:60:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:59:17: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:59:17: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:60:3: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:61:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:59:17: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:59:17: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:61:3: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:77:3: warning: If memory allocation fails, then there is a possible null pointer dereference: mctx [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:76:17: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:76:17: note: Assignment 'mctx=xcalloc(1,sizeof(*mctx))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:77:3: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:78:3: warning: If memory allocation fails, then there is a possible null pointer dereference: mctx [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:76:17: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:76:17: note: Assignment 'mctx=xcalloc(1,sizeof(*mctx))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:78:3: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:105:21: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:59:17: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:59:17: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:63:40: note: Calling function 'parent_fetch_action', 3rd argument 'dctx' value is 0 fdm_2.2+git20250202/parent-fetch.c:105:21: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:133:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:133:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:134:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:134:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:135:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:135:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:135:18: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:59:17: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:59:17: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:63:40: note: Calling function 'parent_fetch_action', 3rd argument 'dctx' value is 0 fdm_2.2+git20250202/parent-fetch.c:135:18: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:136:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:136:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:137:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:137:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:138:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:138:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:139:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:139:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:140:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:140:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:141:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:141:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:142:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:132:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:142:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:153:21: warning: If memory allocation fails, then there is a possible null pointer dereference: mctx [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:76:17: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:76:17: note: Assignment 'mctx=xcalloc(1,sizeof(*mctx))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:80:37: note: Calling function 'parent_fetch_cmd', 3rd argument 'mctx' value is 0 fdm_2.2+git20250202/parent-fetch.c:153:21: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:159:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:159:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:160:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:160:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:161:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:161:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:161:18: warning: If memory allocation fails, then there is a possible null pointer dereference: mctx [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:76:17: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:76:17: note: Assignment 'mctx=xcalloc(1,sizeof(*mctx))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:80:37: note: Calling function 'parent_fetch_cmd', 3rd argument 'mctx' value is 0 fdm_2.2+git20250202/parent-fetch.c:161:18: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:162:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:162:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:163:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:163:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:164:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:164:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:165:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:165:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:166:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:166:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:167:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:167:2: note: Null pointer dereference fdm_2.2+git20250202/parent-fetch.c:168:2: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:158:16: note: Assignment 'data=xmalloc(sizeof(*data))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:168:2: note: Null pointer dereference fdm_2.2+git20250202/privsep.c:24:61: style: Parameter 'msgbuf' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/parse-fn.c:63:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/parse-fn.c:131:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/re.c:35:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/parse-fn.c:155:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MACRO_STRING [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/re.c:83:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rm_so [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/parse-fn.c:195:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/parse-fn.c:236:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/parse-fn.c:438:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ATTACHOP_ANYTYPE [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/shm-mmap.c:47:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/shm-mmap.c:77:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/shm-mmap.c:108:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/shm-mmap.c:149:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/shm-mmap.c:164:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/shm-mmap.c:179:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/shm-mmap.c:207:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/shm-mmap.c:56:24: style: Parameter 'shm' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/shm-mmap.c:141:8: style: Variable 'path' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/shm-mmap.c:175:8: style: Variable 'path' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/shm-mmap.c:192:23: style: Parameter 'shm' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/pop3-common.c:182:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/pop3-common.c:234:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/pop3-common.c:400:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MD5_DIGEST_LENGTH [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/parse-fn.c:555:7: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] fdm_2.2+git20250202/parse-fn.c:175:2: error: Memory leak: macro.value [memleak] fdm_2.2+git20250202/parse-fn.c:127:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ta [nullPointerOutOfMemory] fdm_2.2+git20250202/parse-fn.c:126:14: note: Assuming allocation function fails fdm_2.2+git20250202/parse-fn.c:126:14: note: Assignment 'ta=xmalloc(sizeof(*ta))', assigned value is 0 fdm_2.2+git20250202/parse-fn.c:127:2: note: Null pointer dereference fdm_2.2+git20250202/parse-fn.c:151:10: warning: If memory allocation fails, then there is a possible null pointer dereference: macro [nullPointerOutOfMemory] fdm_2.2+git20250202/parse-fn.c:150:17: note: Assuming allocation function fails fdm_2.2+git20250202/parse-fn.c:150:17: note: Assignment 'macro=xmalloc(sizeof(*macro))', assigned value is 0 fdm_2.2+git20250202/parse-fn.c:151:10: note: Null pointer dereference fdm_2.2+git20250202/parse-fn.c:646:3: warning: If memory allocation fails, then there is a possible null pointer dereference: sbuf [nullPointerOutOfMemory] fdm_2.2+git20250202/parse-fn.c:644:16: note: Assuming allocation function fails fdm_2.2+git20250202/parse-fn.c:644:16: note: Assignment 'sbuf=xmalloc(slen)', assigned value is 0 fdm_2.2+git20250202/parse-fn.c:646:3: note: Null pointer dereference fdm_2.2+git20250202/replace.c:141:12: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] fdm_2.2+git20250202/parse-fn.c:84:20: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/parse-fn.c:96:21: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/parse-fn.c:98:18: style: Variable 'a' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/replace.c:104:18: style: Variable 'sbe' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/parse-fn.c:109:19: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/replace.c:116:18: style: Variable 'sbe' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/replace.c:206:32: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] fdm_2.2+git20250202/replace.c:208:13: style: Variable 'rm' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/replace.c:225:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/strb.c:98:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIZE_MAX [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/strb.c:160:10: style: Variable 'sbep' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/timer.c:53:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/timer.c:83:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ITIMER_REAL [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/xmalloc.c:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/xmalloc.c:55:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/xmalloc.c:90:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/xmalloc.c:104:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/xmalloc.c:117:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/xmalloc.c:129:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/xmalloc.c:153:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/xmalloc.c:176:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/xmalloc.c:192:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/xmalloc.c:201:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] fdm_2.2+git20250202/xmalloc.c:81:17: error: Returning pointer to local variable 'ptr' that will be invalid when returning. [returnDanglingLifetime] fdm_2.2+git20250202/xmalloc.c:81:18: note: Passed to 'strncpy'. fdm_2.2+git20250202/xmalloc.c:75:8: note: Variable created here. fdm_2.2+git20250202/xmalloc.c:81:17: note: Returning pointer to local variable 'ptr' that will be invalid when returning. fdm_2.2+git20250202/pop3-common.c:74:1: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: elm [nullPointerOutOfMemory] fdm_2.2+git20250202/pop3-common.c:208:16: note: Assuming allocation function fails fdm_2.2+git20250202/pop3-common.c:208:16: note: Assignment 'aux=xcalloc(1,sizeof(*aux))', assigned value is 0 fdm_2.2+git20250202/pop3-common.c:210:3: note: Calling function 'fetch_pop3_tree_RB_INSERT', 2nd argument 'aux' value is 0 fdm_2.2+git20250202/pop3-common.c:74:1: note: Null pointer dereference fdm_2.2+git20250202/pop3-common.c:202:13: warning: If memory allocation fails, then there is a possible null pointer dereference: uid [nullPointerOutOfMemory] fdm_2.2+git20250202/pop3-common.c:201:16: note: Assuming allocation function fails fdm_2.2+git20250202/pop3-common.c:201:16: note: Assignment 'uid=xmalloc(uidlen+1)', assigned value is 0 fdm_2.2+git20250202/pop3-common.c:202:13: note: Null pointer dereference fdm_2.2+git20250202/pop3-common.c:209:3: warning: If memory allocation fails, then there is a possible null pointer dereference: aux [nullPointerOutOfMemory] fdm_2.2+git20250202/pop3-common.c:208:16: note: Assuming allocation function fails fdm_2.2+git20250202/pop3-common.c:208:16: note: Assignment 'aux=xcalloc(1,sizeof(*aux))', assigned value is 0 fdm_2.2+git20250202/pop3-common.c:209:3: note: Null pointer dereference fdm_2.2+git20250202/pop3-common.c:546:4: warning: If memory allocation fails, then there is a possible null pointer dereference: aux [nullPointerOutOfMemory] fdm_2.2+git20250202/pop3-common.c:545:17: note: Assuming allocation function fails fdm_2.2+git20250202/pop3-common.c:545:17: note: Assignment 'aux=xcalloc(1,sizeof(*aux))', assigned value is 0 fdm_2.2+git20250202/pop3-common.c:546:4: note: Null pointer dereference fdm_2.2+git20250202/pop3-common.c:547:4: warning: If memory allocation fails, then there is a possible null pointer dereference: aux [nullPointerOutOfMemory] fdm_2.2+git20250202/pop3-common.c:545:17: note: Assuming allocation function fails fdm_2.2+git20250202/pop3-common.c:545:17: note: Assignment 'aux=xcalloc(1,sizeof(*aux))', assigned value is 0 fdm_2.2+git20250202/pop3-common.c:547:4: note: Null pointer dereference fdm_2.2+git20250202/pop3-common.c:548:4: warning: If memory allocation fails, then there is a possible null pointer dereference: aux [nullPointerOutOfMemory] fdm_2.2+git20250202/pop3-common.c:545:17: note: Assuming allocation function fails fdm_2.2+git20250202/pop3-common.c:545:17: note: Assignment 'aux=xcalloc(1,sizeof(*aux))', assigned value is 0 fdm_2.2+git20250202/pop3-common.c:548:4: note: Null pointer dereference fdm_2.2+git20250202/pop3-common.c:625:3: warning: If memory allocation fails, then there is a possible null pointer dereference: aux [nullPointerOutOfMemory] fdm_2.2+git20250202/pop3-common.c:624:16: note: Assuming allocation function fails fdm_2.2+git20250202/pop3-common.c:624:16: note: Assignment 'aux=xcalloc(1,sizeof(*aux))', assigned value is 0 fdm_2.2+git20250202/pop3-common.c:625:3: note: Null pointer dereference fdm_2.2+git20250202/pop3-common.c:626:3: warning: If memory allocation fails, then there is a possible null pointer dereference: aux [nullPointerOutOfMemory] fdm_2.2+git20250202/pop3-common.c:624:16: note: Assuming allocation function fails fdm_2.2+git20250202/pop3-common.c:624:16: note: Assignment 'aux=xcalloc(1,sizeof(*aux))', assigned value is 0 fdm_2.2+git20250202/pop3-common.c:626:3: note: Null pointer dereference fdm_2.2+git20250202/pop3-common.c:720:4: warning: If memory allocation fails, then there is a possible null pointer dereference: aux2 [nullPointerOutOfMemory] fdm_2.2+git20250202/pop3-common.c:719:18: note: Assuming allocation function fails fdm_2.2+git20250202/pop3-common.c:719:18: note: Assignment 'aux2=xcalloc(1,sizeof(*aux2))', assigned value is 0 fdm_2.2+git20250202/pop3-common.c:720:4: note: Null pointer dereference fdm_2.2+git20250202/pop3-common.c:721:4: warning: If memory allocation fails, then there is a possible null pointer dereference: aux2 [nullPointerOutOfMemory] fdm_2.2+git20250202/pop3-common.c:719:18: note: Assuming allocation function fails fdm_2.2+git20250202/pop3-common.c:719:18: note: Assignment 'aux2=xcalloc(1,sizeof(*aux2))', assigned value is 0 fdm_2.2+git20250202/pop3-common.c:721:4: note: Null pointer dereference fdm_2.2+git20250202/pop3-common.c:726:21: warning: If memory allocation fails, then there is a possible null pointer dereference: aux2 [nullPointerOutOfMemory] fdm_2.2+git20250202/pop3-common.c:719:18: note: Assuming allocation function fails fdm_2.2+git20250202/pop3-common.c:719:18: note: Assignment 'aux2=xcalloc(1,sizeof(*aux2))', assigned value is 0 fdm_2.2+git20250202/pop3-common.c:726:21: note: Null pointer dereference fdm_2.2+git20250202/pop3-common.c:734:5: warning: If memory allocation fails, then there is a possible null pointer dereference: aux2 [nullPointerOutOfMemory] fdm_2.2+git20250202/pop3-common.c:719:18: note: Assuming allocation function fails fdm_2.2+git20250202/pop3-common.c:719:18: note: Assignment 'aux2=xcalloc(1,sizeof(*aux2))', assigned value is 0 fdm_2.2+git20250202/pop3-common.c:726:19: note: Assuming condition is false fdm_2.2+git20250202/pop3-common.c:734:5: note: Null pointer dereference fdm_2.2+git20250202/pop3-common.c:103:34: style: Parameter 'aux1' can be declared as pointer to const. However it seems that 'pop3_cmp' is a callback function, if 'aux1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fdm_2.2+git20250202/pop3-common.c:74:1: note: You might need to cast the function pointer here fdm_2.2+git20250202/pop3-common.c:103:34: note: Parameter 'aux1' can be declared as pointer to const fdm_2.2+git20250202/pop3-common.c:103:64: style: Parameter 'aux2' can be declared as pointer to const. However it seems that 'pop3_cmp' is a callback function, if 'aux2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] fdm_2.2+git20250202/pop3-common.c:74:1: note: You might need to cast the function pointer here fdm_2.2+git20250202/pop3-common.c:103:64: note: Parameter 'aux2' can be declared as pointer to const fdm_2.2+git20250202/pop3-common.c:234:10: style: Variable 'path' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/pop3-common.c:333:26: style: Variable 'data' can be declared as pointer to const [constVariablePointer] fdm_2.2+git20250202/pop3-common.c:588:17: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] diff: head fdm_2.2+git20250202/connect.c:226:5: style: Variable 'proxyent' can be declared as pointer to const [constVariablePointer] 2.18.0 fdm_2.2+git20250202/fetch-nntp.c:135:11: warning: Uninitialized variable: *codep [uninitvar] 2.18.0 fdm_2.2+git20250202/parent-fetch.c:135:18: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:59:17: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:59:17: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:63:40: note: Calling function 'parent_fetch_action', 3rd argument 'dctx' value is 0 fdm_2.2+git20250202/parent-fetch.c:116:24: note: Assuming condition is false fdm_2.2+git20250202/parent-fetch.c:135:18: note: Null pointer dereference head fdm_2.2+git20250202/parent-fetch.c:135:18: warning: If memory allocation fails, then there is a possible null pointer dereference: dctx [nullPointerOutOfMemory] fdm_2.2+git20250202/parent-fetch.c:59:17: note: Assuming allocation function fails fdm_2.2+git20250202/parent-fetch.c:59:17: note: Assignment 'dctx=xcalloc(1,sizeof(*dctx))', assigned value is 0 fdm_2.2+git20250202/parent-fetch.c:63:40: note: Calling function 'parent_fetch_action', 3rd argument 'dctx' value is 0 fdm_2.2+git20250202/parent-fetch.c:135:18: note: Null pointer dereference head fdm_2.2+git20250202/pop3-common.c:588:17: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] head fdm_2.2+git20250202/replace.c:225:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] DONE