]> Cypherpunks repositories - gostls13.git/commit
asm: handle EOF better
authorRob Pike <r@golang.org>
Thu, 17 Sep 2015 20:46:46 +0000 (13:46 -0700)
committerRob Pike <r@golang.org>
Fri, 18 Sep 2015 18:09:15 +0000 (18:09 +0000)
commit49065cbfe41877747f4e0bb67e2dd0833ec01b7a
tree0aba1029583e27609d5bf0b698d9d60e1756f072
parent49580db149b177b0bbebb9fc61094b1e6c5a38d2
asm: handle EOF better

Add some error catches to prevent looping at EOF.
Also give better diagnostics.
Also add tests for these cases.

Fixes #12656.

Change-Id: I1355fc149b71c868e740bfa53de29c25d160777d
Reviewed-on: https://go-review.googlesource.com/14710
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/cmd/asm/internal/lex/input.go
src/cmd/asm/internal/lex/lex_test.go