Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: go1.21.7
Choose a base ref
...
head repository: golang/go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: go1.21.8
Choose a head ref
  • 12 commits
  • 24 files changed
  • 8 contributors

Commits on Feb 8, 2024

  1. [release-branch.go1.21] internal/testenv: allow "-noopt" anywhere in …

    …builder name in test
    
    testenv's TestHasGoBuild test is supposed to allow noopt builders to not
    have go build, but the pattern match is failing on the LUCI builders
    where a test shard might have an additional "-test_only" suffix in the
    builder name. Furthermore, in the LUCI world, "run mods" (the builder
    type suffixes) are supposed to be well-defined and composable, so it
    doesn't make sense to restrict "-noopt" to the builder suffix anyway.
    
    This change modifies the test to allow "-noopt" to appear anywhere in
    the builder name when checking if it's running on a noopt builder.
    
    For #65470.
    Fixes #65472.
    
    Change-Id: I393818e3e8e452c7b0927cbc65726d552aa8ff8e
    Reviewed-on: https://go-review.googlesource.com/c/go/+/558596
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Bryan Mills <[email protected]>
    (cherry picked from commit 93f0c0b)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/560518
    mknyszek committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    f997dfd View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.21] internal/testenv: support the LUCI mobile bui…

    …lders in tests
    
    This change updates the testenv tests to correctly match on future LUCI
    builder names for mobile builders. This isn't a problem today because
    those haven't been set up yet, but the builder names are structured and
    it's clear where the modifiers will appear. Might as well set them up
    now.
    
    For #65473.
    Fixes #65475.
    
    Change-Id: I244b88a62a90312c0f3ff2360527d58531070362
    Reviewed-on: https://go-review.googlesource.com/c/go/+/558597
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Bryan Mills <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    (cherry picked from commit 5c7c24c)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/560895
    mknyszek committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    b214108 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. [release-branch.go1.21] cmd/cgo/internal/testsanitizers: disable loca…

    …tion checking for clang
    
    Pending a resolution to #65606, this CL marks clang's ASAN runtime as
    unable to symbolize stack traces to unblock the LUCI clang builder.
    
    For #65606.
    For #65469.
    Fixes #65640.
    
    Change-Id: I649773085aff30e5703e7f7ac2c72a0430a015c2
    Cq-Include-Trybots: luci.golang.try:go1.21-linux-amd64-clang15
    Reviewed-on: https://go-review.googlesource.com/c/go/+/562675
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    (cherry picked from commit d94ab59)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/562999
    mknyszek authored and thanm committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    f38fca3 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. [release-branch.go1.21] runtime: don't let the tests leave core files…

    … behind
    
    Also add a check that we didn't leave any core files behind.
    
    For #65476.
    Fixes #65478. 
    
    Change-Id: I30444ef43ad1a8cc1cacd3b75280f2128e104939
    Reviewed-on: https://go-review.googlesource.com/c/go/+/525175
    Reviewed-by: Ian Lance Taylor <[email protected]>
    Reviewed-by: Keith Randall <[email protected]>
    Auto-Submit: Ian Lance Taylor <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Keith Randall <[email protected]>
    (cherry picked from commit cffdfe8)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/560896
    ianlancetaylor authored and cagedmantis committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    6d31b27 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2024

  1. [release-branch.go1.21] cmd/go/internal/modcmd: correctly filter out …

    …main modules in verify
    
    This change fixes a bug where we incorrectly filtered out the main
    modules from the beginning of the build list before verifying them. We
    made the assumption that the first MainModules.Len() entries of the
    build list were the main modules, but now it can contain the go and
    toolchain version entries, so removing the first MainModules.Len()
    entries could leave main module names in the build list if any of
    their names sorted after the string 'go'.
    
    For #62663
    Fixes #65851
    
    Change-Id: I35ab6857a556f58d306303322afe24c48fc8b38f
    Reviewed-on: https://go-review.googlesource.com/c/go/+/565378
    Reviewed-by: Bryan Mills <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    (cherry picked from commit 3f60da7)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/565755
    Run-TryBot: Michael Matloob <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    matloob authored and cagedmantis committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    99e44c7 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.21] net/mail: properly handle special characters …

    …in phrase and obs-phrase
    
    Fixes a couple of misalignments with RFC 5322 which introduce
    significant diffs between (mostly) conformant parsers.
    
    This change reverts the changes made in CL50911, which allowed certain
    special RFC 5322 characters to appear unquoted in the "phrase" syntax.
    It is unclear why this change was made in the first place, and created
    a divergence from comformant parsers. In particular this resulted in
    treating comments in display names incorrectly.
    
    Additionally properly handle trailing malformed comments in the group
    syntax.
    
    For #65083
    Fixes #65848
    
    Change-Id: I00dddc044c6ae3381154e43236632604c390f672
    Reviewed-on: https://go-review.googlesource.com/c/go/+/555596
    Reviewed-by: Damien Neil <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/566195
    Reviewed-by: Carlos Amedee <[email protected]>
    rolandshoemaker authored and cagedmantis committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    263c059 View commit details
    Browse the repository at this point in the history
  3. [release-branch.go1.21] internal/syscall/windows: fix the signature o…

    …f SetFileInformationByHandle
    
    Also fix its call site in internal/poll to pass the length of the
    actual buffer instead of an unrelated variable, and update the
    definition of FILE_BASIC_INFO to match the documented field types
    and add padding that is empirically needed on the 386 architecture.
    
    Passing a pointer to a Go-allocated buffer as type uintptr violates
    the unsafe.Pointer conversion rules, which allow such a conversion
    only in the call expression itself for a call to syscall.Syscall or
    equivalent. That can allow the buffer to be corrupted arbitrarily if
    the Go runtime happens to garbage-collect it while the call to
    SetFileInformationByHandle is in progress.
    
    The Microsoft documentation for SetFileInformationByHandle specifies
    its third argument type as LPVOID, which corresponds to Go's
    unsafe.Pointer, not uintptr.
    
    Fixes #65882.
    Updates #58933.
    
    Change-Id: If577b57adea9922f5fcca55e46030c703d8f035c
    Cq-Include-Trybots: luci.golang.try:go1.21-windows-amd64-longtest
    Reviewed-on: https://go-review.googlesource.com/c/go/+/549256
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Than McIntosh <[email protected]>
    Auto-Submit: Bryan Mills <[email protected]>
    Reviewed-by: Quim Muntal <[email protected]>
    Reviewed-by: Alex Brainman <[email protected]>
    (cherry picked from commit a709724)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/566155
    Reviewed-by: Bryan Mills <[email protected]>
    Bryan C. Mills authored and cagedmantis committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    3a58877 View commit details
    Browse the repository at this point in the history
  4. [release-branch.go1.21] html/template: escape additional tokens in Ma…

    …rshalJSON errors
    
    Escape "</script" and "<!--" in errors returned from MarshalJSON errors
    when attempting to marshal types in script blocks. This prevents any
    user controlled content from prematurely terminating the script block.
    
    Updates #65697
    Fixes #65968
    
    Change-Id: Icf0e26c54ea7d9c1deed0bff11b6506c99ddef1b
    Reviewed-on: https://go-review.googlesource.com/c/go/+/564196
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Damien Neil <[email protected]>
    (cherry picked from commit ccbc725)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/567515
    Reviewed-by: Carlos Amedee <[email protected]>
    rolandshoemaker authored and cagedmantis committed Feb 28, 2024
    Configuration menu
    Copy the full SHA
    3643147 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. [release-branch.go1.21] crypto/x509: make sure pub key is non-nil bef…

    …ore interface conversion
    
    alreadyInChain assumes all keys fit a interface which contains the
    Equal method (which they do), but this ignores that certificates may
    have a nil key when PublicKeyAlgorithm is UnknownPublicKeyAlgorithm. In
    this case alreadyInChain panics.
    
    Check that the key is non-nil as part of considerCandidate (we are never
    going to build a chain containing UnknownPublicKeyAlgorithm anyway).
    
    For #65390
    Fixes #65392
    Fixes CVE-2024-24783
    
    Change-Id: Ibdccc0a487e3368b6812be35daad2512220243f3
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/2137282
    Reviewed-by: Damien Neil <[email protected]>
    Run-TryBot: Roland Shoemaker <[email protected]>
    Reviewed-by: Tatiana Bradley <[email protected]>
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/2173774
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-by: Carlos Amedee <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/569238
    Auto-Submit: Michael Knyszek <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Carlos Amedee <[email protected]>
    rolandshoemaker authored and gopherbot committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    be5b52b View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.21] net/http, net/http/cookiejar: avoid subdomain…

    … matches on IPv6 zones
    
    When deciding whether to forward cookies or sensitive headers
    across a redirect, do not attempt to interpret an IPv6 address
    as a domain name.
    
    Avoids a case where a maliciously-crafted redirect to an
    IPv6 address with a scoped addressing zone could be
    misinterpreted as a within-domain redirect. For example,
    we could interpret "::1%.www.example.com" as a subdomain
    of "www.example.com".
    
    Thanks to Juho Nurminen of Mattermost for reporting this issue.
    
    Fixes CVE-2023-45289
    Fixes #65385
    For #65065
    
    Change-Id: I8f463f59f0e700c8a18733d2b264a8bcb3a19599
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/2131938
    Reviewed-by: Tatiana Bradley <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/2173775
    Reviewed-by: Carlos Amedee <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/569239
    Reviewed-by: Carlos Amedee <[email protected]>
    Auto-Submit: Michael Knyszek <[email protected]>
    TryBot-Bypass: Michael Knyszek <[email protected]>
    neild authored and gopherbot committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    20586c0 View commit details
    Browse the repository at this point in the history
  3. [release-branch.go1.21] net/textproto, mime/multipart: avoid unbounde…

    …d read in MIME header
    
    mime/multipart.Reader.ReadForm allows specifying the maximum amount
    of memory that will be consumed by the form. While this limit is
    correctly applied to the parsed form data structure, it was not
    being applied to individual header lines in a form.
    
    For example, when presented with a form containing a header line
    that never ends, ReadForm will continue to read the line until it
    runs out of memory.
    
    Limit the amount of data consumed when reading a header.
    
    Fixes CVE-2023-45290
    Fixes #65389
    For #65383
    
    Change-Id: I7f9264d25752009e95f6b2c80e3d76aaf321d658
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/2134435
    Reviewed-by: Roland Shoemaker <[email protected]>
    Reviewed-by: Tatiana Bradley <[email protected]>
    Reviewed-on: https://team-review.git.corp.google.com/c/golang/go-private/+/2173776
    Reviewed-by: Carlos Amedee <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/569240
    Auto-Submit: Michael Knyszek <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    Reviewed-by: Carlos Amedee <[email protected]>
    neild authored and gopherbot committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    bf80213 View commit details
    Browse the repository at this point in the history
  4. [release-branch.go1.21] go1.21.8

    Change-Id: I44203158172ca3e66f8ce4ab84f54c9247dacb28
    Reviewed-on: https://go-review.googlesource.com/c/go/+/569256
    Reviewed-by: Carlos Amedee <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    Auto-Submit: Gopher Robot <[email protected]>
    LUCI-TryBot-Result: Go LUCI <[email protected]>
    gopherbot committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    63992de View commit details
    Browse the repository at this point in the history
Loading