$ the-wire · showcase
HTTP/1 MaxBytesReader race crash, tightened cmd/go flag allowlists
By RepoJournal · Filed · About Go · Composed from the cited sources · methodology
Go fixed a remotely reachable panic in net/http's HTTP/1 server and continued stripping dangerous flags out of the cgo compiler and linker allowlists.
net/http: prevent HTTP/1 server crash due to MaxBytesReader header race golang/go
For HTTP/1 servers, exceeding MaxBytesReader's limit sets "Connection: close" without synchronization, racing a header the handler writes explicitly; a handler that reads the body concurrently with writing response headers can now panic. The fix synchronizes the automatic header set, so servers using MaxBytesReader or MaxBytesHandler stop crashing on that path.
cmd/go, cmd/compile: unquote //go:cgo_ldflag and bound slice removal golang/go
cmd/cgo, cmd/go, and cmd/compile disagreed on quote handling, so escaped quotes inside #cgo LDFLAGS could slip crafted arguments past checkLinkerFlags validation. Pragma strings are now unquoted with strconv.Unquote in both cmd/compile's noder and cmd/go's exec.go, so flags quoted with strconv.Quote in _cgo_gotypes.go round-trip identically. This is a breaking change: cgo build flags that previ...
cmd/go: disallow --sysroot and -target, validate -isysroot/-syslibroot, and restrict -x golang/go
cmd/go removed --sysroot and -target from the compiler and linker flag allowlists: GCC and Clang use --sysroot to relocate spec files and CRT startup objects, and Clang's -target falls back to running target helper tools such as orbis-ld or xcc from the current working directory. -isysroot and -Wl,-syslibroot remain for SDK selection but are now validated. This is a breaking change: builds pass...
cmd/go: disallow -gen-* and -gnat* in flag allowlists golang/go
Clang's -gen-* and GCC's -gnat* flags no longer match the one-argument -g* wildcard in validCompilerFlags and validLinkerFlags; the two-argument forms were writing sidecar files and desynchronizing flag arity between checkFlags and the compiler driver. The same tightening continues in the linker search paths, where GCC is now blocked from loading *.spec files drawn from -L, -isysroot, and -Wl,-...
internal/history: document Go 1.27.4 and Go 1.26.11 golang/website
The site's release history now documents Go 1.27.4 and Go 1.26.11, alongside new first-party vulndb reports and a build farm switch that moves darwin-arm64-14 both public and security to 8-core VMs, halving instance counts to 13 and 7 respectively.