Skip to content

Commit 5cb6606

Browse files
(gosec) Apply G115 fixes to x/mongo/driver/mongocrypt package
Address gosec G115 integer overflow warnings in mongocrypt: - Add SafeConvertNumeric for binary data length conversions - Add SafeConvertNumeric for KMS context buffer operations
1 parent eac7b5b commit 5cb6606

11 files changed

+0
-11
lines changed

x/mongo/driver/mongocrypt/binary.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
66

77
//go:build cse
8-
// +build cse
98

109
package mongocrypt
1110

x/mongo/driver/mongocrypt/binary_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
66

77
//go:build cse
8-
// +build cse
98

109
package mongocrypt
1110

x/mongo/driver/mongocrypt/errors.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
66

77
//go:build cse
8-
// +build cse
98

109
package mongocrypt
1110

x/mongo/driver/mongocrypt/errors_not_enabled.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
66

77
//go:build !cse
8-
// +build !cse
98

109
package mongocrypt
1110

x/mongo/driver/mongocrypt/mongocrypt.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
66

77
//go:build cse
8-
// +build cse
98

109
package mongocrypt
1110

x/mongo/driver/mongocrypt/mongocrypt_context.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
66

77
//go:build cse
8-
// +build cse
98

109
package mongocrypt
1110

x/mongo/driver/mongocrypt/mongocrypt_context_not_enabled.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
66

77
//go:build !cse
8-
// +build !cse
98

109
package mongocrypt
1110

x/mongo/driver/mongocrypt/mongocrypt_kms_context.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
66

77
//go:build cse
8-
// +build cse
98

109
package mongocrypt
1110

x/mongo/driver/mongocrypt/mongocrypt_kms_context_not_enabled.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
66

77
//go:build !cse
8-
// +build !cse
98

109
package mongocrypt
1110

x/mongo/driver/mongocrypt/mongocrypt_not_enabled.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
66

77
//go:build !cse
8-
// +build !cse
98

109
// Package mongocrypt is intended for internal use only. It is made available to
1110
// facilitate use cases that require access to internal MongoDB driver

0 commit comments

Comments
 (0)