Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for alice (0.2 sec)

  1. src/archive/zip/reader_test.go

    	}
    }
    
    func TestCVE202133196(t *testing.T) {
    	// Archive that indicates it has 1 << 128 -1 files,
    	// this would previously cause a panic due to attempting
    	// to allocate a slice with 1 << 128 -1 elements.
    	data := []byte{
    		0x50, 0x4b, 0x03, 0x04, 0x14, 0x00, 0x08, 0x08,
    		0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    func (r *negativeReader) Read([]byte) (int, error) { return -1, nil }
    
    func TestNegativeRead(t *testing.T) {
    	// should panic with a description pointing at the reader, not at itself.
    	// (should NOT panic with slice index error, for example.)
    	b := NewReader(new(negativeReader))
    	defer func() {
    		switch err := recover().(type) {
    		case nil:
    			t.Fatal("read did not panic")
    		case error:
    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. src/cmd/cgo/gcc.go

    //
    //	_cgoIndexNN := &a
    //
    // and dereferences the uses of _cgoIndexNN. Taking the address avoids
    // making a copy of an array.
    //
    // This tells _cgoCheckPointer to check the complete contents of the
    // slice or array being indexed, but no other part of the memory allocation.
    func (p *Package) checkIndex(sb, sbCheck *bytes.Buffer, arg ast.Expr, i int) bool {
    	// Strip type conversions.
    	x := arg
    	for {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. src/bytes/bytes_test.go

    		}
    
    		if string(b) != tt.s {
    			t.Errorf("slice changed to %s; want %s", b, tt.s)
    		}
    		if len(tt.a) > 0 {
    			if want := tt.a[len(tt.a)-1] + "z"; string(x) != want {
    				t.Errorf("last appended result was %s; want %s", x, want)
    			}
    		}
    	}
    }
    
    // Test case for any function which accepts and returns a byte slice.
    // For ease of creation, we write the input byte slice as a string.
    type StringTest struct {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top