syscall: fix array size for mmap slice creation

Этот коммит содержится в:
Damian Gryski 2021-11-18 16:57:24 -08:00 коммит произвёл Ayke
родитель b01ce95cb5
коммит f8206b9bcc

Просмотреть файл

@ -85,7 +85,7 @@ func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, e
if addr == unsafe.Pointer(^uintptr(0)) {
return nil, getErrno()
}
return (*[30]byte)(addr)[:length], nil
return (*[1 << 30]byte)(addr)[:length:length], nil
}
func Mprotect(b []byte, prot int) (err error) {