Skip to content

[pull] master from golang:master - #165

Merged
pull[bot] merged 11 commits into
trailofbits:masterfrom
golang:master
Aug 5, 2026
Merged

[pull] master from golang:master#165
pull[bot] merged 11 commits into
trailofbits:masterfrom
golang:master

Conversation

@pull

@pull pull Bot commented Aug 5, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

qmuntal and others added 11 commits July 2, 2026 16:05
Fchdir on Windows restores the working directory by calling
GetFinalPathNameByHandleW and passing the resulting path to
SetCurrentDirectoryW.

With VOLUME_NAME_DOS, GetFinalPathNameByHandleW can return an extended
UNC path such as \\?\UNC\server\share\dir. The existing normalization
removed only the \\?\ prefix, producing UNC\server\share\dir, which is a
relative path rather than a UNC path. SetCurrentDirectoryW can then fail
with "The system cannot find the path specified."

Handle the extended UNC form separately by converting \\?\UNC\ to \\.
Keep the existing normalization for non-UNC extended paths.

Fixes #80130

Change-Id: Ia70e59202ec42d986e25a5673faae88290ca4a7c
When a vector is multiplied by a broadcasted constant power of 2,
replace the VPMULL instruction with a VPSLL.

This is a performance optimization.

Change-Id: Ie19eb696991ee45f451c7a546ced5ecea2f829c4
Reviewed-on: https://go-review.googlesource.com/c/go/+/790500
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Clarify documentation. Improve grammar. In one case (Canonicalize),
remove an unclear paragraph.

Change-Id: Id9477ad760f0a3c8729717606dc282c2f8020597
Reviewed-on: https://go-review.googlesource.com/c/go/+/809162
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Equivalent but hopefully clearer approach as suggested in CL 662315.

Change-Id: I305fa0af2bbdaacd1d521c1381f9ddced5b203b3
Reviewed-on: https://go-review.googlesource.com/c/go/+/662375
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Explicitly document that ReverseProxy does not sanitize forwarded
Cookie headers.

Change-Id: I04231fa2c779beca80f7d8f41683e0e16a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/787261
Reviewed-by: Nicholas Husin <nsh@golang.org>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Nicholas Husin <husin@google.com>
Avoids reusing cached .cover.go files with //line directives
referencing a different source location.

Change-Id: I2edb3279f32608276db6d45e8d6a83c16a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/809980
Auto-Submit: Damien Neil <dneil@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
For #77341

Change-Id: Ia06a43dd851910355ea22734bdf11b9d6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/804523
Auto-Submit: Damien Neil <dneil@google.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
The modern way to enable/disable HTTP protocols is via
the Server.Protocols field.

Fix an unintentional change in behavior when not using
Server.Protocols:

  - User sets Server.TLSNextProto to a non-nil map
    which does not contain an "h2" key.
  - User calls http2.ConfigureServer to add HTTP/2
    support to the Server.

Historically, ConfigureServer would set the "h2" key
in TLSNextProto. After the move of HTTP/2 into std,
it no longer changes TLSNextProto. This results in
the net/http Server interpreting the missing "h2"
key in the above scenario as the user intentionally
disabling HTTP/2.

Fix this by initializing the server's HTTP/2 support
when ConfigureServer is called, which sets TLSNextProto's
"h2" key to a dummy value.

Fixes #80482

Change-Id: I497881423bc76deed2a59e355b59672f6a6a6964
Reviewed-on: https://go-review.googlesource.com/c/go/+/803740
Reviewed-by: Nicholas Husin <nsh@golang.org>
Reviewed-by: Nicholas Husin <husin@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Inspired by CL 805200

Here are the performance numbers compiling tsgo:
master: 492.74s ± 0.61σ
805200: 491.95s ± 1.34σ
thisCL: 491.26s ± 0.74σ

805200 is bugged (O(n²) worst case since it doesn't use
memoization on the outer scan loop). It also could use
a single function wide bitset rather than a blockwise sparse
which should make it faster.

At which point it should be within noise distance at this CL.
But this CL keeps the output is toposorted behavior which
known bits use to limit recursion depth.

Change-Id: I7365d1f8b29723885f6d994fdb62698fcb0abec8
Reviewed-on: https://go-review.googlesource.com/c/go/+/805780
Reviewed-by: Daniel Morsing <daniel.morsing@gmail.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
Auto-Submit: Jorropo <jorropo.pgm@gmail.com>
…ions

This restore the BP as a scratch register for ABI0 NOFRAME functions.

Fixes #80710
Fixes #80709

Change-Id: Ie9d49f9364bcb30329ef901e4d02c2e3f9c69998
Reviewed-on: https://go-review.googlesource.com/c/go/+/809960
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David du Colombier <0intro@gmail.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Auto-Submit: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: David Chase <drchase@google.com>
@pull pull Bot locked and limited conversation to collaborators Aug 5, 2026
@pull pull Bot added the ⤵️ pull label Aug 5, 2026
@pull
pull Bot merged commit dd968a4 into trailofbits:master Aug 5, 2026
1 of 8 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants