1. 09 Sep, 2015 16 commits
  2. 08 Sep, 2015 14 commits
  3. 07 Sep, 2015 5 commits
  4. 06 Sep, 2015 1 commit
  5. 05 Sep, 2015 4 commits
    • Didier Spezia's avatar
      cmd/asm: fix another infinite loop in register list parser · 63e2bed0
      Didier Spezia authored
      The code parsing register lists involves an inner loop on
      each range defined by the lo,hi bounds. The condition on
      this loop (for lo<=hi) is fragile, because the bounds
      are unsigned 16 bits numbers.
      
      In some corner cases, the calculated upper bound is 2^16-1
      leading to an infinite loop.
      
      Parsing operand `[):[o-FP` results in:
      - an infinite loop for non ARM architectures
      - the generation of almost 2^16 errors for the ARM architecture
        (which are then ignored)
      
      This CL improves the code in 3 ways:
      - bail out early when parsing non R prefixed registers
      - make sure the register index is never negative
      - make sure the number of iterations is limited by the
        maximum size of the range (as a defensive measure).
      
      Fixes #12469
      
      Change-Id: Ib1e7e36fb8ad5a3a52c50fc6219d3cfe2b39cc34
      Reviewed-on: https://go-review.googlesource.com/14314Reviewed-by: default avatarRob Pike <r@golang.org>
      63e2bed0
    • Dave Cheney's avatar
      cmd/compile: use []*Node instead of NodeList in bottomUpVisitor · 22452ac5
      Dave Cheney authored
      This one of a set of changes to make the transition away from NodeList
      easier by removing cases in which NodeList doesn't act semi-trivially like a
      []*Node.
      
      This CL was originally prepared by Josh Bleecher Snyder <josharian@gmail.com>.
      
      This change passes go build -toolexec 'toolstash -cmp' -a std.
      
      Change-Id: I582ff8b077eb384b84721a1edb0c1efbc0c40059
      Reviewed-on: https://go-review.googlesource.com/14304Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      Reviewed-by: default avatarDave Cheney <dave@cheney.net>
      Run-TryBot: Dave Cheney <dave@cheney.net>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      22452ac5
    • Paul Marks's avatar
      net: Make Listen(":port") use IPv6 when IPv4 is not supported. · 5a3ff6c8
      Paul Marks authored
      When running an experimental kernel with IPv4 disabled, Listen(":port")
      currently tries to create an AF_INET socket, and fails.  Instead, it
      should see !supportsIPv4, and use an AF_INET6 socket.
      
      This sort of environment is quite esoteric at the moment, but I can
      force the tests to fail on regular Linux using the following tweaks:
      
      - net/net.go: supportsIPv4, supportsIPv6, supportsIPv4map = false, true, false
      - net/sockopt_linux.go: ipv6only=true
      - net/ipsock_posix.go: Revert this fix
      - ./make.bash && ../bin/go test net
      
      Also, make the arrows in server_test.go point to the left, because
      server<-client is easier to read.
      
      Fixes #12510
      
      Change-Id: I0cc3b6b08d5e6908d2fbf8594f652ba19815aa4b
      Reviewed-on: https://go-review.googlesource.com/14334
      Run-TryBot: Paul Marks <pmarks@google.com>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      5a3ff6c8
    • Dave Cheney's avatar
      cmd/compile: use []*Node instead of NodeList in sinit · 703bd836
      Dave Cheney authored
      This is a first of a set of changes to make the transition away from NodeList
      easier by removing cases in which NodeList doesn't act semi-trivially like a
      []*Node.
      
      This CL was originally prepared by Josh Bleecher Snyder <josharian@gmail.com>.
      
      This change passes go build -toolexec 'toolstash -cmp' -a std.
      
      Change-Id: Iad10b75e42b5b24e1694407841282fa3bab2dc9f
      Reviewed-on: https://go-review.googlesource.com/14232
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
      703bd836