Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 806 for sounds (0.1 sec)

  1. test/fixedbugs/issue46938.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"strings"
    	"unsafe"
    )
    
    func main() {
    	defer func() {
    		err := recover()
    		if err == nil {
    			panic("expected panic")
    		}
    		if got := err.(error).Error(); !strings.Contains(got, "slice bounds out of range") {
    			panic("expected panic slice out of bound, got " + got)
    		}
    	}()
    	s := make([]int64, 100)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 25 01:57:42 UTC 2021
    - 584 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testsanitizers/testdata/asan4_fail.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    /*
    #include <stdlib.h>
    #include <stdio.h>
    
    void test(int* a) {
    	// Access Go pointer out of bounds.
    	a[3] = 300;          // BOOM
    	// We shouldn't get here; asan should stop us first.
    	printf("a[3]=%d\n", a[3]);
    }*/
    import "C"
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 496 bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/TypeVisitor.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Based on what a {@link Type} is, dispatch it to the corresponding {@code visit*} method. By
     * default, no recursion is done for type arguments or type bounds. But subclasses can opt to do
     * recursion by calling {@link #visit} for any {@code Type} while visitation is in progress. For
     * example, this can be used to reject wildcards or type variables contained in a type as in:
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 16 21:10:04 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  4. istioctl/pkg/injector/injector-list.go

    }
    
    func renderCounts(injectedRevision string, counts revisionCount) string {
    	if counts.pods == 0 {
    		return "<no pods>"
    	}
    
    	podText := strconv.Itoa(counts.pods)
    	if counts.disabled > 0 {
    		podText += fmt.Sprintf(" (injection disabled: %d)", counts.disabled)
    	}
    	if counts.needsRestart > 0 {
    		podText += fmt.Sprintf(" NEEDS RESTART: %d", counts.needsRestart)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 04 03:08:06 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  5. operator/pkg/metrics/monitoring.go

    		"reconcile_request_total",
    		"Number of times requesting Reconcile",
    	)
    
    	// GetCRErrorTotal counts the number of times fetching
    	// CR fails from API server.
    	GetCRErrorTotal = monitoring.NewSum(
    		"get_cr_error_total",
    		"Number of times fetching CR from apiserver failed",
    	)
    
    	// CRMergeFailureTotal counts number of CR merge failures.
    	CRMergeFailureTotal = monitoring.NewSum(
    		"cr_merge_failure_total",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 7K bytes
    - Viewed (0)
  6. test/fixedbugs/bug102.go

    // run
    
    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	var b [0]byte
    	s := string(b[0:]) // out of bounds trap
    	if s != "" {
    		panic("bad convert")
    	}
    	var b1 = [5]byte{'h', 'e', 'l', 'l', 'o'}
    	if string(b1[0:]) != "hello" {
    		panic("bad convert 1")
    	}
    	var b2 = make([]byte, 5)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 525 bytes
    - Viewed (0)
  7. test/fixedbugs/issue17918.go

    // compile
    
    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 17918: slice out-of-bounds in ssa/cse
    
    package dead
    
    import (
    	"fmt"
    	"time"
    )
    
    var (
    	units = []struct {
    		divisor time.Duration
    		unit    rune
    	}{
    		{1000000, 's'},
    		{60, 'm'},
    		{60, 'h'},
    		{24, 'd'},
    		{7, 'w'},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 16:31:27 UTC 2016
    - 619 bytes
    - Viewed (0)
  8. src/runtime/panic.go

    	panicCheck1(getcallerpc(), "slice bounds out of range")
    	panic(boundsError{x: int64(x), signed: true, y: y, code: boundsSlice3Alen})
    }
    func goPanicSlice3AlenU(x uint, y int) {
    	panicCheck1(getcallerpc(), "slice bounds out of range")
    	panic(boundsError{x: int64(x), signed: false, y: y, code: boundsSlice3Alen})
    }
    func goPanicSlice3Acap(x int, y int) {
    	panicCheck1(getcallerpc(), "slice bounds out of range")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  9. src/runtime/mpagealloc_64bit.go

    		needIdxBase, needIdxLimit := addrRangeToSummaryRange(l, makeAddrRange(base, limit))
    
    		// Update the summary slices with a new upper-bound. This ensures
    		// we get tight bounds checks on at least the top bound.
    		//
    		// We must do this regardless of whether we map new memory.
    		if needIdxLimit > len(p.summary[l]) {
    			p.summary[l] = p.summary[l][:needIdxLimit]
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 03 11:00:10 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. test/fixedbugs/issue26043.go

    // compile
    
    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This program results in a loop inferred to increment
    // j by 0, causing bounds check elimination to attempt
    // something%0, which panics (in the bug).
    
    package q
    
    func f() {
    	var s1 string
    	var b bool
    	if b {
    		b = !b
    		s1 += "a"
    	}
    
    	var s2 string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 25 20:36:42 UTC 2018
    - 543 bytes
    - Viewed (0)
Back to top