Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Panicker (0.19 sec)

  1. src/bytes/bytes_test.go

    	defer func() {
    		if err := recover(); err == nil {
    			t.Fatal("Grow(-1) should have panicked")
    		}
    	}()
    	var b Buffer
    	b.Grow(-1)
    }
    
    func TestBufferTruncateNegative(t *testing.T) {
    	defer func() {
    		if err := recover(); err == nil {
    			t.Fatal("Truncate(-1) should have panicked")
    		}
    	}()
    	var b Buffer
    	b.Truncate(-1)
    }
    
    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)
  2. src/archive/zip/reader_test.go

    		0x4b, 0x05, 0x06, 0x20, 0x20, 0x20, 0x20, 0xff,
    		0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
    		0xff, 0xff, 0xff, 0x20, 0x00,
    	}
    	defer func() {
    		if r := recover(); r != nil {
    			t.Fatalf("NewReader panicked: %s", r)
    		}
    	}()
    	// Previously, this would trigger a panic as we attempt to read from
    	// an io.SectionReader which would access a slice at a negative offset
    	// as the section reader offset & size were < 0.
    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)
Back to top