Exploit databaseDownload repository ZIP
GH-8958357e96f9d8f8c98383150c404283
notkmhn/cve-2022-21449-tls-poc
Sources for CVE-2022-21449
14 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files41
notkmhn/cve-2022-21449-tls-pocRevision fa239eebae2b
- ↑..Parent directory
- copy_file_range_linux.go
- errno_unix.go
- errno_windows.go
- fcntl_js.go
- fcntl_libc.go
- fcntl_syscall.go
- fd.go
- fd_fsync_darwin.go
- fd_fsync_posix.go
- fd_fsync_windows.go
- fd_io_plan9.go
- fd_mutex.go
- fd_opendir_darwin.go
- fd_plan9.go
- fd_poll_js.go
- fd_poll_runtime.go
- fd_posix.go
- fd_unix.go
- fd_windows.go
- fd_writev_darwin.go
- fd_writev_illumos.go
- fd_writev_unix.go
- hook_cloexec.go
- hook_unix.go
- hook_windows.go
- iovec_illumos.go
- iovec_unix.go
- sendfile_bsd.go
- sendfile_linux.go
- sendfile_solaris.go
- sendfile_windows.go
- sock_cloexec.go
- sockopt.go
- sockopt_linux.go
- sockopt_unix.go
- sockopt_windows.go
- sockoptip.go
- splice_linux.go
- strconv.go
- sys_cloexec.go
- writev.go
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
go/src/internal/poll/fd_opendir_darwin.go
Go · 918 bytes// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package poll
import (
"syscall"
_ "unsafe" // for go:linkname
)
// OpenDir returns a pointer to a DIR structure suitable for
// ReadDir. In case of an error, the name of the failed
// syscall is returned along with a syscall.Errno.
func (fd *FD) OpenDir() (uintptr, string, error) {
// fdopendir(3) takes control of the file descriptor,
// so use a dup.
fd2, call, err := fd.Dup()
if err != nil {
return 0, call, err
}
var dir uintptr
for {
dir, err = fdopendir(fd2)
if err != syscall.EINTR {
break
}
}
if err != nil {
syscall.Close(fd2)
return 0, "fdopendir", err
}
return dir, "", nil
}
// Implemented in syscall/syscall_darwin.go.
//
//go:linkname fdopendir syscall.fdopendir
func fdopendir(fd int) (dir uintptr, err error)