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.19.10
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.19.11
Choose a head ref
  • 16 commits
  • 33 files changed
  • 9 contributors

Commits on Jun 6, 2023

  1. [release-branch.go1.19] cmd/cgo: correct _cgo_flags output

    For #60306
    For #60513
    
    Change-Id: I8b37d74433456f3270c2ea465ecf406da6e5a578
    Reviewed-on: https://go-review.googlesource.com/c/go/+/501297
    Run-TryBot: Ian Lance Taylor <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: David Chase <[email protected]>
    TryBot-Bypass: Dmitri Shuralyov <[email protected]>
    ianlancetaylor authored and Ian Lance Taylor committed Jun 6, 2023
    Configuration menu
    Copy the full SHA
    3ba9c89 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2023

  1. [release-branch.go1.19] cmd/go: omit checksums for go.mod files neede…

    …d for go version lines more often in pre-1.21 modules
    
    This updates the logic from CL 489075 to avoid trying to save extra
    sums if they aren't already expected to be present
    and cfg.BuildMod != "mod" (as in the case of "go list -m -u all" with
    a go.mod file that specifies go < 1.21).
    
    Fixes #60697.
    Updates #60667.
    Updates #56222.
    
    Change-Id: Ied6ed3e80a62f9cd9a328b43a415a42d14481056
    Reviewed-on: https://go-review.googlesource.com/c/go/+/502017
    Reviewed-by: Michael Matloob <[email protected]>
    Reviewed-by: Russ Cox <[email protected]>
    Run-TryBot: Bryan Mills <[email protected]>
    TryBot-Bypass: Bryan Mills <[email protected]>
    Bryan C. Mills authored and prattmic committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    1d85bce View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.19] cmd/go: fix TestScript/build_cwd_newline with…

    … CGO_ENABLED=0
    
    Updates #60515.
    Updates #60167.
    
    Change-Id: I3792682e80a3c48d78a3b9e647cc968a1d5c8f2b
    Reviewed-on: https://go-review.googlesource.com/c/go/+/501575
    Auto-Submit: Bryan Mills <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Bryan Mills <[email protected]>
    Reviewed-by: Ian Lance Taylor <[email protected]>
    (cherry picked from commit e2b1c0b)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/501820
    TryBot-Bypass: Bryan Mills <[email protected]>
    Bryan C. Mills authored and prattmic committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    0f7675d View commit details
    Browse the repository at this point in the history
  3. [release-branch.go1.19] cmd/cgo: error out if the source path used in…

    … line directives would contain a newline
    
    cmd/cgo uses '//line' directives to map generated source
    files back to the original source file and line nmubers.
    
    The line directives have no way to escape newline characters,
    so cmd/cgo must not be used if the line directives would contain
    such characters.
    
    Updates #60515.
    Updates #60167.
    
    Change-Id: I8581cea74d6c08f82e86ed87127e81252e1bf78c
    Reviewed-on: https://go-review.googlesource.com/c/go/+/501576
    TryBot-Result: Gopher Robot <[email protected]>
    Auto-Submit: Bryan Mills <[email protected]>
    Reviewed-by: Ian Lance Taylor <[email protected]>
    Run-TryBot: Bryan Mills <[email protected]>
    (cherry picked from commit c482283)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/501821
    TryBot-Bypass: Bryan Mills <[email protected]>
    Bryan C. Mills authored and prattmic committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    516ef2d View commit details
    Browse the repository at this point in the history
  4. [release-branch.go1.19] cmd/cover: error out if a requested source fi…

    …le contains a newline
    
    cmd/cover uses '//line' directives to map instrumented source files
    back to the original source file and line numbers.
    Line directives have no way to escape newline characters, so cmd/cover
    must not be used with source file paths that contain such characters.
    
    Updates #60515.
    Updates #60167.
    
    Change-Id: I6dc039392d59fc3a5a6121ef6ca97b0ab0da5288
    Reviewed-on: https://go-review.googlesource.com/c/go/+/501577
    Auto-Submit: Bryan Mills <[email protected]>
    Run-TryBot: Bryan Mills <[email protected]>
    Reviewed-by: Ian Lance Taylor <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    (cherry picked from commit 3d78c73)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/501822
    Bryan C. Mills authored and prattmic committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    6d44c15 View commit details
    Browse the repository at this point in the history
  5. [release-branch.go1.19] go/printer: error out of Fprint when it would…

    … write a '//line' directive with a multiline file path
    
    Line directives do not provide a way to escape newline characters, so
    source file paths containing newlines must not be written in them.
    
    Updates #60515.
    Updates #60167.
    
    Change-Id: I30f8b381cc7d1df6914c27591544edf424a4b634
    Reviewed-on: https://go-review.googlesource.com/c/go/+/501578
    Reviewed-by: Robert Griesemer <[email protected]>
    Auto-Submit: Bryan Mills <[email protected]>
    Run-TryBot: Bryan Mills <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    (cherry picked from commit d1087efa42ea0b0f011283a87d7a732cba51e4ad)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/501823
    Reviewed-by: Ian Lance Taylor <[email protected]>
    Bryan C. Mills authored and prattmic committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    0b0f86e View commit details
    Browse the repository at this point in the history
  6. [release-branch.go1.19] cmd/go: do not exit with non-zero code from g…

    …o list -e -export
    
    go list -e -export puts errors running build actions on the load.Package
    corresponding to the failed action rather than exiting with a non zero
    exit code.
    
    Fixes #60710.
    Fixes #60650.
    Updates #25842.
    
    Change-Id: I1fea85cc5a0557f514fe9d4ed3b6a858376fdcde
    Reviewed-on: https://go-review.googlesource.com/c/go/+/437298
    Run-TryBot: Bryan Mills <[email protected]>
    Reviewed-by: Bryan Mills <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Auto-Submit: Bryan Mills <[email protected]>
    Reviewed-by: Michael Matloob <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/502195
    TryBot-Bypass: Bryan Mills <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    matloob authored and prattmic committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    c045822 View commit details
    Browse the repository at this point in the history
  7. [release-branch.go1.19] cmd/go/internal/work: make formatOutput retur…

    …n an error that includes the import path
    
    This refines the error output that was previously adjusted in CL 437298.
    
    Longer term, we should consider unraveling the call chains involving
    formatOutput to avoid passing so many parameters through so many
    different formatting functions.
    
    Updates #60710.
    Updates #60650.
    Updates #25842.
    
    Change-Id: I3b9d03bf5968902d8ccc4841ab4dbe114a2239e4
    Reviewed-on: https://go-review.googlesource.com/c/go/+/451218
    Reviewed-by: Bryan Mills <[email protected]>
    Auto-Submit: Russ Cox <[email protected]>
    Reviewed-by: Russ Cox <[email protected]>
    Run-TryBot: Russ Cox <[email protected]>
    Reviewed-by: Than McIntosh <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-on: https://go-review.googlesource.com/c/go/+/502196
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    TryBot-Bypass: Bryan Mills <[email protected]>
    Run-TryBot: Bryan Mills <[email protected]>
    Reviewed-by: Michael Matloob <[email protected]>
    Bryan C. Mills authored and prattmic committed Jun 13, 2023
    Configuration menu
    Copy the full SHA
    7d6517c View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2023

  1. [release-branch.go1.19] cmd/pprof: skip TestDisasm on ARM64

    The test is fixed at tip, but it is non-trivial enough to backport
    to (potentionally the last) Go 1.19 minor release. Skip the test.
    
    Fixes #60637.
    
    Change-Id: I0425b703a5270b680346b63ab38c47b890a3a3bf
    Reviewed-on: https://go-review.googlesource.com/c/go/+/501824
    TryBot-Result: Gopher Robot <[email protected]>
    Auto-Submit: Dmitri Shuralyov <[email protected]>
    Run-TryBot: Cherry Mui <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    cherrymui authored and gopherbot committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    606a5a6 View commit details
    Browse the repository at this point in the history
  2. [release-branch.go1.19] cmd/go: retain extra roots to disambiguate im…

    …ports in 'go mod tidy'
    
    We don't normally keep explicit requirements for test dependencies of
    packages loaded from other modules when the required version is
    already the selected version in the module graph. However, in some
    cases we may need to keep an explicit requirement in order to make use
    of lazy module loading to disambiguate an otherwise-ambiguous import.
    
    Note that there is no Go version guard for this change: in the cases
    where the behavior of 'go mod tidy' has changed, previous versions of
    Go would produce go.mod files that break successive calls to
    'go mod tidy'. Given that, I suspect that any existing user in the
    wild affected by this bug either already has a workaround in place
    using redundant import statements (in which case the change does not
    affect them) or is running 'go mod tidy -e' to force past the error
    (in which case a change in behavior to a non-error should not be
    surprising).
    
    Updates #60313.
    Fixes #60351.
    
    Change-Id: Idf294f72cbe3904b871290d79e4493595a0c7bfc
    Reviewed-on: https://go-review.googlesource.com/c/go/+/496635
    Auto-Submit: Bryan Mills <[email protected]>
    Run-TryBot: Bryan Mills <[email protected]>
    Reviewed-by: Russ Cox <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    (cherry picked from commit 2ed6a54)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/499636
    TryBot-Bypass: Bryan Mills <[email protected]>
    Auto-Submit: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Michael Matloob <[email protected]>
    Bryan C. Mills authored and gopherbot committed Jun 19, 2023
    Configuration menu
    Copy the full SHA
    f394cd7 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2023

  1. [release-branch.go1.19] runtime: use 1-byte load for address checking…

    … in racecallatomic
    
    In racecallatomic, we do a load before calling into TSAN, so if
    the address is invalid we fault on the Go stack. We currently use
    a 8-byte load instruction, regardless of the data size that the
    atomic operation is performed on. So if, say, we are doing a
    LoadUint32 at an address that is the last 4 bytes of a memory
    mapping, we may fault unexpectedly. Do a 1-byte load instead.
    (Ideally we should do a load with the right size, so we fault
    correctly if we're given an unaligned address for a wide load
    across a page boundary. Leave that for another CL.)
    
    Fix AMD64, ARM64, and PPC64. The code already uses 1-byte load
    on S390X.
    
    Fixes #60844.
    Updates #60825.
    
    Change-Id: I3dee93eb08ba180c85e86a9d2e71b5b520e8dcf0
    Reviewed-on: https://go-review.googlesource.com/c/go/+/503937
    Run-TryBot: Cherry Mui <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Than McIntosh <[email protected]>
    Reviewed-by: David Chase <[email protected]>
    (cherry picked from commit 1a7709d)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/503977
    Auto-Submit: Dmitri Shuralyov <[email protected]>
    TryBot-Bypass: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Austin Clements <[email protected]>
    cherrymui authored and gopherbot committed Jun 22, 2023
    Configuration menu
    Copy the full SHA
    c9d5dd5 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2023

  1. [release-branch.go1.19] cmd/go: skip TestScript/gccgo_link_ldflags on…

    … aix/ppc64
    
    The gccgo on the builder is not updated to support runtime/cgo
    
    For #60306.
    For #60513.
    
    Change-Id: If0fb1ccdf589cc9741f6a065bacfa4f06e64ec15
    Reviewed-on: https://go-review.googlesource.com/c/go/+/501435
    Reviewed-by: Ian Lance Taylor <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Cuong Manh Le <[email protected]>
    Reviewed-by: Benny Siegert <[email protected]>
    Auto-Submit: Cuong Manh Le <[email protected]>
    (cherry picked from commit 688d75b)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/505596
    Auto-Submit: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Than McIntosh <[email protected]>
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Run-TryBot: Dmitri Shuralyov <[email protected]>
    cuonglm authored and gopherbot committed Jun 24, 2023
    Configuration menu
    Copy the full SHA
    9a2e6c9 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2023

  1. [release-branch.go1.19] runtime: allow for 5 more threads in TestWind…

    …owsStackMemory*
    
    Original version of TestWindowsStackMemory did not consider sysmon and
    other threads running during the test. Allow for 5 extra threads in this
    test - this should cover any new threads in the future.
    
    For #58570
    Fixes #61054
    
    Change-Id: I215790f9b94ff40a32ddd7aa54af715d1dc391c6
    Reviewed-on: https://go-review.googlesource.com/c/go/+/473415
    Reviewed-by: Michael Pratt <[email protected]>
    Run-TryBot: Alex Brainman <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    (cherry picked from commit f6cbc1d)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/506975
    Run-TryBot: Michael Knyszek <[email protected]>
    Auto-Submit: Michael Knyszek <[email protected]>
    (cherry picked from commit 08a58dd)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/506976
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    alexbrainman authored and gopherbot committed Jun 28, 2023
    Configuration menu
    Copy the full SHA
    16b1985 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2023

  1. [release-branch.go1.19] runtime: set raceignore to zero when starting…

    … a new goroutine
    
    When reusing a g struct the runtime did not reset
    g.raceignore. Initialize raceignore to zero when initially
    setting racectx.
    
    A goroutine can end with a non-zero raceignore if it exits
    after calling runtime.RaceDisable without a matching
    runtime.RaceEnable. If that goroutine's g is later reused
    the race detector is in a weird state: the underlying
    g.racectx is active, yet g.raceignore is non-zero, and
    raceacquire/racerelease which check g.raceignore become
    no-ops. This causes the race detector to report races when
    there are none.
    
    For #60934
    Fixes #60948
    
    Change-Id: Ib8e412f11badbaf69a480f03740da70891f4093f
    Reviewed-on: https://go-review.googlesource.com/c/go/+/505055
    Reviewed-by: Dmitri Shuralyov <[email protected]>
    Reviewed-by: Michael Knyszek <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Michael Knyszek <[email protected]>
    (cherry picked from commit 48dbb62)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/505675
    Reviewed-by: Keith Randall <[email protected]>
    Reviewed-by: Keith Randall <[email protected]>
    TryBot-Bypass: Carlos Amedee <[email protected]>
    jellevandenhooff authored and cagedmantis committed Jun 29, 2023
    Configuration menu
    Copy the full SHA
    c4590af View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2023

  1. [release-branch.go1.19] net/http: validate Host header before sending

    Verify that the Host header we send is valid.
    Avoids surprising behavior such as a Host of "go.dev\r\nX-Evil:oops"
    adding an X-Evil header to HTTP/1 requests.
    
    Add a test, skip the test for HTTP/2. HTTP/2 is not vulnerable to
    header injection in the way HTTP/1 is, but x/net/http2 doesn't validate
    the header and will go into a retry loop when the server rejects it.
    CL 506995 adds the necessary validation to x/net/http2.
    
    Updates #60374
    Fixes #61075
    For CVE-2023-29406
    
    Change-Id: I05cb6866a9bead043101954dfded199258c6dd04
    Reviewed-on: https://go-review.googlesource.com/c/go/+/506996
    Reviewed-by: Tatiana Bradley <[email protected]>
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Damien Neil <[email protected]>
    (cherry picked from commit 499458f)
    Reviewed-on: https://go-review.googlesource.com/c/go/+/507358
    Run-TryBot: Tatiana Bradley <[email protected]>
    Reviewed-by: Roland Shoemaker <[email protected]>
    neild authored and joedian committed Jul 6, 2023
    Configuration menu
    Copy the full SHA
    5fa6923 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. [release-branch.go1.19] go1.19.11

    Change-Id: Ic6685cba7c4cf96dfc0c837df90002f557e9e86a
    Reviewed-on: https://go-review.googlesource.com/c/go/+/508837
    TryBot-Result: Gopher Robot <[email protected]>
    Run-TryBot: Gopher Robot <[email protected]>
    Reviewed-by: Cherry Mui <[email protected]>
    Reviewed-by: Heschi Kreinick <[email protected]>
    Auto-Submit: Gopher Robot <[email protected]>
    gopherbot committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    e58941f View commit details
    Browse the repository at this point in the history
Loading