- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 113 for overflows (0.34 sec)
-
src/runtime/testdata/testprognet/waiters.go
"io" "log" "net" "internal/runtime/atomic" "sync" "time" _ "unsafe" // for go:linkname ) // The bug is that netpollWaiters increases monotonically. // This doesn't cause a problem until it overflows. // Use linkname to see the value. // //go:linkname netpollWaiters runtime.netpollWaiters var netpollWaiters atomic.Uint32 func init() { register("NetpollWaiters", NetpollWaiters) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/gcsizes.go
// all remaining offsets are too large offsets[i] = -1 continue } // offs >= 0 a := s.Alignof(f.typ) offs = align(offs, a) // possibly < 0 if align overflows offsets[i] = offs if d := s.Sizeof(f.typ); d >= 0 && offs >= 0 { offs += d // ok to overflow to < 0 } else { offs = -1 // f.typ or offs is too large } } return offsets } func (s *gcSizes) Sizeof(T Type) int64 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/sizes.go
a := s.Alignof(t.elem) ea := align(esize, a) // possibly < 0 if align overflows if ea < 0 { return -1 } // ea >= 1 n1 := n - 1 // n1 >= 0 // Final size is ea*n1 + esize; and size must be <= maxInt64. const maxInt64 = 1<<63 - 1 if n1 > 0 && ea > maxInt64/n1 { return -1 // ea*n1 overflows } return ea*n1 + esize // may still overflow to < 0 which is ok case *Slice: return s.WordSize * 3
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 8.8K bytes - Viewed (0) -
test/makechan.go
type T chan byte var sink T func main() { sink = make(T, -1) // ERROR "negative buffer argument in make.*|must not be negative" sink = make(T, uint64(1<<63)) // ERROR "buffer argument too large in make.*|overflows int" sink = make(T, 0.5) // ERROR "constant 0.5 truncated to integer|truncated to int" sink = make(T, 1.0) sink = make(T, float32(1.0)) // ERROR "non-integer buffer argument in make.*|must be integer"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 1K bytes - Viewed (0) -
src/go/types/sizes.go
a := s.Alignof(t.elem) ea := align(esize, a) // possibly < 0 if align overflows if ea < 0 { return -1 } // ea >= 1 n1 := n - 1 // n1 >= 0 // Final size is ea*n1 + esize; and size must be <= maxInt64. const maxInt64 = 1<<63 - 1 if n1 > 0 && ea > maxInt64/n1 { return -1 // ea*n1 overflows } return ea*n1 + esize // may still overflow to < 0 which is ok case *Slice: return s.WordSize * 3
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 8.9K bytes - Viewed (0) -
src/log/slog/value_test.go
TimeValue(testTime), TimeValue(time.Time{}), TimeValue(time.Date(2001, 1, 2, 3, 4, 5, 0, time.UTC)), TimeValue(time.Date(2300, 1, 1, 0, 0, 0, 0, time.UTC)), // overflows nanoseconds TimeValue(time.Date(1715, 6, 13, 0, 25, 26, 290448384, time.UTC)), // overflowed value AnyValue(&x), AnyValue(&y), GroupValue(Bool("b", true), Int("i", 3)), GroupValue(Bool("b", true), Int("i", 4)), GroupValue(Bool("b", true), Int("j", 4)),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:12:08 UTC 2024 - 6.9K bytes - Viewed (0) -
internal/disk/stat_linux_s390x.go
info = Info{ Total: uint64(s.Frsize) * (s.Blocks - reservedBlocks), Free: uint64(s.Frsize) * s.Bavail, Files: s.Files, Ffree: s.Ffree, FSType: getFSType(s.Type), } // 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 - 2.6K bytes - Viewed (0) -
internal/disk/stat_linux_32bit.go
info = Info{ Total: uint64(s.Frsize) * (s.Blocks - reservedBlocks), Free: uint64(s.Frsize) * s.Bavail, Files: s.Files, Ffree: s.Ffree, FSType: getFSType(s.Type), } // 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 - 2.6K bytes - Viewed (0) -
src/go/types/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 - 9.1K bytes - Viewed (0) -
src/database/sql/driver/types.go
i64 := rv.Int() if i64 > (1<<31)-1 || i64 < -(1<<31) { return nil, fmt.Errorf("sql/driver: value %d overflows int32", v) } return i64, nil case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64: u64 := rv.Uint() if u64 > (1<<31)-1 { return nil, fmt.Errorf("sql/driver: value %d overflows int32", v) } return int64(u64), nil case reflect.String: i, err := strconv.Atoi(rv.String())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 16:30:20 UTC 2024 - 8.8K bytes - Viewed (0)