2025-07-14 22:28 ftp://ftp.de.debian.org/debian/pool/main/m/mongo-tools/mongo-tools_3.4.14.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-63-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: a2600d0 (2025-07-14 12:39:20 +0200) count: 80 79 elapsed-time: 0.1 0.1 head-timing-info: old-timing-info: head results: mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl.c:11:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SASL_BADPARAM [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl.c:36:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SASL_CB_PASS [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl.c:45:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sasl_callback_t [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl.c:34:41: style: Parameter 'conn' can be declared as pointer to const. However it seems that 'mgo_sasl_secret' is a callback function, if 'conn' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl.c:58:26: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl.c:34:41: note: Parameter 'conn' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sspi_windows.c:29:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfn_encryptMessage [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sspi_windows.c:44:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfn_acquireCredentialsHandle [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sspi_windows.c:67:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfn_initializeSecurityContext [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sspi_windows.c:86:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfn_queryContextAttributes [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:10:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEC_WINNT_AUTH_IDENTITY_ANSI [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:30:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECBUFFER_VERSION [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:70:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECPKG_ATTR_SIZES [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/golang/snappy/cmd/snappytool/main.cpp:24:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/spacemonkeygo/openssl/hostname.c:252:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable V_ASN1_IA5STRING [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/spacemonkeygo/openssl/hostname.c:275:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENERAL_NAME [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/spacemonkeygo/openssl/hostname.c:352:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEN_DNS [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/spacemonkeygo/openssl/hostname.c:358:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEN_EMAIL [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/spacemonkeygo/openssl/hostname.c:364:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GEN_IPADD [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/github.com/spacemonkeygo/openssl/password.c:5:11: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:79:2: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:79:2: note: Null pointer dereference mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:80:2: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:80:2: note: Null pointer dereference mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:81:2: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:81:2: note: Null pointer dereference mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:82:2: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:82:2: note: Null pointer dereference mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:97:29: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:97:29: note: Null pointer addition mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:101:29: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:101:29: note: Null pointer addition mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:67:95: style: Parameter 'user_plus_realm' can be declared as pointer to const [constParameterPointer] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:35:25: style: Variable 'in_bufs[0].BufferType' is assigned a value that is never used. [unreadVariable] mongo-tools-r3.4.14/vendor/src/github.com/spacemonkeygo/openssl/sni.c:20:19: style: Redundant assignment of 'ssl_ctx' to itself. [selfAssignment] mongo-tools-r3.4.14/vendor/src/github.com/spacemonkeygo/openssl/system_certs.c:22:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR_LIB_X509 [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:21:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OTRL_POLICY_ALWAYS [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:32:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl.c:11:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SASL_BADPARAM [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:41:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl.c:36:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SASL_CB_PASS [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:78:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl.c:45:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sasl_callback_t [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:127:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OTRL_INIT [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl.c:34:41: style: Parameter 'conn' can be declared as pointer to const. However it seems that 'mgo_sasl_secret' is a callback function, if 'conn' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl.c:58:26: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl.c:34:41: note: Parameter 'conn' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:143:9: warning: Either the condition 'fd==-1' is redundant or write() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:140:10: note: Assuming that condition 'fd==-1' is not redundant mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:143:9: note: Invalid argument mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:144:9: warning: Either the condition 'fd==-1' is redundant or close() argument nr 1 can have invalid value. The value is -1 but the valid values are '0:'. [invalidFunctionArg] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:140:10: note: Assuming that condition 'fd==-1' is not redundant mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:144:9: note: Invalid argument mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:176:13: style: Local variable 'newmessage' shadows outer variable [shadowVariable] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:162:11: note: Shadowed declaration mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:176:13: note: Shadow variable mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:20:25: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'policy' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:82:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:20:25: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:20:46: style: Parameter 'context' can be declared as pointer to const. However it seems that 'policy' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:82:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:20:46: note: Parameter 'context' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:24:24: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'is_logged_in' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:84:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:24:24: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:36:32: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'update_context_list' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:86:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:36:32: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:45:31: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'write_fingerprints' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:88:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:45:31: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:47:24: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'gone_secure' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:89:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:47:24: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:47:45: style: Parameter 'context' can be declared as pointer to const. However it seems that 'gone_secure' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:89:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:47:45: note: Parameter 'context' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:49:26: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'gone_insecure' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:90:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:49:26: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:49:47: style: Parameter 'context' can be declared as pointer to const. However it seems that 'gone_insecure' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:90:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:49:47: note: Parameter 'context' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:51:25: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'still_secure' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:91:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:51:25: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:51:46: style: Parameter 'context' can be declared as pointer to const. However it seems that 'still_secure' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:91:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:51:46: note: Parameter 'context' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:53:28: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'max_message_size' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:92:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:53:28: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:53:49: style: Parameter 'context' can be declared as pointer to const. However it seems that 'max_message_size' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:92:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:53:49: note: Parameter 'context' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:55:32: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'account_name' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:93:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:55:32: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:60:30: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'account_name_free' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:94:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:60:30: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:62:33: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'error_message' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:96:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:62:33: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:62:54: style: Parameter 'context' can be declared as pointer to const. However it seems that 'error_message' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:96:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:62:54: note: Parameter 'context' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:67:31: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'error_message_free' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:97:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:67:31: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:69:35: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'resent_msg_prefix_free' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:99:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:69:35: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:71:29: style: Parameter 'opdata' can be declared as pointer to const. However it seems that 'handle_smp_event' is a callback function, if 'opdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:100:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:71:29: note: Parameter 'opdata' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:72:36: style: Parameter 'context' can be declared as pointer to const. However it seems that 'handle_smp_event' is a callback function, if 'context' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:100:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:72:36: note: Parameter 'context' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:73:29: style: Parameter 'question' can be declared as pointer to const. However it seems that 'handle_smp_event' is a callback function, if 'question' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:100:5: note: You might need to cast the function pointer here mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:73:29: note: Parameter 'question' can be declared as pointer to const mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:164:24: style: Variable 'ignore_message' is assigned a value that is never used. [unreadVariable] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:178:11: style: Variable 'err' is assigned a value that is never used. [unreadVariable] mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:164:9: style: Variable 'ignore_message' is assigned a value that is never used. [unreadVariable] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:10:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SEC_WINNT_AUTH_IDENTITY_ANSI [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sspi_windows.c:29:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfn_encryptMessage [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:34:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECBUFFER_VERSION [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sspi_windows.c:44:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfn_acquireCredentialsHandle [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:74:71: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SECPKG_ATTR_SIZES [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sspi_windows.c:67:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfn_initializeSecurityContext [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sspi_windows.c:86:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pfn_queryContextAttributes [valueFlowBailoutIncompleteVar] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:83:2: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:83:2: note: Null pointer dereference mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:84:2: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:84:2: note: Null pointer dereference mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:85:2: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:85:2: note: Null pointer dereference mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:86:2: warning: If memory allocation fails, then there is a possible null pointer dereference: msg [nullPointerOutOfMemory] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:86:2: note: Null pointer dereference mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:101:29: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:101:29: note: Null pointer addition mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:105:29: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:105:29: note: Null pointer addition mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:71:95: style: Parameter 'user_plus_realm' can be declared as pointer to const [constParameterPointer] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:39:25: style: Variable 'in_bufs[0].BufferType' is assigned a value that is never used. [unreadVariable] diff: 2.17.0 mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:101:29: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:101:29: note: Null pointer addition head mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:101:29: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:101:29: note: Null pointer addition 2.17.0 mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:97:29: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:97:29: note: Null pointer addition head mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:97:29: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:78:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/github.com/10gen/llmgo/internal/sasl/sasl_windows.c:97:29: note: Null pointer addition head mongo-tools-r3.4.14/vendor/src/golang.org/x/crypto/otr/libotr_test_helper.c:164:9: style: Variable 'ignore_message' is assigned a value that is never used. [unreadVariable] 2.17.0 mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:101:29: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:101:29: note: Null pointer addition head mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:101:29: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:101:29: note: Null pointer addition 2.17.0 mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:105:29: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:105:29: note: Null pointer addition head mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:105:29: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assuming allocation function fails mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:82:20: note: Assignment 'msg=malloc((sizes.cbSecurityTrailer+msgSize+sizes.cbBlockSize)*sizeof(char))', assigned value is 0 mongo-tools-r3.4.14/vendor/src/gopkg.in/mgo.v2/internal/sasl/sasl_windows.c:105:29: note: Null pointer addition DONE