1. 30 Jun, 2015 4 commits
  2. 29 Jun, 2015 32 commits
  3. 28 Jun, 2015 2 commits
  4. 27 Jun, 2015 2 commits
    • Didier Spezia's avatar
      html/template: prevent panic while escaping pipelines · ca91de7c
      Didier Spezia authored
      AFAIK, the documentation does not explicitly state whether
      variables can store a callable entity or not. I believe the
      current implementation in text/template assumes they cannot
      though. The call builtin function is supposed to be used for
      this purpose.
      
      Template "{{0|$}}" should generate an error at runtime,
      instead of a panic.
      
      Similarly, template "{{0|(nil)}}" should not generate
      a panic.
      
      This CL aborts the sanitization process for a given pipeline
      when no identifier can be derived from the selected node.
      It happens with malformed pipelines.
      
      We now have the following errors:
      
      {{ 0 | $ }}
      template: foo:1:10: executing "foo" at <$>: can't give argument to non-function $
      
      {{ 0 | (nil) }}
      template: foo:1:11: executing "foo" at <nil>: nil is not a command
      
      Fixes #11118
      Fixes #11356
      
      Change-Id: Idae52f806849f4c9ab7aca1b4bb4b59a74723d0e
      Reviewed-on: https://go-review.googlesource.com/10823Reviewed-by: default avatarRob Pike <r@golang.org>
      ca91de7c
    • David Crawshaw's avatar
      cmd/link: no dwarf on darwin/arm · 58578de0
      David Crawshaw authored
      Partial revert of cl/10284 to get -buildmode=c-archive working for
      darwin/arm.
      
      Manually tested with iostest.bash while builder is offline.
      
      Change-Id: I98e4e209765666e320e680e11151fce59e2afde9
      Reviewed-on: https://go-review.googlesource.com/11306Reviewed-by: default avatarRuss Cox <rsc@golang.org>
      Run-TryBot: David Crawshaw <crawshaw@golang.org>
      58578de0