Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for crash (0.2 sec)

  1. src/cmd/cgo/internal/test/callstub_linux_ppc64le.go

    //	return notoc_func();
    // }
    import "C"
    import "testing"
    
    func testPPC64CallStubs(t *testing.T) {
    	// Verify the trampolines run on the testing machine. If they
    	// do not, or are missing, a crash is expected.
    	if C.TestPPC64Stubs() != 0 {
    		t.Skipf("This test requires binutils 2.35 or newer.")
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Sep 22 15:06:17 GMT 2023
    - 540 bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    }
    
    type dataAndEOFReader string
    
    func (r dataAndEOFReader) Read(p []byte) (int, error) {
    	return copy(p, r), io.EOF
    }
    
    func TestPeekThenUnreadRune(t *testing.T) {
    	// This sequence used to cause a crash.
    	r := NewReader(strings.NewReader("x"))
    	r.ReadRune()
    	r.Peek(1)
    	r.UnreadRune()
    	r.ReadRune() // Used to panic here
    }
    
    var testOutput = []byte("0123456789abcdefghijklmnopqrstuvwxy")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  3. misc/cgo/gmp/gmp.go

    	init bool
    }
    
    // NewInt returns a new Int initialized to x.
    func NewInt(x int64) *Int { return new(Int).SetInt64(x) }
    
    // Int promises that the zero value is a 0, but in gmp
    // the zero value is a crash.  To bridge the gap, the
    // init bool says whether this is a valid gmp value.
    // doinit initializes z.i if it needs it.  This is not inherent
    // to FFI, just a mismatch between Go's convention of
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/callback.go

    	stringFromGo = s
    }
    
    func testCallbackStack(t *testing.T) {
    	// Make cgo call and callback with different amount of stack available.
    	// We do not do any explicit checks, just ensure that it does not crash.
    	for _, f := range splitTests {
    		f()
    	}
    }
    
    //export goStackCheck
    func goStackCheck() {
    	// use some stack memory to trigger split stack check
    	var buf [256]byte
    	use(buf[:])
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  5. src/cmd/cgo/gcc.go

    	if name == nil || name.Kind != "func" {
    		// Probably a type conversion.
    		return "", false
    	}
    
    	params := name.FuncType.Params
    	args := call.Call.Args
    	end := call.Call.End()
    
    	// Avoid a crash if the number of arguments doesn't match
    	// the number of parameters.
    	// This will be caught when the generated file is compiled.
    	if len(args) != len(params) {
    		return "", false
    	}
    
    	any := false
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  6. src/archive/tar/reader_test.go

    		{data2[:1536] + trash[:1], 1, io.ErrUnexpectedEOF},
    		{data2[:1536] + trash[:511], 1, io.ErrUnexpectedEOF},
    		{data2[:1536] + trash, 1, ErrHeader},
    		{data2[:2048], 1, io.EOF}, // Exactly 1 empty block
    		{data2[:2048] + trash[:1], 1, io.ErrUnexpectedEOF},
    		{data2[:2048] + trash[:511], 1, io.ErrUnexpectedEOF},
    		{data2[:2048] + trash, 1, ErrHeader},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
Back to top