- Rebuild started at 11:57...
- 1>------ Rebuild All started: Project: libtirpc, Configuration: Debug x64 ------
- 1>asprintf.c
- 1>authsspi_prot.c
- 1>authunix_prot.c
- 1>auth_none.c
- 1>auth_sspi.c
- 1>auth_time.c
- 1>auth_unix.c
- 1>bindresvport.c
- 1>clnt_bcast.c
- 1>clnt_dg.c
- 1>clnt_generic.c
- 1>clnt_perror.c
- 1>clnt_raw.c
- 1>clnt_simple.c
- 1>clnt_vc.c
- 1>des_soft.c
- 1>epoll_sub.c
- 1>getnetconfig.c
- 1>getnetpath.c
- 1>getpeereid.c
- 1>Generating Code...
- 1>Compiling...
- 1>getpublickey.c
- 1>getrpcent.c
- 1>getrpcport.c
- 1>gettimeofday.c
- 1>key_call.c
- 1>key_prot_xdr.c
- 1>mt_misc.c
- 1>netname.c
- 1>netnamer.c
- 1>pmap_clnt.c
- 1>pmap_getmaps.c
- 1>pmap_getport.c
- 1>pmap_prot.c
- 1>pmap_prot2.c
- 1>pmap_rmt.c
- 1>rpcb_clnt.c
- 1>rpcb_prot.c
- 1>rpcb_st_xdr.c
- 1>rpcdname.c
- 1>rpc_callmsg.c
- 1>Generating Code...
- 1>Compiling...
- 1>rpc_commondata.c
- 1>rpc_dtablesize.c
- 1>rpc_generic.c
- 1>rpc_prot.c
- 1>rpc_soc.c
- 1>rtime.c
- 1>svc.c
- 1>svc_auth.c
- 1>svc_auth_none.c
- 1>svc_auth_unix.c
- 1>svc_dg.c
- 1>svc_generic.c
- 1>svc_raw.c
- 1>svc_run.c
- 1>svc_simple.c
- 1>svc_vc.c
- 1>winstubs.c
- 1>wintirpc.c
- 1>xdr.c
- 1>xdr_array.c
- 1>Generating Code...
- 1>Compiling...
- 1>xdr_float.c
- 1>xdr_mem.c
- 1>xdr_rec.c
- 1>xdr_reference.c
- 1>xdr_sizeof.c
- 1>xdr_stdio.c
- 1>Generating Code...
- 1> Creating library C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\build.vc19\x64\Debug\libtirpc.lib and object C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\build.vc19\x64\Debug\libtirpc.exp
- 1>libtirpc.vcxproj -> C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\build.vc19\x64\Debug\libtirpc.dll
- 2>------ Rebuild All started: Project: nfsd, Configuration: Debug x64 ------
- 2>015d2053-dirty
- 2>..\..\daemon\acl.c(1219,41): warning : incompatible pointer types passing 'PACE_HEADER *' (aka 'struct _ACE_HEADER **') to parameter of type 'LPVOID *' (aka 'void **') [-Wincompatible-pointer-types]
- 2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um\securitybaseapi.h(750,22): message : passing argument to parameter 'pAce' here
- 2>..\..\daemon\callback_xdr.c(95,29): warning : cast from 'bool_t (*)(void)' (aka 'int (*)(void)') to 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, ...)') converts to incompatible function type [-Wcast-function-type-mismatch]
- 2>..\..\daemon\callback_xdr.c(239,34): warning : cast from 'bool_t (*)(void)' (aka 'int (*)(void)') to 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, ...)') converts to incompatible function type [-Wcast-function-type-mismatch]
- 2>..\..\daemon\ea.c(362,44): warning : variable 'prev' set but not used [-Wunused-but-set-variable]
- 2>..\..\daemon\idmap.c(569,13): warning : performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
- 2>..\..\daemon\idmap.c(38,29): message : expanded from macro 'PTR2UINT'
- 2>..\..\daemon\util.h(55,61): message : expanded from macro 'PTR2PTRDIFF_T'
- 2>..\..\daemon\idmap.c(777,28): warning : performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
- 2>..\..\daemon\idmap.c(36,30): message : expanded from macro 'PTR2UID_T'
- 2>..\..\daemon\util.h(55,61): message : expanded from macro 'PTR2PTRDIFF_T'
- 2>..\..\daemon\idmap.c(891,28): warning : performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
- 2>..\..\daemon\idmap.c(37,30): message : expanded from macro 'PTR2GID_T'
- 2>..\..\daemon\util.h(55,61): message : expanded from macro 'PTR2PTRDIFF_T'
- 2>..\..\daemon\idmap.c(1114,23): warning : performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
- 2>..\..\daemon\idmap.c(36,30): message : expanded from macro 'PTR2UID_T'
- 2>..\..\daemon\util.h(55,61): message : expanded from macro 'PTR2PTRDIFF_T'
- 2>..\..\daemon\idmap.c(1252,23): warning : performing pointer subtraction with a null pointer has undefined behavior [-Wnull-pointer-subtraction]
- 2>..\..\daemon\idmap.c(37,30): message : expanded from macro 'PTR2GID_T'
- 2>..\..\daemon\util.h(55,61): message : expanded from macro 'PTR2PTRDIFF_T'
- 2>..\..\daemon\nfs41_ops.c(1523,42): warning : '&&' within '||' [-Wlogical-op-parentheses]
- 2>..\..\daemon\nfs41_ops.c(1523,42): message : place parentheses around the '&&' expression to silence this warning
- 2>..\..\daemon\nfs41_rpc.c(40,22): warning : cast from 'bool_t (*)(void)' (aka 'int (*)(void)') to 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, ...)') converts to incompatible function type [-Wcast-function-type-mismatch]
- 2>..\..\libtirpc\tirpc\rpc/clnt.h(203,38): message : expanded from macro 'clnt_call'
- 2>..\..\daemon\nfs41_rpc.c(41,22): warning : cast from 'bool_t (*)(void)' (aka 'int (*)(void)') to 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, ...)') converts to incompatible function type [-Wcast-function-type-mismatch]
- 2>..\..\libtirpc\tirpc\rpc/clnt.h(204,10): message : expanded from macro 'clnt_call'
- 2>..\..\daemon\pnfs_io.c(303,12): warning : taking the absolute value of unsigned type 'unsigned int' has no effect [-Wabsolute-value]
- 2>..\..\daemon\pnfs_io.c(303,12): message : remove the call to 'abs' since unsigned values cannot be negative
- 2>..\..\daemon\pnfs_io.c(562,43): warning : variable 'total_written' set but not used [-Wunused-but-set-variable]
- 2>..\..\daemon\pnfs_layout.c(450,13): warning : 108 enumeration values not handled in switch: 'NFS4ERR_PERM', 'NFS4ERR_NOENT', 'NFS4ERR_IO'... [-Wswitch]
- 2>..\..\daemon\readdir.c(702,34): warning : comparison of integers of different signs: 'int' and 'unsigned long long' [-Wsign-compare]
- 2>C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt\stdlib.h(1282,32): message : expanded from macro 'max'
- 2>..\..\daemon\recovery.c(422,56): warning : 'memcpy' call operates on objects of type 'nfs41_delegation_state' (aka 'struct __nfs41_delegation_state') while the size is based on a different type 'nfs41_delegation_state *' (aka 'struct __nfs41_delegation_state *') [-Wsizeof-pointer-memaccess]
- 2>..\..\daemon\recovery.c(422,56): message : did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
- 2>..\..\daemon\recovery.c(494,50): warning : missing field 'args' initializer [-Wmissing-field-initializers]
- 2>..\..\daemon\recovery.c(641,50): warning : missing field 'args' initializer [-Wmissing-field-initializers]
- [1/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\accesstoken.c.
- [2/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c.
- [3/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\callback_server.c.
- [4/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\callback_xdr.c.
- [5/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\cpvparser1.c.
- [6/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.c.
- [7/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c.
- [8/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c.
- [9/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\fileinfoutil.c.
- [10/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\fsctl.c.
- [11/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\getattr.c.
- [12/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\idmap.c.
- [13/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\idmap_cygwin.c.
- [14/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lock.c.
- [15/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c.
- [16/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\mount.c.
- [17/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\namespace.c.
- [18/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\name_cache.c.
- [19/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_client.c.
- [20/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_compound.c.
- [21/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c.
- [22/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c.
- [23/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_rpc.c.
- [24/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_server.c.
- [25/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c.
- [26/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c.
- [27/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_xdr.c.
- [28/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs42_ops.c.
- [29/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs42_xdr.c.
- [30/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c.
- [31/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_debug.c.
- [32/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_device.c.
- [33/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c.
- [34/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_layout.c.
- [35/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c.
- [36/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readwrite.c.
- [37/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\recovery.c.
- [38/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\service.c.
- [39/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\setattr.c.
- [40/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\sid.c.
- [41/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\symlink.c.
- [42/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\upcall.c.
- [43/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\util.c.
- [44/44] Processing file C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\volume.c.
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\accesstoken.c(239,19): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 239 | (void)strcpy(out_buffers[iob], namebuffer);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\accesstoken.c:239:19: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 239 | (void)strcpy(out_buffers[iob], namebuffer);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c(272,22): warning G36456E0F: Value stored to 'status' is never read [clang-analyzer-deadcode.DeadStores]
- 272 | else status = ERROR_SUCCESS;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:272:22: note: Value stored to 'status' is never read
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c(283,22): warning G36456E0F: Value stored to 'status' is never read [clang-analyzer-deadcode.DeadStores]
- 283 | else status = ERROR_SUCCESS;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:283:22: note: Value stored to 'status' is never read
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c(931,29): warning G71A66108: The value '0' provided to the cast expression is not in the valid range of values for '_SID_NAME_USE' [clang-analyzer-optin.core.EnumCastOutOfRange]
- 931 | SID_NAME_USE sid_type = 0;
- | ^
- C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um\winnt.h:10380:14: note: enum declared here
- 10380 | typedef enum _SID_NAME_USE {
- | ~~~~~^~~~~~~~~~~~~~~
- 10381 | SidTypeUser = 1,
- | ~~~~~~~~~~~~~~~~
- 10382 | SidTypeGroup,
- | ~~~~~~~~~~~~~
- 10383 | SidTypeDomain,
- | ~~~~~~~~~~~~~~
- 10384 | SidTypeAlias,
- | ~~~~~~~~~~~~~
- 10385 | SidTypeWellKnownGroup,
- | ~~~~~~~~~~~~~~~~~~~~~~
- 10386 | SidTypeDeletedAccount,
- | ~~~~~~~~~~~~~~~~~~~~~~
- 10387 | SidTypeInvalid,
- | ~~~~~~~~~~~~~~~
- 10388 | SidTypeUnknown,
- | ~~~~~~~~~~~~~~~
- 10389 | SidTypeComputer,
- | ~~~~~~~~~~~~~~~~
- 10390 | SidTypeLabel,
- | ~~~~~~~~~~~~~
- 10391 | SidTypeLogonSession
- | ~~~~~~~~~~~~~~~~~~~
- 10392 | } SID_NAME_USE, *PSID_NAME_USE;
- | ~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1386:5: note: Assuming 'g_debug_level' is < 1
- 1386 | DPRINTF(ACLLVL1, ("--> handle_setacl(state->path.path='%s')\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1386:5: note: Taking false branch
- 1386 | DPRINTF(ACLLVL1, ("--> handle_setacl(state->path.path='%s')\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1389:9: note: Assuming the condition is true
- 1389 | if (args->query & OWNER_SECURITY_INFORMATION) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1389:5: note: Taking true branch
- 1389 | if (args->query & OWNER_SECURITY_INFORMATION) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1390:9: note: 'g_debug_level' is < 2
- 1390 | DPRINTF(ACLLVL2, ("handle_setacl: OWNER_SECURITY_INFORMATION\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1390:9: note: Taking false branch
- 1390 | DPRINTF(ACLLVL2, ("handle_setacl: OWNER_SECURITY_INFORMATION\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1392:13: note: Assuming 'status' is not equal to 0
- 1392 | if (!status) {
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1392:9: note: Taking false branch
- 1392 | if (!status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1398:18: note: Calling 'map_sid2nfs4ace_who'
- 1398 | status = map_sid2nfs4ace_who(sid, NULL, NULL, ownerbuf,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1399 | nfs41dg->localdomain_name, NULL);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:931:29: note: The value '0' provided to the cast expression is not in the valid range of values for '_SID_NAME_USE'
- 931 | SID_NAME_USE sid_type = 0;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c(952,5): warning G36456E0F: Value stored to 'status' is never read [clang-analyzer-deadcode.DeadStores]
- 952 | status = 0;
- | ^ ~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:952:5: note: Value stored to 'status' is never read
- 952 | status = 0;
- | ^ ~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c(1040,25): warning G36456E0F: Value stored to 'status' is never read [clang-analyzer-deadcode.DeadStores]
- 1040 | status = ERROR_SUCCESS;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1040:25: note: Value stored to 'status' is never read
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c(1061,25): warning G36456E0F: Value stored to 'status' is never read [clang-analyzer-deadcode.DeadStores]
- 1061 | status = ERROR_SUCCESS;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1061:25: note: Value stored to 'status' is never read
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c(1082,17): warning G36456E0F: Value stored to 'status' is never read [clang-analyzer-deadcode.DeadStores]
- 1082 | status = ERROR_NONE_MAPPED;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1082:17: note: Value stored to 'status' is never read
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c(1200,37): warning G71A66108: The value '0' provided to the cast expression is not in the valid range of values for '_SID_NAME_USE' [clang-analyzer-optin.core.EnumCastOutOfRange]
- 1200 | SID_NAME_USE who_sid_type = 0;
- | ^
- C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um\winnt.h:10380:14: note: enum declared here
- 10380 | typedef enum _SID_NAME_USE {
- | ~~~~~^~~~~~~~~~~~~~~
- 10381 | SidTypeUser = 1,
- | ~~~~~~~~~~~~~~~~
- 10382 | SidTypeGroup,
- | ~~~~~~~~~~~~~
- 10383 | SidTypeDomain,
- | ~~~~~~~~~~~~~~
- 10384 | SidTypeAlias,
- | ~~~~~~~~~~~~~
- 10385 | SidTypeWellKnownGroup,
- | ~~~~~~~~~~~~~~~~~~~~~~
- 10386 | SidTypeDeletedAccount,
- | ~~~~~~~~~~~~~~~~~~~~~~
- 10387 | SidTypeInvalid,
- | ~~~~~~~~~~~~~~~
- 10388 | SidTypeUnknown,
- | ~~~~~~~~~~~~~~~
- 10389 | SidTypeComputer,
- | ~~~~~~~~~~~~~~~~
- 10390 | SidTypeLabel,
- | ~~~~~~~~~~~~~
- 10391 | SidTypeLogonSession
- | ~~~~~~~~~~~~~~~~~~~
- 10392 | } SID_NAME_USE, *PSID_NAME_USE;
- | ~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1386:5: note: Assuming 'g_debug_level' is < 1
- 1386 | DPRINTF(ACLLVL1, ("--> handle_setacl(state->path.path='%s')\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1386:5: note: Taking false branch
- 1386 | DPRINTF(ACLLVL1, ("--> handle_setacl(state->path.path='%s')\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1389:9: note: Assuming the condition is false
- 1389 | if (args->query & OWNER_SECURITY_INFORMATION) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1389:5: note: Taking false branch
- 1389 | if (args->query & OWNER_SECURITY_INFORMATION) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1411:9: note: Assuming the condition is false
- 1411 | if (args->query & GROUP_SECURITY_INFORMATION) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1411:5: note: Taking false branch
- 1411 | if (args->query & GROUP_SECURITY_INFORMATION) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1433:9: note: Assuming the condition is true
- 1433 | if (args->query & DACL_SECURITY_INFORMATION) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1433:5: note: Taking true branch
- 1433 | if (args->query & DACL_SECURITY_INFORMATION) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1436:9: note: 'g_debug_level' is < 2
- 1436 | DPRINTF(ACLLVL2, ("handle_setacl: DACL_SECURITY_INFORMATION\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1436:9: note: Taking false branch
- 1436 | DPRINTF(ACLLVL2, ("handle_setacl: DACL_SECURITY_INFORMATION\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1439:13: note: Assuming 'status' is not equal to 0
- 1439 | if (!status) {
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1439:9: note: Taking false branch
- 1439 | if (!status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1445:13: note: Assuming 'status' is not equal to 0
- 1445 | if (!status) {
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1445:9: note: Taking false branch
- 1445 | if (!status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1451:13: note: Assuming 'status' is not equal to 0
- 1451 | if (!status) {
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1451:9: note: Taking false branch
- 1451 | if (!status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1458:14: note: Assuming field 'ea_support' is 0
- 1458 | state->file.fh.superblock->ea_support?true:false,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1458:14: note: '?' condition is false
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1456:18: note: Calling 'map_dacl_2_nfs4acl'
- 1456 | status = map_dacl_2_nfs4acl(acl, sid, gsid, &nfs4_acl,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1457 | state->type,
- | ~~~~~~~~~~~~
- 1458 | state->file.fh.superblock->ea_support?true:false,
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1459 | nfs41dg->localdomain_name);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1165:9: note: Assuming 'acl' is not equal to NULL
- 1165 | if (acl == NULL) {
- | ^~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1165:5: note: Taking false branch
- 1165 | if (acl == NULL) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1200:37: note: The value '0' provided to the cast expression is not in the valid range of values for '_SID_NAME_USE'
- 1200 | SID_NAME_USE who_sid_type = 0;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c(1219,41): warning GE3DC1BEC: incompatible pointer types passing 'PACE_HEADER *' (aka 'struct _ACE_HEADER **') to parameter of type 'LPVOID *' (aka 'void **') [clang-diagnostic-incompatible-pointer-types]
- 1219 | status = GetAce(acl, win_i, &ace);
- | ^~~~
- C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um\securitybaseapi.h:750:22: note: passing argument to parameter 'pAce' here
- 750 | _Outptr_ LPVOID* pAce
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c(1407,35): warning G4E466640: The left operand of '!=' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
- 1407 | EASSERT_MSG(info.owner[0] != '\0',
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1386:5: note: Assuming 'g_debug_level' is < 1
- 1386 | DPRINTF(ACLLVL1, ("--> handle_setacl(state->path.path='%s')\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1386:5: note: Taking false branch
- 1386 | DPRINTF(ACLLVL1, ("--> handle_setacl(state->path.path='%s')\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1389:9: note: Assuming the condition is true
- 1389 | if (args->query & OWNER_SECURITY_INFORMATION) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1389:5: note: Taking true branch
- 1389 | if (args->query & OWNER_SECURITY_INFORMATION) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1390:9: note: 'g_debug_level' is < 2
- 1390 | DPRINTF(ACLLVL2, ("handle_setacl: OWNER_SECURITY_INFORMATION\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1390:9: note: Taking false branch
- 1390 | DPRINTF(ACLLVL2, ("handle_setacl: OWNER_SECURITY_INFORMATION\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1392:13: note: Assuming 'status' is not equal to 0
- 1392 | if (!status) {
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1392:9: note: Taking false branch
- 1392 | if (!status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1398:18: note: Calling 'map_sid2nfs4ace_who'
- 1398 | status = map_sid2nfs4ace_who(sid, NULL, NULL, ownerbuf,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1399 | nfs41dg->localdomain_name, NULL);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:938:5: note: 'g_debug_level' is < 2
- 938 | DPRINTF(ACLLVL2, ("--> map_sid2nfs4ace_who("
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:938:5: note: Taking false branch
- 938 | DPRINTF(ACLLVL2, ("--> map_sid2nfs4ace_who("
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:942:9: note: 'g_debug_level' is < 2
- 942 | if (DPRINTF_LEVEL_ENABLED(ACLLVL2)) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:942:5: note: Taking false branch
- 942 | if (DPRINTF_LEVEL_ENABLED(ACLLVL2)) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:953:9: note: 'owner_sid' is null
- 953 | if (owner_sid) {
- | ^~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:953:5: note: Taking false branch
- 953 | if (owner_sid) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:962:9: note: 'group_sid' is null
- 962 | if (group_sid) {
- | ^~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:962:5: note: Taking false branch
- 962 | if (group_sid) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:971:14: note: Calling 'is_well_known_sid'
- 971 | status = is_well_known_sid(sid, who_out, &sid_type);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:541:5: note: Loop condition is true. Entering loop body
- 541 | for (i = 0; i < 78; i++) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:13: note: Assuming 'status' is 0, which participates in a condition later
- 543 | if (!status) continue;
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:9: note: Taking true branch
- 543 | if (!status) continue;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:22: note: Execution continues on line 541
- 543 | if (!status) continue;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:541:5: note: Loop condition is true. Entering loop body
- 541 | for (i = 0; i < 78; i++) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:13: note: Assuming 'status' is 0, which participates in a condition later
- 543 | if (!status) continue;
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:9: note: Taking true branch
- 543 | if (!status) continue;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:22: note: Execution continues on line 541
- 543 | if (!status) continue;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:541:5: note: Loop condition is true. Entering loop body
- 541 | for (i = 0; i < 78; i++) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:13: note: Assuming 'status' is not equal to 0, which participates in a condition later
- 543 | if (!status) continue;
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:9: note: Taking false branch
- 543 | if (!status) continue;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:545:13: note: 'g_debug_level' is < 3
- 545 | DPRINTF(ACLLVL3, ("WELL_KNOWN_SID_TYPE %d\n", i));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:545:13: note: Taking false branch
- 545 | DPRINTF(ACLLVL3, ("WELL_KNOWN_SID_TYPE %d\n", i));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:546:13: note: Control jumps to the 'default' case at line 587
- 546 | switch((WELL_KNOWN_SID_TYPE)i) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:587:22: note: Returning without writing to '*who'
- 587 | default: return FALSE;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:587:22: note: Returning zero, which participates in a condition later
- 587 | default: return FALSE;
- | ^~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:971:14: note: Returning from 'is_well_known_sid'
- 971 | status = is_well_known_sid(sid, who_out, &sid_type);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:972:9: note: 'status' is 0
- 972 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:972:5: note: Taking false branch
- 972 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:983:9: note: Assuming the condition is true
- 983 | if (!ConvertSidToStringSidA(sid, &sidstr)) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:983:5: note: Taking true branch
- 983 | if (!ConvertSidToStringSidA(sid, &sidstr)) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:987:9: note: Control jumps to line 1141
- 987 | goto out;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1141:9: note: Assuming 'status' is 0, which participates in a condition later
- 1141 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1141:5: note: Taking false branch
- 1141 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1146:9: note: Assuming 'g_debug_level' is < 2
- 1146 | DPRINTF(ACLLVL2,
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1146:9: note: Taking false branch
- 1146 | DPRINTF(ACLLVL2,
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1152:13: note: 'sid_type_out' is null
- 1152 | if (sid_type_out) {
- | ^~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1152:9: note: Taking false branch
- 1152 | if (sid_type_out) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1156:9: note: Assuming 'sidstr' is null
- 1156 | if (sidstr)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1156:5: note: Taking false branch
- 1156 | if (sidstr)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1158:5: note: Returning without writing to '*who_out'
- 1158 | return status;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1158:5: note: Returning zero (loaded from 'status'), which participates in a condition later
- 1158 | return status;
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1398:18: note: Returning from 'map_sid2nfs4ace_who'
- 1398 | status = map_sid2nfs4ace_who(sid, NULL, NULL, ownerbuf,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1399 | nfs41dg->localdomain_name, NULL);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1400:13: note: 'status' is 0
- 1400 | if (status)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1400:9: note: Taking false branch
- 1400 | if (status)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1407:35: note: The left operand of '!=' is a garbage value
- 1407 | EASSERT_MSG(info.owner[0] != '\0',
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c(1429,41): warning G4E466640: The left operand of '!=' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
- 1429 | EASSERT_MSG(info.owner_group[0] != '\0',
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1386:5: note: Assuming 'g_debug_level' is < 1
- 1386 | DPRINTF(ACLLVL1, ("--> handle_setacl(state->path.path='%s')\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1386:5: note: Taking false branch
- 1386 | DPRINTF(ACLLVL1, ("--> handle_setacl(state->path.path='%s')\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1389:9: note: Assuming the condition is false
- 1389 | if (args->query & OWNER_SECURITY_INFORMATION) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1389:5: note: Taking false branch
- 1389 | if (args->query & OWNER_SECURITY_INFORMATION) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1411:9: note: Assuming the condition is true
- 1411 | if (args->query & GROUP_SECURITY_INFORMATION) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1411:5: note: Taking true branch
- 1411 | if (args->query & GROUP_SECURITY_INFORMATION) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1412:9: note: 'g_debug_level' is < 2
- 1412 | DPRINTF(ACLLVL2, ("handle_setacl: GROUP_SECURITY_INFORMATION\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1412:9: note: Taking false branch
- 1412 | DPRINTF(ACLLVL2, ("handle_setacl: GROUP_SECURITY_INFORMATION\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1414:13: note: Assuming 'status' is not equal to 0
- 1414 | if (!status) {
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1414:9: note: Taking false branch
- 1414 | if (!status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1420:18: note: Calling 'map_sid2nfs4ace_who'
- 1420 | status = map_sid2nfs4ace_who(sid, NULL, NULL, groupbuf,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1421 | nfs41dg->localdomain_name, NULL);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:938:5: note: 'g_debug_level' is < 2
- 938 | DPRINTF(ACLLVL2, ("--> map_sid2nfs4ace_who("
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:938:5: note: Taking false branch
- 938 | DPRINTF(ACLLVL2, ("--> map_sid2nfs4ace_who("
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:942:9: note: 'g_debug_level' is < 2
- 942 | if (DPRINTF_LEVEL_ENABLED(ACLLVL2)) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:942:5: note: Taking false branch
- 942 | if (DPRINTF_LEVEL_ENABLED(ACLLVL2)) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:953:9: note: 'owner_sid' is null
- 953 | if (owner_sid) {
- | ^~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:953:5: note: Taking false branch
- 953 | if (owner_sid) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:962:9: note: 'group_sid' is null
- 962 | if (group_sid) {
- | ^~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:962:5: note: Taking false branch
- 962 | if (group_sid) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:971:14: note: Calling 'is_well_known_sid'
- 971 | status = is_well_known_sid(sid, who_out, &sid_type);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:541:5: note: Loop condition is true. Entering loop body
- 541 | for (i = 0; i < 78; i++) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:13: note: Assuming 'status' is 0, which participates in a condition later
- 543 | if (!status) continue;
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:9: note: Taking true branch
- 543 | if (!status) continue;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:22: note: Execution continues on line 541
- 543 | if (!status) continue;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:541:5: note: Loop condition is true. Entering loop body
- 541 | for (i = 0; i < 78; i++) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:13: note: Assuming 'status' is 0, which participates in a condition later
- 543 | if (!status) continue;
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:9: note: Taking true branch
- 543 | if (!status) continue;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:22: note: Execution continues on line 541
- 543 | if (!status) continue;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:541:5: note: Loop condition is true. Entering loop body
- 541 | for (i = 0; i < 78; i++) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:13: note: Assuming 'status' is not equal to 0, which participates in a condition later
- 543 | if (!status) continue;
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:543:9: note: Taking false branch
- 543 | if (!status) continue;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:545:13: note: 'g_debug_level' is < 3
- 545 | DPRINTF(ACLLVL3, ("WELL_KNOWN_SID_TYPE %d\n", i));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:545:13: note: Taking false branch
- 545 | DPRINTF(ACLLVL3, ("WELL_KNOWN_SID_TYPE %d\n", i));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:546:13: note: Control jumps to the 'default' case at line 587
- 546 | switch((WELL_KNOWN_SID_TYPE)i) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:587:22: note: Returning without writing to '*who'
- 587 | default: return FALSE;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:587:22: note: Returning zero, which participates in a condition later
- 587 | default: return FALSE;
- | ^~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:971:14: note: Returning from 'is_well_known_sid'
- 971 | status = is_well_known_sid(sid, who_out, &sid_type);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:972:9: note: 'status' is 0
- 972 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:972:5: note: Taking false branch
- 972 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:983:9: note: Assuming the condition is true
- 983 | if (!ConvertSidToStringSidA(sid, &sidstr)) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:983:5: note: Taking true branch
- 983 | if (!ConvertSidToStringSidA(sid, &sidstr)) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:987:9: note: Control jumps to line 1141
- 987 | goto out;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1141:9: note: Assuming 'status' is 0, which participates in a condition later
- 1141 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1141:5: note: Taking false branch
- 1141 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1146:9: note: Assuming 'g_debug_level' is < 2
- 1146 | DPRINTF(ACLLVL2,
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1146:9: note: Taking false branch
- 1146 | DPRINTF(ACLLVL2,
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1152:13: note: 'sid_type_out' is null
- 1152 | if (sid_type_out) {
- | ^~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1152:9: note: Taking false branch
- 1152 | if (sid_type_out) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1156:9: note: Assuming 'sidstr' is null
- 1156 | if (sidstr)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1156:5: note: Taking false branch
- 1156 | if (sidstr)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1158:5: note: Returning without writing to '*who_out'
- 1158 | return status;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1158:5: note: Returning zero (loaded from 'status'), which participates in a condition later
- 1158 | return status;
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1420:18: note: Returning from 'map_sid2nfs4ace_who'
- 1420 | status = map_sid2nfs4ace_who(sid, NULL, NULL, groupbuf,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1421 | nfs41dg->localdomain_name, NULL);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1422:13: note: 'status' is 0
- 1422 | if (status)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1422:9: note: Taking false branch
- 1422 | if (status)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\acl.c:1429:41: note: The left operand of '!=' is a garbage value
- 1429 | EASSERT_MSG(info.owner_group[0] != '\0',
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\callback_xdr.c(95,29): warning GC5E5EB67: cast from 'bool_t (*)(void)' (aka 'int (*)(void)') to 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, ...)') converts to incompatible function type [clang-diagnostic-cast-function-type-mismatch]
- 95 | { PNFS_RETURN_ALL, (xdrproc_t)xdr_void },
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\callback_xdr.c(239,34): warning GC5E5EB67: cast from 'bool_t (*)(void)' (aka 'int (*)(void)') to 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, ...)') converts to incompatible function type [clang-diagnostic-cast-function-type-mismatch]
- 239 | cb_sequence_res_discrim, (xdrproc_t)xdr_void);
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.c(1119,9): warning G36456E0F: Value stored to 'p' is never read [clang-analyzer-deadcode.DeadStores]
- 1119 | p += snprintf(p, (sizeof(buf)-(p-buf)), "} ");
- | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.c:1119:9: note: Value stored to 'p' is never read
- 1119 | p += snprintf(p, (sizeof(buf)-(p-buf)), "} ");
- | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c(361,5): warning G1E1330D0: 2nd function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
- 361 | list_add_tail(&client->state.delegations, &state->client_entry);
- | ^ ~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:341:5: note: 'state' declared without an initial value
- 341 | nfs41_delegation_state *state;
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:344:9: note: Assuming field 'type' is equal to OPEN_DELEGATE_READ
- 344 | if (delegation->type != OPEN_DELEGATE_READ &&
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:344:48: note: Left side of '&&' is false
- 344 | if (delegation->type != OPEN_DELEGATE_READ &&
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:348:9: note: Assuming field 'recalled' is 0
- 348 | if (delegation->recalled) {
- | ^~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:348:5: note: Taking false branch
- 348 | if (delegation->recalled) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:354:14: note: Calling 'delegation_create'
- 354 | status = delegation_create(parent, file, delegation, &state);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:47:9: note: Assuming 'state' is equal to NULL
- 47 | if (state == NULL) {
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:47:5: note: Taking true branch
- 47 | if (state == NULL) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:49:9: note: Control jumps to line 69
- 49 | goto out;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:69:5: note: Returning without writing to '*deleg_out'
- 69 | return status;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:69:5: note: Returning value (loaded from 'status'), which participates in a condition later
- 69 | return status;
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:354:14: note: Returning from 'delegation_create'
- 354 | status = delegation_create(parent, file, delegation, &state);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:355:9: note: Assuming 'status' is 0
- 355 | if (status)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:355:5: note: Taking false branch
- 355 | if (status)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\delegation.c:361:5: note: 2nd function call argument is an uninitialized value
- 361 | list_add_tail(&client->state.delegations, &state->client_entry);
- | ^ ~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c(362,44): warning G183B9D1E: variable 'prev' set but not used [clang-diagnostic-unused-but-set-variable]
- 362 | PFILE_GET_EA_INFORMATION ea = ea_list, prev = NULL;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c(374,9): warning G36456E0F: Value stored to 'prev' is never read [clang-analyzer-deadcode.DeadStores]
- 374 | prev = ea;
- | ^ ~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:374:9: note: Value stored to 'prev' is never read
- 374 | prev = ea;
- | ^ ~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c(406,15): warning G4EBCC5AC: 1st function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
- 406 | ea_size = calculate_ea_list_length(entry_list, entry_len);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:562:9: note: Assuming 'status' is not equal to NFS4ERR_NOENT
- 562 | if (status == NFS4ERR_NOENT) { /* no named attribute directory */
- | ^~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:562:5: note: Taking false branch
- 562 | if (status == NFS4ERR_NOENT) { /* no named attribute directory */
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:568:16: note: Assuming 'status' is 0
- 568 | } else if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:568:12: note: Taking false branch
- 568 | } else if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:576:9: note: Assuming 'query' is equal to NULL
- 576 | if (query == NULL) {
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:576:5: note: Taking true branch
- 576 | if (query == NULL) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:579:18: note: Calling 'get_ea_list'
- 579 | status = get_ea_list(state, &parent, &query, &index);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:387:5: note: 'entry_list' declared without an initial value
- 387 | unsigned char *entry_list;
- | ^~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:394:9: note: Assuming the condition is false
- 394 | if (state->ea.list != INVALID_HANDLE_VALUE) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:394:5: note: Taking false branch
- 394 | if (state->ea.list != INVALID_HANDLE_VALUE) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:402:14: note: Calling 'read_entire_dir'
- 402 | status = read_entire_dir(state->session, eadir, &entry_list, &entry_len);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:272:9: note: Assuming 'buffer' is equal to NULL
- 272 | if (buffer == NULL) {
- | ^~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:272:5: note: Taking true branch
- 272 | if (buffer == NULL) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:274:9: note: Control jumps to line 327
- 274 | goto out;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:327:5: note: Returning without writing to '*buffer_out'
- 327 | return status;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:327:5: note: Returning value (loaded from 'status'), which participates in a condition later
- 327 | return status;
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:402:14: note: Returning from 'read_entire_dir'
- 402 | status = read_entire_dir(state->session, eadir, &entry_list, &entry_len);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:403:9: note: Assuming 'status' is 0
- 403 | if (status)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:403:5: note: Taking false branch
- 403 | if (status)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\ea.c:406:15: note: 1st function call argument is an uninitialized value
- 406 | ea_size = calculate_ea_list_length(entry_list, entry_len);
- | ^ ~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\fileinfoutil.c(420,11): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 420 | (void)strcpy(owner, info->owner);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\fileinfoutil.c:420:11: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 420 | (void)strcpy(owner, info->owner);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\fileinfoutil.c(421,11): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 421 | (void)strcpy(owner_group, info->owner_group);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\fileinfoutil.c:421:11: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 421 | (void)strcpy(owner_group, info->owner_group);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\fileinfoutil.c(569,19): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 569 | (void)strcpy(dest->owner, src->owner);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\fileinfoutil.c:569:19: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 569 | (void)strcpy(dest->owner, src->owner);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\fileinfoutil.c(575,19): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 575 | (void)strcpy(dest->owner_group_buf, src->owner_group_buf);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\fileinfoutil.c:575:19: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 575 | (void)strcpy(dest->owner_group_buf, src->owner_group_buf);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\idmap.c(569,13): warning GF4379D1B: performing pointer subtraction with a null pointer has undefined behavior [clang-diagnostic-null-pointer-subtraction]
- 569 | i = PTR2UINT(lookup->value);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\idmap.c:38:29: note: expanded from macro 'PTR2UINT'
- 38 | #define PTR2UINT(p) ((UINT)PTR2PTRDIFF_T(p))
- | ^~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\util.h:55:61: note: expanded from macro 'PTR2PTRDIFF_T'
- 55 | #define PTR2PTRDIFF_T(p) ((ptrdiff_t)((char *)((void *)(p)) - ((char *)0)))
- | ^ ~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\idmap.c(777,28): warning GF4379D1B: performing pointer subtraction with a null pointer has undefined behavior [clang-diagnostic-null-pointer-subtraction]
- 777 | uid_t search_uid = PTR2UID_T(lookup->value);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\idmap.c:36:30: note: expanded from macro 'PTR2UID_T'
- 36 | #define PTR2UID_T(p) ((uid_t)PTR2PTRDIFF_T(p))
- | ^~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\util.h:55:61: note: expanded from macro 'PTR2PTRDIFF_T'
- 55 | #define PTR2PTRDIFF_T(p) ((ptrdiff_t)((char *)((void *)(p)) - ((char *)0)))
- | ^ ~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\idmap.c(891,28): warning GF4379D1B: performing pointer subtraction with a null pointer has undefined behavior [clang-diagnostic-null-pointer-subtraction]
- 891 | gid_t search_gid = PTR2GID_T(lookup->value);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\idmap.c:37:30: note: expanded from macro 'PTR2GID_T'
- 37 | #define PTR2GID_T(p) ((gid_t)PTR2PTRDIFF_T(p))
- | ^~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\util.h:55:61: note: expanded from macro 'PTR2PTRDIFF_T'
- 55 | #define PTR2PTRDIFF_T(p) ((ptrdiff_t)((char *)((void *)(p)) - ((char *)0)))
- | ^ ~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\idmap.c(1114,23): warning GF4379D1B: performing pointer subtraction with a null pointer has undefined behavior [clang-diagnostic-null-pointer-subtraction]
- 1114 | const uid_t uid = PTR2UID_T(value);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\idmap.c:36:30: note: expanded from macro 'PTR2UID_T'
- 36 | #define PTR2UID_T(p) ((uid_t)PTR2PTRDIFF_T(p))
- | ^~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\util.h:55:61: note: expanded from macro 'PTR2PTRDIFF_T'
- 55 | #define PTR2PTRDIFF_T(p) ((ptrdiff_t)((char *)((void *)(p)) - ((char *)0)))
- | ^ ~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\idmap.c(1252,23): warning GF4379D1B: performing pointer subtraction with a null pointer has undefined behavior [clang-diagnostic-null-pointer-subtraction]
- 1252 | const gid_t gid = PTR2GID_T(value);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\idmap.c:37:30: note: expanded from macro 'PTR2GID_T'
- 37 | #define PTR2GID_T(p) ((gid_t)PTR2PTRDIFF_T(p))
- | ^~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\util.h:55:61: note: expanded from macro 'PTR2PTRDIFF_T'
- 55 | #define PTR2PTRDIFF_T(p) ((ptrdiff_t)((char *)((void *)(p)) - ((char *)0)))
- | ^ ~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\list.h(70,17): warning G5C0E2821: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'entry') [clang-analyzer-core.NullDereference]
- 70 | entry->prev = prev;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:268:5: note: Assuming 'g_debug_level' is < 3
- 268 | DPRINTF(SBLVL, ("--> nfs41_superblock_for_fh(fsid(%llu,%llu)))\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:268:5: note: Taking false branch
- 268 | DPRINTF(SBLVL, ("--> nfs41_superblock_for_fh(fsid(%llu,%llu)))\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:272:9: note: Assuming 'parent' is null
- 272 | if (parent && parent->superblock &&
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:272:16: note: Left side of '&&' is false
- 272 | if (parent && parent->superblock &&
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:281:18: note: Calling 'find_superblock'
- 281 | superblock = find_superblock(superblocks, fsid);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:235:12: note: Assuming 'entry' is null
- 235 | return entry ? superblock_entry(entry) : NULL;
- | ^~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:235:12: note: '?' condition is false
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:235:5: note: Returning null pointer, which participates in a condition later
- 235 | return entry ? superblock_entry(entry) : NULL;
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:281:18: note: Returning from 'find_superblock'
- 281 | superblock = find_superblock(superblocks, fsid);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:284:9: note: 'superblock' is null
- 284 | if (superblock) {
- | ^~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:284:5: note: Taking false branch
- 284 | if (superblock) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:291:9: note: Value assigned to 'superblock'
- 291 | superblock = find_superblock(superblocks, fsid);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:292:13: note: Assuming 'superblock' is null
- 292 | if (superblock) {
- | ^~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:292:9: note: Taking false branch
- 292 | if (superblock) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:297:22: note: Calling 'superblock_create'
- 297 | status = superblock_create(fsid, &superblock);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:57:5: note: Assuming 'g_debug_level' is < 3
- 57 | DPRINTF(SBLVL, ("creating superblock for fsid(%llu,%llu)\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:57:5: note: Taking false branch
- 57 | DPRINTF(SBLVL, ("creating superblock for fsid(%llu,%llu)\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:61:9: note: Assuming 'superblock' is equal to NULL
- 61 | if (superblock == NULL) {
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:61:5: note: Taking true branch
- 61 | if (superblock == NULL) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:65:9: note: Control jumps to line 73
- 65 | goto out;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:73:5: note: Returning without writing to '*superblock_out'
- 73 | return status;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:297:22: note: Returning from 'superblock_create'
- 297 | status = superblock_create(fsid, &superblock);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:298:17: note: Assuming 'status' is equal to NO_ERROR
- 298 | if (status == NO_ERROR) /* add it to the list */
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:298:13: note: Taking true branch
- 298 | if (status == NO_ERROR) /* add it to the list */
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:299:51: note: Passing null pointer value via 2nd parameter 'entry'
- 299 | list_add_tail(&superblocks->head, &superblock->entry);
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_superblock.c:299:17: note: Calling 'list_add_tail'
- 299 | list_add_tail(&superblocks->head, &superblock->entry);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\list.h:87:14: note: Passing null pointer value via 1st parameter 'entry'
- 87 | list_add(entry, head->prev, head);
- | ^~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\list.h:87:5: note: Calling 'list_add'
- 87 | list_add(entry, head->prev, head);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\list.h:70:17: note: Access to field 'prev' results in a dereference of a null pointer (loaded from variable 'entry')
- 70 | entry->prev = prev;
- | ~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c(536,39): warning G6C202045: Assigned value is garbage or undefined [clang-analyzer-core.uninitialized.Assign]
- 536 | if (session_out) *session_out = new_session;
- | ^ ~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:478:9: note: Assuming 'session_out' is non-null
- 478 | if (session_out) *session_out = session;
- | ^~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:478:5: note: Taking true branch
- 478 | if (session_out) *session_out = session;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:491:5: note: Assuming 'g_debug_level' is < 2
- 491 | DPRINTF(LULVL, ("--> nfs41_lookup('%s')\n", path.path));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:491:5: note: Taking false branch
- 491 | DPRINTF(LULVL, ("--> nfs41_lookup('%s')\n", path.path));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:493:9: note: Assuming 'parent_out' is not equal to NULL
- 493 | if (parent_out == NULL) parent_out = &parent;
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:493:5: note: Taking false branch
- 493 | if (parent_out == NULL) parent_out = &parent;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:494:9: note: Assuming 'target_out' is not equal to NULL
- 494 | if (target_out == NULL) target_out = ⌖
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:494:5: note: Taking false branch
- 494 | if (target_out == NULL) target_out = ⌖
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:499:9: note: Assuming 'status' is not equal to NO_ERROR
- 499 | if (status == NO_ERROR || negative)
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:499:9: note: Left side of '||' is false
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:499:31: note: Assuming 'negative' is 0
- 499 | if (status == NO_ERROR || negative)
- | ^~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:499:5: note: Taking false branch
- 499 | if (status == NO_ERROR || negative)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:502:9: note: Assuming field 'len' is 0
- 502 | if (parent_out->fh.len) {
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:502:5: note: Taking false branch
- 502 | if (parent_out->fh.len) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:518:9: note: Assuming 'status' is equal to ERROR_FILESYSTEM_ABSENT
- 518 | if (status == ERROR_FILESYSTEM_ABSENT) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:518:5: note: Taking true branch
- 518 | if (status == ERROR_FILESYSTEM_ABSENT) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:519:9: note: 'new_session' declared without an initial value
- 519 | nfs41_session *new_session;
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:523:18: note: Calling 'referral_resolve'
- 523 | status = referral_resolve(root, session,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 524 | &referral, path_inout, &new_session);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:426:9: note: Assuming 'status' is not equal to 0
- 426 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:426:5: note: Taking true branch
- 426 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:430:9: note: Control jumps to line 457
- 430 | goto out;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:458:5: note: Returning without writing to '*session_out'
- 458 | return status;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:458:5: note: Returning value (loaded from 'status'), which participates in a condition later
- 458 | return status;
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:523:18: note: Returning from 'referral_resolve'
- 523 | status = referral_resolve(root, session,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 524 | &referral, path_inout, &new_session);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:525:13: note: Assuming 'status' is 0
- 525 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:525:9: note: Taking false branch
- 525 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:536:13: note: 'session_out' is non-null
- 536 | if (session_out) *session_out = new_session;
- | ^~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:536:9: note: Taking true branch
- 536 | if (session_out) *session_out = new_session;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:536:39: note: Assigned value is garbage or undefined
- 536 | if (session_out) *session_out = new_session;
- | ^ ~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c(539,18): warning G1E1330D0: 2nd function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
- 539 | status = nfs41_lookup(root, new_session, path_inout,
- | ^ ~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:478:9: note: Assuming 'session_out' is null
- 478 | if (session_out) *session_out = session;
- | ^~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:478:5: note: Taking false branch
- 478 | if (session_out) *session_out = session;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:491:5: note: Assuming 'g_debug_level' is >= 2
- 491 | DPRINTF(LULVL, ("--> nfs41_lookup('%s')\n", path.path));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:491:5: note: Taking true branch
- 491 | DPRINTF(LULVL, ("--> nfs41_lookup('%s')\n", path.path));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:493:9: note: Assuming 'parent_out' is not equal to NULL
- 493 | if (parent_out == NULL) parent_out = &parent;
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:493:5: note: Taking false branch
- 493 | if (parent_out == NULL) parent_out = &parent;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:494:9: note: Assuming 'target_out' is equal to NULL
- 494 | if (target_out == NULL) target_out = ⌖
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:494:5: note: Taking true branch
- 494 | if (target_out == NULL) target_out = ⌖
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:499:9: note: Assuming 'status' is not equal to NO_ERROR
- 499 | if (status == NO_ERROR || negative)
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:499:9: note: Left side of '||' is false
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:499:31: note: Assuming 'negative' is 0
- 499 | if (status == NO_ERROR || negative)
- | ^~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:499:5: note: Taking false branch
- 499 | if (status == NO_ERROR || negative)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:502:9: note: Assuming field 'len' is 0
- 502 | if (parent_out->fh.len) {
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:502:5: note: Taking false branch
- 502 | if (parent_out->fh.len) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:518:9: note: Assuming 'status' is equal to ERROR_FILESYSTEM_ABSENT
- 518 | if (status == ERROR_FILESYSTEM_ABSENT) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:518:5: note: Taking true branch
- 518 | if (status == ERROR_FILESYSTEM_ABSENT) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:519:9: note: 'new_session' declared without an initial value
- 519 | nfs41_session *new_session;
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:523:18: note: Calling 'referral_resolve'
- 523 | status = referral_resolve(root, session,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 524 | &referral, path_inout, &new_session);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:426:9: note: Assuming 'status' is not equal to 0
- 426 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:426:5: note: Taking true branch
- 426 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:430:9: note: Control jumps to line 457
- 430 | goto out;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:458:5: note: Returning without writing to '*session_out'
- 458 | return status;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:458:5: note: Returning value (loaded from 'status'), which participates in a condition later
- 458 | return status;
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:523:18: note: Returning from 'referral_resolve'
- 523 | status = referral_resolve(root, session,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 524 | &referral, path_inout, &new_session);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:525:13: note: Assuming 'status' is 0
- 525 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:525:9: note: Taking false branch
- 525 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:536:13: note: 'session_out' is null
- 536 | if (session_out) *session_out = new_session;
- | ^~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:536:9: note: Taking false branch
- 536 | if (session_out) *session_out = new_session;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\lookup.c:539:18: note: 2nd function call argument is an uninitialized value
- 539 | status = nfs41_lookup(root, new_session, path_inout,
- | ^ ~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\name_cache.c(354,19): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 354 | (void)strcpy(entry->owner, info->owner);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\name_cache.c:354:19: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 354 | (void)strcpy(entry->owner, info->owner);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\name_cache.c(359,19): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 359 | (void)strcpy(entry->owner_group, info->owner_group);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\name_cache.c:359:19: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 359 | (void)strcpy(entry->owner_group, info->owner_group);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\name_cache.c(442,15): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 442 | (void)strcpy(dst->owner, src->owner);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\name_cache.c:442:15: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 442 | (void)strcpy(dst->owner, src->owner);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\name_cache.c(451,15): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 451 | (void)strcpy(dst->owner_group, src->owner_group);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\name_cache.c:451:15: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 451 | (void)strcpy(dst->owner_group, src->owner_group);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c(207,9): warning G36456E0F: Value stored to 'status' is never read [clang-analyzer-deadcode.DeadStores]
- 207 | status = upcall_handle(&nfs41_dg, &upcall);
- | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:207:9: note: Value stored to 'status' is never read
- 207 | status = upcall_handle(&nfs41_dg, &upcall);
- | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c(725,13): warning G36456E0F: Value stored to 'niin_ptr' is never read [clang-analyzer-deadcode.DeadStores]
- 725 | niin_ptr += snprintf(niin_ptr, IVS_REMAINING_NIINAME_BYTES,
- | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 726 | ", cygwin_vers='%s'", unamebuf);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:725:13: note: Value stored to 'niin_ptr' is never read
- 725 | niin_ptr += snprintf(niin_ptr, IVS_REMAINING_NIINAME_BYTES,
- | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 726 | ", cygwin_vers='%s'", unamebuf);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c(904,9): warning G4EBCC5AC: 1st function call argument is an uninitialized value [clang-analyzer-core.CallAndMessage]
- 904 | WaitForSingleObject(tids[i].handle, INFINITE );
- | ^ ~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:781:5: note: Taking false branch
- 781 | if (!check_for_files())
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:783:10: note: Calling 'parse_cmdlineargs'
- 783 | if (!parse_cmdlineargs(argc, argv, &cmd_args))
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:323:17: note: Assuming 'i' is >= 'argc'
- 323 | for (i = 0; i < argc; i++) {
- | ^~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:323:5: note: Loop condition is false. Execution continues on line 449
- 323 | for (i = 0; i < argc; i++) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:783:10: note: Returning from 'parse_cmdlineargs'
- 783 | if (!parse_cmdlineargs(argc, argv, &cmd_args))
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:783:5: note: Taking false branch
- 783 | if (!parse_cmdlineargs(argc, argv, &cmd_args))
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:808:9: note: Assuming the condition is false
- 808 | if (getdomainname()) {
- | ^~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:808:5: note: Taking false branch
- 808 | if (getdomainname()) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:818:8: note: Assuming the condition is false
- 818 | if(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS)) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:818:5: note: Taking false branch
- 818 | if(SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS)) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:832:18: note: Field 'ldap_enable' is 1
- 832 | if (cmd_args.ldap_enable) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:832:5: note: Taking true branch
- 832 | if (cmd_args.ldap_enable) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:833:17: note: Assuming the condition is true
- 833 | EASSERT(nfs41_dg.localdomain_name[0] != '\0');
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:11: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:833:9: note: Taking false branch
- 833 | EASSERT(nfs41_dg.localdomain_name[0] != '\0');
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:837:13: note: Assuming 'status' is 0
- 837 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:837:9: note: Taking false branch
- 837 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:844:5: note: Assuming 'g_debug_level' is < 1
- 844 | DPRINTF(1, ("NFS41 Daemon starting: version %d\n", NFS41D_VERSION));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:844:5: note: Taking false branch
- 844 | DPRINTF(1, ("NFS41 Daemon starting: version %d\n", NFS41D_VERSION));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:849:9: note: Assuming the condition is false
- 849 | if (pipe == INVALID_HANDLE_VALUE)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:849:5: note: Taking false branch
- 849 | if (pipe == INVALID_HANDLE_VALUE)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:855:5: note: 'g_debug_level' is < 1
- 855 | DPRINTF(1, ("starting nfs41 mini redirector\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:855:5: note: Taking false branch
- 855 | DPRINTF(1, ("starting nfs41 mini redirector\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:858:9: note: Assuming 'status' is not equal to 0
- 858 | if (!status) {
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:858:5: note: Taking false branch
- 858 | if (!status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:870:5: note: 'g_debug_level' is < 1
- 870 | DPRINTF(1, ("Starting %d worker threads...\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:870:5: note: Taking false branch
- 870 | DPRINTF(1, ("Starting %d worker threads...\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:872:17: note: Assuming 'i' is >= field 'num_worker_threads'
- 872 | for (i = 0; i < nfs41_dg.num_worker_threads; i++) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:872:5: note: Loop condition is false. Execution continues on line 888
- 872 | for (i = 0; i < nfs41_dg.num_worker_threads; i++) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:902:5: note: Assuming 'g_debug_level' is < 1
- 902 | DPRINTF(1, ("Parent waiting for children threads\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:902:5: note: Taking false branch
- 902 | DPRINTF(1, ("Parent waiting for children threads\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:903:17: note: Assuming 'i' is < field 'num_worker_threads'
- 903 | for (i = 0; i < nfs41_dg.num_worker_threads; i++)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:903:5: note: Loop condition is true. Entering loop body
- 903 | for (i = 0; i < nfs41_dg.num_worker_threads; i++)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_daemon.c:904:9: note: 1st function call argument is an uninitialized value
- 904 | WaitForSingleObject(tids[i].handle, INFINITE );
- | ^ ~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c(474,5): warning G29764502: Dereference of null pointer [clang-analyzer-core.NullDereference]
- 474 | EASSERT_IS_VALID_NON_NULL_PTR(parent->fh.superblock);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:44:19: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 44 | (((char *)(ptr)) != ((char *)0xddddddddddddddddLL)) && \
- | ^~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:470:32: note: Assuming field 'type' is equal to OPEN_DELEGATE_READ
- 470 | bool_t already_delegated = delegation->type == OPEN_DELEGATE_READ
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:471:9: note: Left side of '||' is true
- 471 | || delegation->type == OPEN_DELEGATE_WRITE;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:473:5: note: Assuming 'parent' is not equal to -2459565876494606883
- 473 | EASSERT_IS_VALID_NON_NULL_PTR(parent);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:44:10: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 44 | (((char *)(ptr)) != ((char *)0xddddddddddddddddLL)) && \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:473:5: note: Left side of '&&' is true
- 473 | EASSERT_IS_VALID_NON_NULL_PTR(parent);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:44:9: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 44 | (((char *)(ptr)) != ((char *)0xddddddddddddddddLL)) && \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:473:5: note: Assuming 'parent' is not equal to -1
- 473 | EASSERT_IS_VALID_NON_NULL_PTR(parent);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:45:10: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 45 | (((char *)(ptr)) != ((char *)0xffffffffffffffffLL)) && \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:473:5: note: Left side of '&&' is true
- 473 | EASSERT_IS_VALID_NON_NULL_PTR(parent);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:44:9: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 44 | (((char *)(ptr)) != ((char *)0xddddddddddddddddLL)) && \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:473:5: note: Assuming 'parent' is equal to null
- 473 | EASSERT_IS_VALID_NON_NULL_PTR(parent);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:46:10: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 46 | ((ptr) != NULL) \
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:473:5: note: Taking true branch
- 473 | EASSERT_IS_VALID_NON_NULL_PTR(parent);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:5: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:474:5: note: Dereference of null pointer
- 474 | EASSERT_IS_VALID_NON_NULL_PTR(parent->fh.superblock);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:44:19: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 44 | (((char *)(ptr)) != ((char *)0xddddddddddddddddLL)) && \
- | ^~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c(583,23): warning G4E466640: The left operand of '==' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
- 583 | if (dir_info.type == NF4ATTRDIR) {
- | ~~~~~~~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:470:32: note: Assuming field 'type' is equal to OPEN_DELEGATE_READ
- 470 | bool_t already_delegated = delegation->type == OPEN_DELEGATE_READ
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:471:9: note: Left side of '||' is true
- 471 | || delegation->type == OPEN_DELEGATE_WRITE;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:473:5: note: Assuming 'parent' is not equal to -2459565876494606883
- 473 | EASSERT_IS_VALID_NON_NULL_PTR(parent);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:44:10: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 44 | (((char *)(ptr)) != ((char *)0xddddddddddddddddLL)) && \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:473:5: note: Left side of '&&' is true
- 473 | EASSERT_IS_VALID_NON_NULL_PTR(parent);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:44:9: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 44 | (((char *)(ptr)) != ((char *)0xddddddddddddddddLL)) && \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:473:5: note: Assuming 'parent' is not equal to -1
- 473 | EASSERT_IS_VALID_NON_NULL_PTR(parent);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:45:10: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 45 | (((char *)(ptr)) != ((char *)0xffffffffffffffffLL)) && \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:473:5: note: Left side of '&&' is true
- 473 | EASSERT_IS_VALID_NON_NULL_PTR(parent);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:44:9: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 44 | (((char *)(ptr)) != ((char *)0xddddddddddddddddLL)) && \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:473:5: note: Assuming 'parent' is not equal to null
- 473 | EASSERT_IS_VALID_NON_NULL_PTR(parent);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:46:10: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 46 | ((ptr) != NULL) \
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:473:5: note: Taking false branch
- 473 | EASSERT_IS_VALID_NON_NULL_PTR(parent);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:5: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:474:5: note: Assuming field 'superblock' is not equal to -2459565876494606883
- 474 | EASSERT_IS_VALID_NON_NULL_PTR(parent->fh.superblock);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:44:10: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 44 | (((char *)(ptr)) != ((char *)0xddddddddddddddddLL)) && \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:474:5: note: Left side of '&&' is true
- 474 | EASSERT_IS_VALID_NON_NULL_PTR(parent->fh.superblock);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:44:9: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 44 | (((char *)(ptr)) != ((char *)0xddddddddddddddddLL)) && \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:474:5: note: Assuming field 'superblock' is not equal to -1
- 474 | EASSERT_IS_VALID_NON_NULL_PTR(parent->fh.superblock);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:45:10: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 45 | (((char *)(ptr)) != ((char *)0xffffffffffffffffLL)) && \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:474:5: note: Left side of '&&' is true
- 474 | EASSERT_IS_VALID_NON_NULL_PTR(parent->fh.superblock);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:44:9: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 44 | (((char *)(ptr)) != ((char *)0xddddddddddddddddLL)) && \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:474:5: note: Assuming field 'superblock' is not equal to null
- 474 | EASSERT_IS_VALID_NON_NULL_PTR(parent->fh.superblock);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:10: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:46:10: note: expanded from macro 'DEBUG_IS_VALID_NON_NULL_PTR'
- 46 | ((ptr) != NULL) \
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:474:5: note: Taking false branch
- 474 | EASSERT_IS_VALID_NON_NULL_PTR(parent->fh.superblock);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:100:5: note: expanded from macro 'EASSERT_IS_VALID_NON_NULL_PTR'
- 100 | if (!DEBUG_IS_VALID_NON_NULL_PTR(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:478:5: note: Control jumps to the 'default' case at line 492
- 478 | switch (claim->claim) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:497:9: note: Execution continues on line 500
- 497 | break;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:500:9: note: Assuming 'info' is not equal to NULL
- 500 | if (info == NULL)
- | ^~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:500:5: note: Taking false branch
- 500 | if (info == NULL)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:511:9: note: 'current_fh_is_dir' is 0
- 511 | if (current_fh_is_dir) {
- | ^~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:511:5: note: Taking false branch
- 511 | if (current_fh_is_dir) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:537:9: note: Assuming 'how_mode' is not equal to EXCLUSIVE4_1
- 537 | if (how_mode == EXCLUSIVE4_1) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:537:5: note: Taking false branch
- 537 | if (how_mode == EXCLUSIVE4_1) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:544:16: note: Assuming 'createattrs' is null
- 544 | } else if (createattrs) {
- | ^~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:544:12: note: Taking false branch
- 544 | } else if (createattrs) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:553:9: note: 'current_fh_is_dir' is 0
- 553 | if (current_fh_is_dir) {
- | ^~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:553:5: note: Taking false branch
- 553 | if (current_fh_is_dir) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:563:9: note: 'current_fh_is_dir' is 0
- 563 | if (current_fh_is_dir) {
- | ^~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:563:5: note: Taking false branch
- 563 | if (current_fh_is_dir) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:577:9: note: Assuming 'status' is 0
- 577 | if (status)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:577:5: note: Taking false branch
- 577 | if (status)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:580:9: note: Assuming the condition is false
- 580 | if (compound_error(status = compound.res.status))
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:580:5: note: Taking false branch
- 580 | if (compound_error(status = compound.res.status))
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:583:23: note: The left operand of '==' is a garbage value
- 583 | if (dir_info.type == NF4ATTRDIR) {
- | ~~~~~~~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c(747,19): warning G4E466640: The left operand of '==' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
- 747 | if (info.type == NF4NAMEDATTR)
- | ~~~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:741:9: note: Assuming 'status' is 0
- 741 | if (status)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:741:5: note: Taking false branch
- 741 | if (status)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:744:9: note: Assuming the condition is false
- 744 | if (compound_error(status = compound.res.status))
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:744:5: note: Taking false branch
- 744 | if (compound_error(status = compound.res.status))
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:747:19: note: The left operand of '==' is a garbage value
- 747 | if (info.type == NF4NAMEDATTR)
- | ~~~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c(1323,19): warning G4E466640: The left operand of '==' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
- 1323 | if (info.type == NF4ATTRDIR)
- | ~~~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:1317:9: note: Assuming 'status' is 0
- 1317 | if (status)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:1317:5: note: Taking false branch
- 1317 | if (status)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:1320:9: note: Assuming the condition is false
- 1320 | if (compound_error(status = compound.res.status))
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:1320:5: note: Taking false branch
- 1320 | if (compound_error(status = compound.res.status))
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:1323:19: note: The left operand of '==' is a garbage value
- 1323 | if (info.type == NF4ATTRDIR)
- | ~~~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c(1523,42): warning G75AA7332: '&&' within '||' [clang-diagnostic-logical-op-parentheses]
- 1522 | (setattr_res.attrsset.arr[0] & FATTR4_WORD0_SIZE)) ||
- | ~~
- 1523 | (setattr_res.attrsset.count > 1) &&
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
- 1524 | (setattr_res.attrsset.arr[1] & FATTR4_WORD1_SPACE_USED))
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_ops.c:1523:42: note: place parentheses around the '&&' expression to silence this warning
- 1523 | (setattr_res.attrsset.count > 1) &&
- | ^
- | (
- 1524 | (setattr_res.attrsset.arr[1] & FATTR4_WORD1_SPACE_USED))
- |
- | )
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_rpc.c(40,22): warning GC5E5EB67: cast from 'bool_t (*)(void)' (aka 'int (*)(void)') to 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, ...)') converts to incompatible function type [clang-diagnostic-cast-function-type-mismatch]
- 40 | (xdrproc_t)xdr_void, NULL,
- | ^
- ..\..\libtirpc\tirpc\rpc/clnt.h:203:38: note: expanded from macro 'clnt_call'
- 203 | ((*(rh)->cl_ops->cl_call)(rh, proc, xargs, \
- | ^~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_rpc.c(41,22): warning GC5E5EB67: cast from 'bool_t (*)(void)' (aka 'int (*)(void)') to 'xdrproc_t' (aka 'int (*)(struct __rpc_xdr *, ...)') converts to incompatible function type [clang-diagnostic-cast-function-type-mismatch]
- 41 | (xdrproc_t)xdr_void, NULL, timeout);
- | ^
- ..\..\libtirpc\tirpc\rpc/clnt.h:204:10: note: expanded from macro 'clnt_call'
- 204 | argsp, xres, resp, secs))
- | ^~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c(334,24): warning G5C0E2821: Access to field 'flags' results in a dereference of an undefined pointer value (loaded from variable 'session') [clang-analyzer-core.NullDereference]
- 334 | session->flags |= CREATE_SESSION4_FLAG_CONN_BACK_CHAN;
- | ~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:323:5: note: 'session' declared without an initial value
- 323 | nfs41_session *session;
- | ^~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:326:14: note: Calling 'session_alloc'
- 326 | status = session_alloc(client, &session);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:294:9: note: Assuming 'session' is equal to NULL
- 294 | if (session == NULL) {
- | ^~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:294:5: note: Taking true branch
- 294 | if (session == NULL) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:296:9: note: Control jumps to line 316
- 296 | goto out;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:316:5: note: Returning without writing to '*session_out'
- 316 | return status;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:316:5: note: Returning value (loaded from 'status'), which participates in a condition later
- 316 | return status;
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:326:14: note: Returning from 'session_alloc'
- 326 | status = session_alloc(client, &session);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:327:9: note: Assuming 'status' is 0
- 327 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:327:5: note: Taking false branch
- 327 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:333:9: note: Assuming field 'needcb' is not equal to 0
- 333 | if (client->rpc->needcb)
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:333:5: note: Taking true branch
- 333 | if (client->rpc->needcb)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:334:24: note: Access to field 'flags' results in a dereference of an undefined pointer value (loaded from variable 'session')
- 334 | session->flags |= CREATE_SESSION4_FLAG_CONN_BACK_CHAN;
- | ~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c(335,20): warning G5C0E2821: Access to field 'flags' results in a dereference of an undefined pointer value (loaded from variable 'session') [clang-analyzer-core.NullDereference]
- 335 | session->flags |= CREATE_SESSION4_FLAG_PERSIST;
- | ~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:323:5: note: 'session' declared without an initial value
- 323 | nfs41_session *session;
- | ^~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:326:14: note: Calling 'session_alloc'
- 326 | status = session_alloc(client, &session);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:294:9: note: Assuming 'session' is equal to NULL
- 294 | if (session == NULL) {
- | ^~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:294:5: note: Taking true branch
- 294 | if (session == NULL) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:296:9: note: Control jumps to line 316
- 296 | goto out;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:316:5: note: Returning without writing to '*session_out'
- 316 | return status;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:316:5: note: Returning value (loaded from 'status'), which participates in a condition later
- 316 | return status;
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:326:14: note: Returning from 'session_alloc'
- 326 | status = session_alloc(client, &session);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:327:9: note: Assuming 'status' is 0
- 327 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:327:5: note: Taking false branch
- 327 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:333:9: note: Assuming field 'needcb' is 0
- 333 | if (client->rpc->needcb)
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:333:5: note: Taking false branch
- 333 | if (client->rpc->needcb)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41_session.c:335:20: note: Access to field 'flags' results in a dereference of an undefined pointer value (loaded from variable 'session')
- 335 | session->flags |= CREATE_SESSION4_FLAG_PERSIST;
- | ~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c(64,11): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 64 | (void)strcpy(state->path.path, path);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:64:11: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 64 | (void)strcpy(state->path.path, path);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c(249,23): warning G4E466640: The left operand of '==' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
- 249 | if (arg->type == STATEID_DELEG_FILE)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:698:17: note: Assuming the condition is false
- 698 | EASSERT_MSG(!(args->create_opts & FILE_COMPLETE_IF_OPLOCKED),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:698:5: note: Taking true branch
- 698 | EASSERT_MSG(!(args->create_opts & FILE_COMPLETE_IF_OPLOCKED),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:701:17: note: Assuming the condition is false
- 701 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_BY_FILE_ID),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:701:5: note: Taking true branch
- 701 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_BY_FILE_ID),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:708:17: note: Assuming the condition is false
- 708 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_REQUIRING_OPLOCK),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:708:5: note: Taking true branch
- 708 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_REQUIRING_OPLOCK),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:711:17: note: Assuming the condition is false
- 711 | EASSERT_MSG(!(args->create_opts & FILE_DISALLOW_EXCLUSIVE),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:711:5: note: Taking true branch
- 711 | EASSERT_MSG(!(args->create_opts & FILE_DISALLOW_EXCLUSIVE),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:714:17: note: Assuming the condition is false
- 714 | EASSERT_MSG(!(args->create_opts & FILE_RESERVE_OPFILTER),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:714:5: note: Taking true branch
- 714 | EASSERT_MSG(!(args->create_opts & FILE_RESERVE_OPFILTER),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:719:9: note: 'status' is 0
- 719 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:719:5: note: Taking false branch
- 719 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:727:9: note: Assuming the condition is false
- 727 | if (args->create_opts & FILE_DIRECTORY_FILE)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:727:5: note: Taking false branch
- 727 | if (args->create_opts & FILE_DIRECTORY_FILE)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:736:9: note: Assuming 'status' is not equal to ERROR_REPARSE
- 736 | if (status == ERROR_REPARSE) {
- | ^~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:736:5: note: Taking false branch
- 736 | if (status == ERROR_REPARSE) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:771:9: note: Assuming 'status' is not equal to NO_ERROR
- 771 | if (status == NO_ERROR) {
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:771:5: note: Taking false branch
- 771 | if (status == NO_ERROR) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:824:16: note: Assuming 'status' is equal to ERROR_FILE_NOT_FOUND
- 824 | } else if (status != ERROR_FILE_NOT_FOUND)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:824:12: note: Taking false branch
- 824 | } else if (status != ERROR_FILE_NOT_FOUND)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:837:9: note: Assuming field 'disposition' is not equal to FILE_CREATE
- 837 | if (args->disposition == FILE_CREATE &&
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:837:42: note: Left side of '&&' is false
- 837 | if (args->disposition == FILE_CREATE &&
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:855:16: note: Assuming field 'len' is 0
- 855 | } else if (args->symlink.len) {
- | ^~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:855:12: note: Taking false branch
- 855 | } else if (args->symlink.len) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:890:12: note: Taking false branch
- 890 | } else if (open_for_attributes(state->type, args->access_mask,
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1025:14: note: 'lookup_status' is 2
- 1025 | if (!lookup_status && (args->disposition == FILE_OVERWRITE ||
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1025:28: note: Left side of '&&' is false
- 1025 | if (!lookup_status && (args->disposition == FILE_OVERWRITE ||
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1040:30: note: Assuming the condition is false
- 1040 | createattrs.hidden = args->file_attrs & FILE_ATTRIBUTE_HIDDEN ? 1 : 0;
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1040:30: note: '?' condition is false
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1041:30: note: Assuming the condition is false
- 1041 | createattrs.system = args->file_attrs & FILE_ATTRIBUTE_SYSTEM ? 1 : 0;
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1041:30: note: '?' condition is false
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1042:31: note: Assuming the condition is true
- 1042 | createattrs.archive = args->file_attrs & FILE_ATTRIBUTE_ARCHIVE ? 1 : 0;
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1042:31: note: '?' condition is true
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1049:13: note: Assuming 'status' is 0
- 1049 | if (status)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1049:9: note: Taking false branch
- 1049 | if (status)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1052:13: note: Assuming the condition is false
- 1052 | if (args->access_mask & FILE_EXECUTE && state->file.fh.len) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1052:46: note: Left side of '&&' is false
- 1052 | if (args->access_mask & FILE_EXECUTE && state->file.fh.len) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1060:13: note: Assuming field 'disposition' is not equal to FILE_SUPERSEDE
- 1060 | if (args->disposition == FILE_SUPERSEDE && lookup_status == NO_ERROR) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1060:49: note: Left side of '&&' is false
- 1060 | if (args->disposition == FILE_SUPERSEDE && lookup_status == NO_ERROR) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1073:13: note: Assuming 'create' is equal to OPEN4_CREATE
- 1073 | if (create == OPEN4_CREATE && (args->create_opts & FILE_DIRECTORY_FILE)) {
- | ^~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1073:13: note: Left side of '&&' is true
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1073:40: note: Assuming the condition is true
- 1073 | if (create == OPEN4_CREATE && (args->create_opts & FILE_DIRECTORY_FILE)) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1073:9: note: Taking true branch
- 1073 | if (create == OPEN4_CREATE && (args->create_opts & FILE_DIRECTORY_FILE)) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1076:29: note: Assuming 'status' is equal to NFS4_OK
- 1076 | args->created = status == NFS4_OK ? TRUE : FALSE;
- | ^~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1076:29: note: '?' condition is true
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1086:13: note: 'status' is 0
- 1086 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1086:9: note: Taking false branch
- 1086 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1101:17: note: 'create' is equal to OPEN4_CREATE
- 1101 | if (create == OPEN4_CREATE) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1101:13: note: Taking true branch
- 1101 | if (create == OPEN4_CREATE) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1112:21: note: Assuming the condition is false
- 1112 | if (!get_token_primarygroup_name(upcall->currentthread_token,
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 1113 | createchgrpattrs.owner_group)) {
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1112:17: note: Taking false branch
- 1112 | if (!get_token_primarygroup_name(upcall->currentthread_token,
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1121:17: note: Assuming 'g_debug_level' is < 1
- 1121 | DPRINTF(1, ("handle_open(): OPEN4_CREATE: owner_group='%s'\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1121:17: note: Taking false branch
- 1121 | DPRINTF(1, ("handle_open(): OPEN4_CREATE: owner_group='%s'\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:1124:17: note: Calling 'nfs41_open_stateid_arg'
- 1124 | nfs41_open_stateid_arg(state, &stateid);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:240:9: note: Assuming field 'state' is non-null
- 240 | if (state->delegation.state) {
- | ^~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:240:5: note: Taking true branch
- 240 | if (state->delegation.state) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:243:13: note: Assuming field 'status' is not equal to DELEGATION_GRANTED
- 243 | if (deleg->status == DELEGATION_GRANTED) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:243:9: note: Taking false branch
- 243 | if (deleg->status == DELEGATION_GRANTED) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:249:23: note: The left operand of '==' is a garbage value
- 249 | if (arg->type == STATEID_DELEG_FILE)
- | ~~~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c(640,15): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 640 | (void)strcpy(symlink->path, ntpath_buf);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:640:15: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 640 | (void)strcpy(symlink->path, ntpath_buf);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c(660,15): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 660 | (void)strcpy(symlink->path, ntpath_buf);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:660:15: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 660 | (void)strcpy(symlink->path, ntpath_buf);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c(724,21): warning G5C0E2821: Access to field 'srv_open' results in a dereference of an undefined pointer value (loaded from variable 'state') [clang-analyzer-core.NullDereference]
- 724 | state->srv_open = args->srv_open;
- | ~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:695:5: note: 'state' declared without an initial value
- 695 | nfs41_open_state *state;
- | ^~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:698:17: note: Assuming the condition is true
- 698 | EASSERT_MSG(!(args->create_opts & FILE_COMPLETE_IF_OPLOCKED),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:698:5: note: Taking false branch
- 698 | EASSERT_MSG(!(args->create_opts & FILE_COMPLETE_IF_OPLOCKED),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:701:17: note: Assuming the condition is true
- 701 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_BY_FILE_ID),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:701:5: note: Taking false branch
- 701 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_BY_FILE_ID),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:708:17: note: Assuming the condition is true
- 708 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_REQUIRING_OPLOCK),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:708:5: note: Taking false branch
- 708 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_REQUIRING_OPLOCK),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:711:17: note: Assuming the condition is true
- 711 | EASSERT_MSG(!(args->create_opts & FILE_DISALLOW_EXCLUSIVE),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:711:5: note: Taking false branch
- 711 | EASSERT_MSG(!(args->create_opts & FILE_DISALLOW_EXCLUSIVE),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:714:17: note: Assuming the condition is true
- 714 | EASSERT_MSG(!(args->create_opts & FILE_RESERVE_OPFILTER),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:714:5: note: Taking false branch
- 714 | EASSERT_MSG(!(args->create_opts & FILE_RESERVE_OPFILTER),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:718:14: note: Calling 'create_open_state'
- 718 | status = create_open_state(args->path, args->open_owner_id, &state);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:51:9: note: Assuming 'state' is equal to NULL
- 51 | if (state == NULL) {
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:51:5: note: Taking true branch
- 51 | if (state == NULL) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:53:9: note: Control jumps to line 91
- 53 | goto out;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:91:5: note: Returning without writing to '*state_out'
- 91 | return status;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:91:5: note: Returning value (loaded from 'status'), which participates in a condition later
- 91 | return status;
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:718:14: note: Returning from 'create_open_state'
- 718 | status = create_open_state(args->path, args->open_owner_id, &state);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:719:9: note: Assuming 'status' is 0
- 719 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:719:5: note: Taking false branch
- 719 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:724:21: note: Access to field 'srv_open' results in a dereference of an undefined pointer value (loaded from variable 'state')
- 724 | state->srv_open = args->srv_open;
- | ~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c(945,19): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 945 | (void)strcpy(info.owner, og_info.owner);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:945:19: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 945 | (void)strcpy(info.owner, og_info.owner);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c(948,19): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 948 | (void)strcpy(info.owner_group, og_info.owner_group);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:948:19: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 948 | (void)strcpy(info.owner_group, og_info.owner_group);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c(959,17): warning G319FBF53: Null pointer passed as 1st argument to string length function [clang-analyzer-unix.cstring.NullArg]
- 959 | EASSERT(strlen(info.owner) > 0);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:11: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:698:17: note: Assuming the condition is false
- 698 | EASSERT_MSG(!(args->create_opts & FILE_COMPLETE_IF_OPLOCKED),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:698:5: note: Taking true branch
- 698 | EASSERT_MSG(!(args->create_opts & FILE_COMPLETE_IF_OPLOCKED),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:701:17: note: Assuming the condition is false
- 701 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_BY_FILE_ID),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:701:5: note: Taking true branch
- 701 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_BY_FILE_ID),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:708:17: note: Assuming the condition is false
- 708 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_REQUIRING_OPLOCK),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:708:5: note: Taking true branch
- 708 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_REQUIRING_OPLOCK),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:711:17: note: Assuming the condition is false
- 711 | EASSERT_MSG(!(args->create_opts & FILE_DISALLOW_EXCLUSIVE),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:711:5: note: Taking true branch
- 711 | EASSERT_MSG(!(args->create_opts & FILE_DISALLOW_EXCLUSIVE),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:714:17: note: Assuming the condition is false
- 714 | EASSERT_MSG(!(args->create_opts & FILE_RESERVE_OPFILTER),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:714:5: note: Taking true branch
- 714 | EASSERT_MSG(!(args->create_opts & FILE_RESERVE_OPFILTER),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:718:14: note: Calling 'create_open_state'
- 718 | status = create_open_state(args->path, args->open_owner_id, &state);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:51:9: note: Assuming 'state' is not equal to NULL
- 51 | if (state == NULL) {
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:51:5: note: Taking false branch
- 51 | if (state == NULL) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:59:9: note: Assuming 'path_len' is < NFS41_MAX_PATH_LEN
- 59 | if (path_len >= NFS41_MAX_PATH_LEN) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:59:5: note: Taking false branch
- 59 | if (path_len >= NFS41_MAX_PATH_LEN) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:91:5: note: Returning zero (loaded from 'status'), which participates in a condition later
- 91 | return status;
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:718:14: note: Returning from 'create_open_state'
- 718 | status = create_open_state(args->path, args->open_owner_id, &state);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:719:9: note: 'status' is 0
- 719 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:719:5: note: Taking false branch
- 719 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:727:9: note: Assuming the condition is false
- 727 | if (args->create_opts & FILE_DIRECTORY_FILE)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:727:5: note: Taking false branch
- 727 | if (args->create_opts & FILE_DIRECTORY_FILE)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:733:14: note: Value assigned to 'info.owner'
- 733 | status = nfs41_lookup(upcall->root_ref, nfs41_root_session(upcall->root_ref),
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 734 | &state->path, &state->parent, &state->file, &info, &state->session);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:736:9: note: Assuming 'status' is not equal to ERROR_REPARSE
- 736 | if (status == ERROR_REPARSE) {
- | ^~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:736:5: note: Taking false branch
- 736 | if (status == ERROR_REPARSE) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:771:9: note: Assuming 'status' is equal to NO_ERROR
- 771 | if (status == NO_ERROR) {
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:771:5: note: Taking true branch
- 771 | if (status == NO_ERROR) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:772:13: note: Assuming field 'type' is not equal to NF4DIR
- 772 | if (info.type == NF4DIR) {
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:772:9: note: Taking false branch
- 772 | if (info.type == NF4DIR) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:780:20: note: Assuming field 'type' is not equal to NF4REG
- 780 | } else if (info.type == NF4REG) {
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:780:16: note: Taking false branch
- 780 | } else if (info.type == NF4REG) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:788:20: note: Assuming field 'type' is not equal to NF4LNK
- 788 | } else if (info.type == NF4LNK) {
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:788:16: note: Taking false branch
- 788 | } else if (info.type == NF4LNK) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:822:13: note: Assuming 'g_debug_level' is < 2
- 822 | DPRINTF(2, ("handle_open(): unsupported type=%d\n", info.type));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:822:13: note: Taking false branch
- 822 | DPRINTF(2, ("handle_open(): unsupported type=%d\n", info.type));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:837:9: note: Assuming field 'disposition' is not equal to FILE_CREATE
- 837 | if (args->disposition == FILE_CREATE &&
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:837:42: note: Left side of '&&' is false
- 837 | if (args->disposition == FILE_CREATE &&
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:855:16: note: Assuming field 'len' is 0
- 855 | } else if (args->symlink.len) {
- | ^~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:855:12: note: Taking false branch
- 855 | } else if (args->symlink.len) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:890:12: note: Taking true branch
- 890 | } else if (open_for_attributes(state->type, args->access_mask,
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:892:13: note: 'status' is 0
- 892 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:892:9: note: Taking false branch
- 892 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:904:9: note: Taking false branch
- 904 | EASSERT(bitmap_isset(&info.attrmask, 0, FATTR4_WORD0_FILEID));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:906:9: note: Taking false branch
- 906 | EASSERT(bitmap_isset(&info.attrmask, 0, FATTR4_WORD0_FSID));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:909:9: note: Taking false branch
- 909 | EASSERT(bitmap_isset(&info.attrmask, 1, FATTR4_WORD1_MODE));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:911:9: note: Taking false branch
- 911 | EASSERT(bitmap_isset(&info.attrmask, 0, FATTR4_WORD0_CHANGE));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:923:14: note: Assuming the condition is false
- 923 | if (((info.attrmask.arr[1] & FATTR4_WORD1_OWNER) == 0) ||
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:923:13: note: Left side of '||' is false
- 923 | if (((info.attrmask.arr[1] & FATTR4_WORD1_OWNER) == 0) ||
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:924:14: note: Assuming the condition is false
- 924 | ((info.attrmask.arr[1] & FATTR4_WORD1_OWNER_GROUP) == 0)) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:923:9: note: Taking false branch
- 923 | if (((info.attrmask.arr[1] & FATTR4_WORD1_OWNER) == 0) ||
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:953:9: note: Taking false branch
- 953 | EASSERT((info.attrmask.arr[1] & FATTR4_WORD1_OWNER) != 0);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:954:9: note: Taking false branch
- 954 | EASSERT((info.attrmask.arr[1] & FATTR4_WORD1_OWNER_GROUP) != 0);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:955:17: note: Assuming field 'owner' is equal to null
- 955 | EASSERT(info.owner != NULL);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:11: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:955:9: note: Taking true branch
- 955 | EASSERT(info.owner != NULL);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:956:17: note: Assuming field 'owner_group' is not equal to null
- 956 | EASSERT(info.owner_group != NULL);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:11: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:956:9: note: Taking false branch
- 956 | EASSERT(info.owner_group != NULL);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:957:22: note: Field 'owner' is not equal to field 'owner_buf'
- 957 | EASSERT(info.owner == info.owner_buf);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:957:9: note: Taking true branch
- 957 | EASSERT(info.owner == info.owner_buf);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:958:22: note: Field 'owner_group' is not equal to field 'owner_group_buf'
- 958 | EASSERT(info.owner_group == info.owner_group_buf);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:958:9: note: Taking true branch
- 958 | EASSERT(info.owner_group == info.owner_group_buf);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:959:17: note: Null pointer passed as 1st argument to string length function
- 959 | EASSERT(strlen(info.owner) > 0);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:11: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c(960,17): warning G319FBF53: Null pointer passed as 1st argument to string length function [clang-analyzer-unix.cstring.NullArg]
- 960 | EASSERT(strlen(info.owner_group) > 0);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:11: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:698:17: note: Assuming the condition is false
- 698 | EASSERT_MSG(!(args->create_opts & FILE_COMPLETE_IF_OPLOCKED),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:698:5: note: Taking true branch
- 698 | EASSERT_MSG(!(args->create_opts & FILE_COMPLETE_IF_OPLOCKED),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:701:17: note: Assuming the condition is false
- 701 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_BY_FILE_ID),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:701:5: note: Taking true branch
- 701 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_BY_FILE_ID),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:708:17: note: Assuming the condition is false
- 708 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_REQUIRING_OPLOCK),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:708:5: note: Taking true branch
- 708 | EASSERT_MSG(!(args->create_opts & FILE_OPEN_REQUIRING_OPLOCK),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:711:17: note: Assuming the condition is false
- 711 | EASSERT_MSG(!(args->create_opts & FILE_DISALLOW_EXCLUSIVE),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:711:5: note: Taking true branch
- 711 | EASSERT_MSG(!(args->create_opts & FILE_DISALLOW_EXCLUSIVE),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:714:17: note: Assuming the condition is false
- 714 | EASSERT_MSG(!(args->create_opts & FILE_RESERVE_OPFILTER),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:11: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:714:5: note: Taking true branch
- 714 | EASSERT_MSG(!(args->create_opts & FILE_RESERVE_OPFILTER),
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:65:5: note: expanded from macro 'EASSERT_MSG'
- 65 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:718:14: note: Calling 'create_open_state'
- 718 | status = create_open_state(args->path, args->open_owner_id, &state);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:51:9: note: Assuming 'state' is not equal to NULL
- 51 | if (state == NULL) {
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:51:5: note: Taking false branch
- 51 | if (state == NULL) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:59:9: note: Assuming 'path_len' is < NFS41_MAX_PATH_LEN
- 59 | if (path_len >= NFS41_MAX_PATH_LEN) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:59:5: note: Taking false branch
- 59 | if (path_len >= NFS41_MAX_PATH_LEN) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:91:5: note: Returning zero (loaded from 'status'), which participates in a condition later
- 91 | return status;
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:718:14: note: Returning from 'create_open_state'
- 718 | status = create_open_state(args->path, args->open_owner_id, &state);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:719:9: note: 'status' is 0
- 719 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:719:5: note: Taking false branch
- 719 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:727:9: note: Assuming the condition is false
- 727 | if (args->create_opts & FILE_DIRECTORY_FILE)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:727:5: note: Taking false branch
- 727 | if (args->create_opts & FILE_DIRECTORY_FILE)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:733:14: note: Value assigned to 'info.owner_group'
- 733 | status = nfs41_lookup(upcall->root_ref, nfs41_root_session(upcall->root_ref),
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- 734 | &state->path, &state->parent, &state->file, &info, &state->session);
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:736:9: note: Assuming 'status' is not equal to ERROR_REPARSE
- 736 | if (status == ERROR_REPARSE) {
- | ^~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:736:5: note: Taking false branch
- 736 | if (status == ERROR_REPARSE) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:771:9: note: Assuming 'status' is equal to NO_ERROR
- 771 | if (status == NO_ERROR) {
- | ^~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:771:5: note: Taking true branch
- 771 | if (status == NO_ERROR) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:772:13: note: Assuming field 'type' is not equal to NF4DIR
- 772 | if (info.type == NF4DIR) {
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:772:9: note: Taking false branch
- 772 | if (info.type == NF4DIR) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:780:20: note: Assuming field 'type' is not equal to NF4REG
- 780 | } else if (info.type == NF4REG) {
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:780:16: note: Taking false branch
- 780 | } else if (info.type == NF4REG) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:788:20: note: Assuming field 'type' is not equal to NF4LNK
- 788 | } else if (info.type == NF4LNK) {
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:788:16: note: Taking false branch
- 788 | } else if (info.type == NF4LNK) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:822:13: note: Assuming 'g_debug_level' is < 2
- 822 | DPRINTF(2, ("handle_open(): unsupported type=%d\n", info.type));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:822:13: note: Taking false branch
- 822 | DPRINTF(2, ("handle_open(): unsupported type=%d\n", info.type));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:837:9: note: Assuming field 'disposition' is not equal to FILE_CREATE
- 837 | if (args->disposition == FILE_CREATE &&
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:837:42: note: Left side of '&&' is false
- 837 | if (args->disposition == FILE_CREATE &&
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:855:16: note: Assuming field 'len' is 0
- 855 | } else if (args->symlink.len) {
- | ^~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:855:12: note: Taking false branch
- 855 | } else if (args->symlink.len) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:890:12: note: Taking true branch
- 890 | } else if (open_for_attributes(state->type, args->access_mask,
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:892:13: note: 'status' is 0
- 892 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:892:9: note: Taking false branch
- 892 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:904:9: note: Taking false branch
- 904 | EASSERT(bitmap_isset(&info.attrmask, 0, FATTR4_WORD0_FILEID));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:906:9: note: Taking false branch
- 906 | EASSERT(bitmap_isset(&info.attrmask, 0, FATTR4_WORD0_FSID));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:909:9: note: Taking false branch
- 909 | EASSERT(bitmap_isset(&info.attrmask, 1, FATTR4_WORD1_MODE));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:911:9: note: Taking false branch
- 911 | EASSERT(bitmap_isset(&info.attrmask, 0, FATTR4_WORD0_CHANGE));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:923:14: note: Assuming the condition is false
- 923 | if (((info.attrmask.arr[1] & FATTR4_WORD1_OWNER) == 0) ||
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:923:13: note: Left side of '||' is false
- 923 | if (((info.attrmask.arr[1] & FATTR4_WORD1_OWNER) == 0) ||
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:924:14: note: Assuming the condition is false
- 924 | ((info.attrmask.arr[1] & FATTR4_WORD1_OWNER_GROUP) == 0)) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:923:9: note: Taking false branch
- 923 | if (((info.attrmask.arr[1] & FATTR4_WORD1_OWNER) == 0) ||
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:953:9: note: Taking false branch
- 953 | EASSERT((info.attrmask.arr[1] & FATTR4_WORD1_OWNER) != 0);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:954:9: note: Taking false branch
- 954 | EASSERT((info.attrmask.arr[1] & FATTR4_WORD1_OWNER_GROUP) != 0);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:955:17: note: Assuming field 'owner' is not equal to null
- 955 | EASSERT(info.owner != NULL);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:11: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:955:9: note: Taking false branch
- 955 | EASSERT(info.owner != NULL);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:956:17: note: Assuming field 'owner_group' is equal to null
- 956 | EASSERT(info.owner_group != NULL);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:11: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:956:9: note: Taking true branch
- 956 | EASSERT(info.owner_group != NULL);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:957:22: note: Field 'owner' is not equal to field 'owner_buf'
- 957 | EASSERT(info.owner == info.owner_buf);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:957:9: note: Taking true branch
- 957 | EASSERT(info.owner == info.owner_buf);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:958:22: note: Field 'owner_group' is not equal to field 'owner_group_buf'
- 958 | EASSERT(info.owner_group == info.owner_group_buf);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:958:9: note: Taking true branch
- 958 | EASSERT(info.owner_group == info.owner_group_buf);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:959:17: note: Assuming the condition is true
- 959 | EASSERT(strlen(info.owner) > 0);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:11: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:959:9: note: Taking false branch
- 959 | EASSERT(strlen(info.owner) > 0);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:5: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:960:17: note: Null pointer passed as 1st argument to string length function
- 960 | EASSERT(strlen(info.owner_group) > 0);
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:58:11: note: expanded from macro 'EASSERT'
- 58 | if (!(exp)) { \
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c(963,15): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 963 | (void)strcpy(owner, info.owner);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:963:15: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 963 | (void)strcpy(owner, info.owner);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c(964,15): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 964 | (void)strcpy(owner_group, info.owner_group);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\open.c:964:15: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 964 | (void)strcpy(owner_group, info.owner_group);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c(303,12): warning GF04AE71F: taking the absolute value of unsigned type 'unsigned int' has no effect [clang-diagnostic-absolute-value]
- 303 | sui += abs(stripeid - stripe_index(layout, sui, stripe_count));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:303:12: note: remove the call to 'abs' since unsigned values cannot be negative
- 303 | sui += abs(stripeid - stripe_index(layout, sui, stripe_count));
- | ^~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c(524,23): warning G4E466640: The left operand of '>' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
- 524 | if (io.length > maxreadsize)
- | ~~~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:500:5: note: Assuming 'g_debug_level' is < 2
- 500 | DPRINTF(IOLVL, ("--> file_layout_read_thread(%u)\n", thread->id));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:500:5: note: Taking false branch
- 500 | DPRINTF(IOLVL, ("--> file_layout_read_thread(%u)\n", thread->id));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:503:14: note: Calling 'thread_data_server'
- 503 | status = thread_data_server(thread, &server);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:362:9: note: Assuming 'serverid' is < field 'count'
- 362 | if (serverid >= device->servers.count)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:362:5: note: Taking false branch
- 362 | if (serverid >= device->servers.count)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:366:5: note: Returning zero, which participates in a condition later
- 366 | return PNFS_SUCCESS;
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:503:14: note: Returning from 'thread_data_server'
- 503 | status = thread_data_server(thread, &server);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:504:9: note: 'status' is 0
- 504 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:504:5: note: Taking false branch
- 504 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:512:9: note: Assuming 'status' is 0
- 512 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:512:5: note: Taking false branch
- 512 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:522:12: note: Calling 'thread_next_unit'
- 522 | while (thread_next_unit(thread, &io) == PNFS_PENDING) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:342:9: note: Assuming 'status' is not equal to 0
- 342 | if (status)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:342:5: note: Taking true branch
- 342 | if (status)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:343:9: note: Control jumps to line 351
- 343 | goto out_unlock;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:352:5: note: Returning without writing to 'io->length'
- 352 | return status;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:522:12: note: Returning from 'thread_next_unit'
- 522 | while (thread_next_unit(thread, &io) == PNFS_PENDING) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:522:12: note: Assuming the condition is true
- 522 | while (thread_next_unit(thread, &io) == PNFS_PENDING) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:522:5: note: Loop condition is true. Entering loop body
- 522 | while (thread_next_unit(thread, &io) == PNFS_PENDING) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:524:23: note: The left operand of '>' is a garbage value
- 524 | if (io.length > maxreadsize)
- | ~~~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c(562,43): warning G183B9D1E: variable 'total_written' set but not used [clang-diagnostic-unused-but-set-variable]
- 562 | uint32_t maxwritesize, bytes_written, total_written;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c(597,23): warning G4E466640: The left operand of '>' is a garbage value [clang-analyzer-core.UndefinedBinaryOperatorResult]
- 597 | if (io.length > maxwritesize)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:816:5: note: Assuming 'g_debug_level' is < 2
- 816 | DPRINTF(IOLVL, ("--> pnfs_write(%llu, %llu)\n", offset, length));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:816:5: note: Taking false branch
- 816 | DPRINTF(IOLVL, ("--> pnfs_write(%llu, %llu)\n", offset, length));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:827:14: note: Assuming 'status' is not equal to PNFS_PENDING
- 827 | } while (status == PNFS_PENDING);
- | ^~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:824:5: note: Loop condition is false. Exiting loop
- 824 | do {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:829:9: note: Assuming 'status' is equal to PNFS_SUCCESS
- 829 | if (status == PNFS_SUCCESS) {
- | ^~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:829:5: note: Taking true branch
- 829 | if (status == PNFS_SUCCESS) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:834:13: note: 'status' is 0
- 834 | if (status)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:834:9: note: Taking false branch
- 834 | if (status)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:841:9: note: 'status' is 0
- 841 | if (status)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:841:5: note: Taking false branch
- 841 | if (status)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:844:14: note: Calling 'pattern_fork'
- 844 | status = pattern_fork(&pattern, file_layout_write_thread);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:395:9: note: Assuming field 'count' is not equal to 0
- 395 | if (pattern->count == 0)
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:395:5: note: Taking false branch
- 395 | if (pattern->count == 0)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:398:9: note: Assuming field 'count' is equal to 1
- 398 | if (pattern->count == 1) {
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:398:5: note: Taking true branch
- 398 | if (pattern->count == 1) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:400:36: note: Calling 'file_layout_write_thread'
- 400 | status = (enum pnfs_status)thread_fn(pattern->threads);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:566:5: note: Assuming 'g_debug_level' is < 2
- 566 | DPRINTF(IOLVL, ("--> file_layout_write_thread(%u)\n", thread->id));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:566:5: note: Taking false branch
- 566 | DPRINTF(IOLVL, ("--> file_layout_write_thread(%u)\n", thread->id));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:569:14: note: Calling 'thread_data_server'
- 569 | status = thread_data_server(thread, &server);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:362:9: note: Assuming 'serverid' is < field 'count'
- 362 | if (serverid >= device->servers.count)
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:362:5: note: Taking false branch
- 362 | if (serverid >= device->servers.count)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:366:5: note: Returning zero, which participates in a condition later
- 366 | return PNFS_SUCCESS;
- | ^~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:569:14: note: Returning from 'thread_data_server'
- 569 | status = thread_data_server(thread, &server);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:570:9: note: 'status' is 0
- 570 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:570:5: note: Taking false branch
- 570 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:578:9: note: Assuming 'status' is 0
- 578 | if (status) {
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:578:5: note: Taking false branch
- 578 | if (status) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:596:12: note: Calling 'thread_next_unit'
- 596 | while (thread_next_unit(thread, &io) == PNFS_PENDING) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:342:9: note: Assuming 'status' is not equal to 0
- 342 | if (status)
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:342:5: note: Taking true branch
- 342 | if (status)
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:343:9: note: Control jumps to line 351
- 343 | goto out_unlock;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:352:5: note: Returning without writing to 'io->length'
- 352 | return status;
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:596:12: note: Returning from 'thread_next_unit'
- 596 | while (thread_next_unit(thread, &io) == PNFS_PENDING) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:596:12: note: Assuming the condition is true
- 596 | while (thread_next_unit(thread, &io) == PNFS_PENDING) {
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:596:5: note: Loop condition is true. Entering loop body
- 596 | while (thread_next_unit(thread, &io) == PNFS_PENDING) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_io.c:597:23: note: The left operand of '>' is a garbage value
- 597 | if (io.length > maxwritesize)
- | ~~~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\pnfs_layout.c(450,13): warning GB4798908: 108 enumeration values not handled in switch: 'NFS4ERR_PERM', 'NFS4ERR_NOENT', 'NFS4ERR_IO'... [clang-diagnostic-switch]
- 450 | switch (nfsstat) {
- | ^~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c(679,9): warning G36456E0F: Value stored to 'entry_buf' is never read [clang-analyzer-deadcode.DeadStores]
- 679 | entry_buf += entry->next_entry_offset;
- | ^ ~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:679:9: note: Value stored to 'entry_buf' is never read
- 679 | entry_buf += entry->next_entry_offset;
- | ^ ~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c(680,9): warning G36456E0F: Value stored to 'entry_buf_len' is never read [clang-analyzer-deadcode.DeadStores]
- 680 | entry_buf_len -= entry->next_entry_offset;
- | ^ ~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:680:9: note: Value stored to 'entry_buf_len' is never read
- 680 | entry_buf_len -= entry->next_entry_offset;
- | ^ ~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c(738,25): warning G1DD5A82D: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage [clang-analyzer-core.uninitialized.Assign]
- 738 | attr_request.arr[0] |= FATTR4_WORD0_RDATTR_ERROR;
- | ~~~~~~~~~~~~~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:702:34: note: Assuming the condition is false
- 702 | const uint32_t max_buf_len = max(args->buf_len,
- | ^
- C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt\stdlib.h:1282:28: note: expanded from macro 'max'
- 1282 | #define max(a,b) (((a) > (b)) ? (a) : (b))
- | ^~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:702:34: note: '?' condition is false
- 702 | const uint32_t max_buf_len = max(args->buf_len,
- | ^
- C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\ucrt\stdlib.h:1282:27: note: expanded from macro 'max'
- 1282 | #define max(a,b) (((a) > (b)) ? (a) : (b))
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:705:5: note: Assuming 'g_debug_level' is < 1
- 705 | DPRINTF(1, ("--> handle_nfs41_dirquery(filter='%s',initial=%d,restart=%d,single=%d)\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:39: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:705:5: note: Taking false branch
- 705 | DPRINTF(1, ("--> handle_nfs41_dirquery(filter='%s',initial=%d,restart=%d,single=%d)\n",
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:710:9: note: Assuming field 'initial' is not equal to 0
- 710 | if (args->initial || args->restart) {
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:710:23: note: Left side of '||' is true
- 710 | if (args->initial || args->restart) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:712:13: note: Assuming field 'cookie' is 0
- 712 | if (!state->cookie.cookie) {
- | ^~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:712:9: note: Taking true branch
- 712 | if (!state->cookie.cookie) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:713:13: note: 'g_debug_level' is < 1
- 713 | DPRINTF(1, ("initializing the 1st readdir cookie\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:13: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:111:50: note: expanded from macro 'DPRINTF_LEVEL_ENABLED'
- 111 | #define DPRINTF_LEVEL_ENABLED(level) ((level) <= g_debug_level)
- | ^~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:713:13: note: Taking false branch
- 713 | DPRINTF(1, ("initializing the 1st readdir cookie\n"));
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\daemon_debug.h:114:9: note: expanded from macro 'DPRINTF'
- 114 | if (DPRINTF_LEVEL_ENABLED(level)) { \
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:730:9: note: Assuming 'entry_buf' is not equal to NULL
- 730 | if (entry_buf == NULL) {
- | ^~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:730:5: note: Taking false branch
- 730 | if (entry_buf == NULL) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:737:5: note: Calling 'nfs41_superblock_getattr_mask'
- 737 | nfs41_superblock_getattr_mask(state->file.fh.superblock, &attr_request);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41.h:491:5: note: Calling 'bitmap4_cpy'
- 491 | bitmap4_cpy(attrs, &superblock->default_getattr);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\util.h:130:17: note: Assuming 'i' is >= field 'count'
- 130 | for (i = 0; i < src->count; i++) {
- | ^~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\util.h:130:5: note: Loop condition is false. Execution continues on line 133
- 130 | for (i = 0; i < src->count; i++) {
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\nfs41.h:491:5: note: Returning from 'bitmap4_cpy'
- 491 | bitmap4_cpy(attrs, &superblock->default_getattr);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:737:5: note: Returning from 'nfs41_superblock_getattr_mask'
- 737 | nfs41_superblock_getattr_mask(state->file.fh.superblock, &attr_request);
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\readdir.c:738:25: note: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
- 738 | attr_request.arr[0] |= FATTR4_WORD0_RDATTR_ERROR;
- | ~~~~~~~~~~~~~~~~~~~ ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\recovery.c(422,56): warning G23801B57: 'memcpy' call operates on objects of type 'nfs41_delegation_state' (aka 'struct __nfs41_delegation_state') while the size is based on a different type 'nfs41_delegation_state *' (aka 'struct __nfs41_delegation_state *') [clang-diagnostic-sizeof-pointer-memaccess]
- 422 | memcpy(owner.owner + sizeof(time_t), deleg, sizeof(deleg));
- | ~~~~~ ^~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\recovery.c:422:56: note: did you mean to dereference the argument to 'sizeof' (and multiply it by the number of elements)?
- 422 | memcpy(owner.owner + sizeof(time_t), deleg, sizeof(deleg));
- | ^~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\recovery.c(494,50): warning G5FA1BE76: missing field 'args' initializer [clang-diagnostic-missing-field-initializers]
- 494 | PNFS_IOMODE_ANY, TRUE, { PNFS_RETURN_ALL } };
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\recovery.c(641,50): warning G5FA1BE76: missing field 'args' initializer [clang-diagnostic-missing-field-initializers]
- 641 | PNFS_IOMODE_ANY, TRUE, { PNFS_RETURN_ALL } };
- | ^
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\setattr.c(538,12): warning GAE4932A6: Although the value stored to 'status' is used in the enclosing expression, the value is never actually read from 'status' [clang-analyzer-deadcode.DeadStores]
- Suppressed 1 warnings (1 in non-user code).
- Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
- 538 | return status = nfs_to_windows_error(status, ERROR_NOT_SUPPORTED);
- | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\setattr.c:538:12: note: Although the value stored to 'status' is used in the enclosing expression, the value is never actually read from 'status'
- 538 | return status = nfs_to_windows_error(status, ERROR_NOT_SUPPORTED);
- | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\sid.c(341,11): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 341 | (void)strcpy(e->win32name, win32name);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\sid.c:341:11: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 341 | (void)strcpy(e->win32name, win32name);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\sid.c(343,15): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 343 | (void)strcpy(e->aliasname, aliasname);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\sid.c:343:15: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 343 | (void)strcpy(e->aliasname, aliasname);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\sid.c(407,19): warning G2652FB77: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119 [clang-analyzer-security.insecureAPI.strcpy]
- 407 | (void)strcpy(out_win32name, e->win32name);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\sid.c:407:19: note: Call to function 'strcpy' is insecure as it does not provide bounding of the memory buffer. Replace unbounded copy functions with analogous functions that support length arguments such as 'strlcpy'. CWE-119
- 407 | (void)strcpy(out_win32name, e->win32name);
- | ^~~~~~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\sid.c(426,29): warning G71A66108: The value '0' provided to the cast expression is not in the valid range of values for '_SID_NAME_USE' [clang-analyzer-optin.core.EnumCastOutOfRange]
- 426 | SID_NAME_USE sid_type = 0;
- | ^
- C:\Program Files (x86)\Windows Kits\10\Include\10.0.26100.0\um\winnt.h:10380:14: note: enum declared here
- 10380 | typedef enum _SID_NAME_USE {
- | ~~~~~^~~~~~~~~~~~~~~
- 10381 | SidTypeUser = 1,
- | ~~~~~~~~~~~~~~~~
- 10382 | SidTypeGroup,
- | ~~~~~~~~~~~~~
- 10383 | SidTypeDomain,
- | ~~~~~~~~~~~~~~
- 10384 | SidTypeAlias,
- | ~~~~~~~~~~~~~
- 10385 | SidTypeWellKnownGroup,
- | ~~~~~~~~~~~~~~~~~~~~~~
- 10386 | SidTypeDeletedAccount,
- | ~~~~~~~~~~~~~~~~~~~~~~
- 10387 | SidTypeInvalid,
- | ~~~~~~~~~~~~~~~
- 10388 | SidTypeUnknown,
- | ~~~~~~~~~~~~~~~
- 10389 | SidTypeComputer,
- | ~~~~~~~~~~~~~~~~
- 10390 | SidTypeLabel,
- | ~~~~~~~~~~~~~
- 10391 | SidTypeLogonSession
- | ~~~~~~~~~~~~~~~~~~~
- 10392 | } SID_NAME_USE, *PSID_NAME_USE;
- | ~
- C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\daemon\sid.c:426:29: note: The value '0' provided to the cast expression is not in the valid range of values for '_SID_NAME_USE'
- 426 | SID_NAME_USE sid_type = 0;
- | ^
- 2>nfsd.vcxproj -> C:\cygwin64\home\roland.mainz\work\msnfs41client\vs22test12\ms-nfs41-client\build.vc19\x64\Debug\nfsd.exe
- 2>Done building project "nfsd.vcxproj".
- ========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========
- ========== Rebuild completed at 11:59 and took 02:33,598 minutes ==========
clang tidy warnings
Posted by Anonymous on Fri 7th Mar 2025 11:00
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.