1. 10 Apr, 2017 5 commits
    • Josh Bleecher Snyder's avatar
      cmd/internal/obj/arm: make assembler concurrency-safe · dcf643f1
      Josh Bleecher Snyder authored
      Move global state from obj.Link
      to a new function-local state struct arm.ctxt5.
      
      This ends up being cleaner than threading
      all the state through as parameters; there's a lot of it.
      While we're here, move newprog from a parameter to ctxt5.
      
      We reserve the variable name c for ctxt5,
      so a few local variables named c have been renamed.
      
      Instead of lazily initializing deferreturn
      and Sym_div and friends, initialize them up front.
      
      Passes toolstash-check -all.
      
      Updates #15756
      
      Change-Id: Ifb4e4b9879e4e1f25e6168d8b7b2a25a3390dc11
      Reviewed-on: https://go-review.googlesource.com/39922
      Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
      dcf643f1
    • Rob Pike's avatar
      cmd/go: allow full flag processing in go vet · 62aeb777
      Rob Pike authored
      This allows the go tool to run "go vet" with both the build flags
      that make sense, such as -x and -tags, and vet with all its flags.
      
      To do this, create a new package cmd/go/internal/cmdflag to
      hold functionality common to flag handling for test and vet.
      
      Fixes #19350
      
      RELNOTES=yes
      
      Change-Id: Ia1ae213bd3f6cab1c5e492501c8d43ce61a7ee89
      Reviewed-on: https://go-review.googlesource.com/40112Reviewed-by: default avatarRuss Cox <rsc@golang.org>
      62aeb777
    • Samuel Tan's avatar
      html/template: panic if predefined escapers are found in pipelines during rewriting · 9ffd9339
      Samuel Tan authored
      Report an error if a predefined escaper (i.e. "html", "urlquery", or "js")
      is found in a pipeline that will be rewritten by the contextual auto-escaper,
      instead of trying to merge the escaper-inserted escaping directives
      with these predefined escapers. This merging behavior is a source
      of several security and correctness bugs (eee #19336, #19345, #19352,
      and #19353.)
      
      This merging logic was originally intended to ease migration of text/template
      templates with user-defined escapers to html/template. Now that
      migration is no longer an issue, this logic can be safely removed.
      
      NOTE: this is a backward-incompatible change that fixes known security
      bugs (see linked issues for more details). It will explicitly break users
      that attempt to execute templates with pipelines containing predefined
      escapers.
      
      Fixes #19336, #19345, #19352, #19353
      
      Change-Id: I46b0ca8a2809d179c13c0d4f42b63126ed1c3b49
      Reviewed-on: https://go-review.googlesource.com/37880
      Run-TryBot: Russ Cox <rsc@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarRuss Cox <rsc@golang.org>
      9ffd9339
    • Caleb Spare's avatar
      testing: consider a test failed after race errors · 221541ec
      Caleb Spare authored
      Fixes #19851.
      
      Change-Id: I5ee9533406542be7d5418df154f6134139e75892
      Reviewed-on: https://go-review.googlesource.com/39890
      Run-TryBot: Caleb Spare <cespare@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarRuss Cox <rsc@golang.org>
      221541ec
    • Hiroshi Ioka's avatar
      os: handle relative symlinks correctly in Stat on windows · 87bd0b2f
      Hiroshi Ioka authored
      Walk relative symlinks in windows os.Stat from
      symlink path instead of from current directory.
      
      Fixes #19870
      
      Change-Id: I0a27473d11485f073084b1f19b30c5b3a2fbc0f7
      Reviewed-on: https://go-review.googlesource.com/39932Reviewed-by: default avatarAlex Brainman <alex.brainman@gmail.com>
      Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      87bd0b2f
  2. 09 Apr, 2017 3 commits
  3. 08 Apr, 2017 4 commits
  4. 07 Apr, 2017 28 commits