- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 650 for overflows (0.18 sec)
-
src/cmd/vendor/golang.org/x/tools/internal/versions/gover.go
package versions import "strings" // A gover is a parsed Go gover: major[.Minor[.Patch]][kind[pre]] // The numbers are the original decimal strings to avoid integer overflows // and since there is very little actual math. (Probably overflow doesn't matter in practice, // but at the time this code was written, there was an existing test that used // go1.99999999999, which does not fit in an int on 32-bit platforms.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 21:52:54 UTC 2023 - 4.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/conversions.go
ok = constConvertibleTo(T, &x.val) // A conversion from an integer constant to an integer type // can only fail if there's overflow. Give a concise error. // (go.dev/issue/63563) if !ok && isInteger(x.typ) && isInteger(T) { check.errorf(x, InvalidConversion, "constant %s overflows %s", x.val, T) x.mode = invalid return } case constArg && isTypeParam(T): // x is convertible to T if it is convertible
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 18:51:00 UTC 2024 - 9K bytes - Viewed (0) -
src/encoding/binary/varint.go
// // n == 0: buf too small // n < 0: value larger than 64 bits (overflow) // and -n is the number of bytes read func Varint(buf []byte) (int64, int) { ux, n := Uvarint(buf) // ok to continue in presence of error x := int64(ux >> 1) if ux&1 != 0 { x = ^x } return x, n } var errOverflow = errors.New("binary: varint overflows a 64-bit integer")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 4.8K bytes - Viewed (0) -
src/crypto/internal/bigmod/nat.go
// // The length of both operands must be the same as the modulus. Both operands // must already be reduced modulo m. func (x *Nat) Add(y *Nat, m *Modulus) *Nat { overflow := x.add(y) x.maybeSubtractModulus(choice(overflow), m) return x } // montgomeryRepresentation calculates x = x * R mod m, with R = 2^(_W * n) and // n = len(m.nat.limbs). //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 24K bytes - Viewed (0) -
src/encoding/binary/varint_test.go
if i > 0 { wantErr = io.ErrUnexpectedEOF } if x != 0 || err != wantErr { t.Errorf("ReadUvarint(%v): got x = %d, err = %s", buf, x, err) } } } // Ensure that we catch overflows of bytes going past MaxVarintLen64. // See issue https://golang.org/issues/41185 func TestBufferTooBigWithOverflow(t *testing.T) { tests := []struct { in []byte name string wantN int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 16 23:09:19 UTC 2023 - 5.5K bytes - Viewed (0) -
internal/disk/stat_linux.go
if err != nil { return Info{}, err } //nolint:unconvert devID := uint64(st.Dev) // Needed to support multiple GOARCHs info.Major = unix.Major(devID) info.Minor = unix.Minor(devID) // Check for overflows. // https://github.com/minio/minio/issues/8035 // XFS can show wrong values at times error out // in such scenarios. if info.Free > info.Total {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_type.cc
shape->reserve(input_shape.dim_size()); auto& dims = input_shape.dim(); for (auto& d : dims) { if (d.size() > std::numeric_limits<int64_t>::max()) { return errors::InvalidArgument("Shape element overflows"); } shape->push_back(d.size() == kTFDynamicSize ? ShapedType::kDynamic : d.size()); } return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 7.5K bytes - Viewed (0) -
src/go/types/check_test.go
const src = `package index; var s []byte; var _ = s[int64 /* ERRORx "int64\\(1\\) << 40 \\(.*\\) overflows int" */ (1) << 40]` testFiles(t, []string{"index.go"}, [][]byte{[]byte(src)}, false, withSizes(&StdSizes{4, 4})) } func TestIssue47243_TypedRHS(t *testing.T) { // The RHS of the shift expression below overflows uint on 32bit platforms, // but this is OK as it is explicitly typed.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 14.1K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractTransformFuture.java
* might not run some of its listeners. The likely result is that the app will hang. (And of * course stack overflows are bad news in general. For example, we may have overflowed in the * middle of defining a class. If so, that class will never be loadable in this process.) The * best we can do (since logging may overflow the stack) is to let the error propagate. Because
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 01 21:46:34 UTC 2024 - 10.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/check_test.go
const src = `package index; var s []byte; var _ = s[int64 /* ERRORx "int64\\(1\\) << 40 \\(.*\\) overflows int" */ (1) << 40]` testFiles(t, []string{"index.go"}, [][]byte{[]byte(src)}, 0, false, withSizes(&StdSizes{4, 4})) } func TestIssue47243_TypedRHS(t *testing.T) { // The RHS of the shift expression below overflows uint on 32bit platforms, // but this is OK as it is explicitly typed.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 13.8K bytes - Viewed (0)