1. 09 Sep, 2015 18 commits
  2. 08 Sep, 2015 14 commits
  3. 07 Sep, 2015 5 commits
  4. 06 Sep, 2015 1 commit
  5. 05 Sep, 2015 2 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