Exploit databaseDownload repository ZIP
GH-22bf53a29a1d58db7308d50418bca56b
andersundsehr/ca-trust-audit
Sources for CVE-2026-111943
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files9
andersundsehr/ca-trust-auditRevision ff58f5f1990e
- ↑..Parent directory
- integration_test.go
- main.go
- main_test.go
- progress.go
- progress_test.go
- selfupdate.go
- selfupdate_test.go
- terminal_linux.go
- terminal_other.go
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
cmd/ca-trust-audit/terminal_linux.go
Go · 452 bytes//go:build linux
package main
import (
"os"
"syscall"
"unsafe"
)
// Query the actual terminal without an external command or cgo dependency.
func terminalColumns(f *os.File) int {
var size struct{ rows, columns, xpixel, ypixel uint16 }
_, _, errno := syscall.Syscall(syscall.SYS_IOCTL, f.Fd(), syscall.TIOCGWINSZ, uintptr(unsafe.Pointer(&size)))
if errno != 0 {
return 0
}
if size.columns == 0 {
return 80
}
return int(size.columns)
}