Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestOutOfBoundsRead (0.53 sec)

  1. src/crypto/sha1/issue15617_test.go

    // license that can be found in the LICENSE file.
    
    //go:build amd64 && (linux || darwin)
    
    package sha1_test
    
    import (
    	"crypto/sha1"
    	"syscall"
    	"testing"
    )
    
    func TestOutOfBoundsRead(t *testing.T) {
    	const pageSize = 4 << 10
    	data, err := syscall.Mmap(0, 0, 2*pageSize, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANON|syscall.MAP_PRIVATE)
    	if err != nil {
    		panic(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 14:17:04 UTC 2022
    - 660 bytes
    - Viewed (0)
Back to top