radare/radare2 — pull request #1788 by crowell (2014-12-04 23:44:00+00:00)
Title: fix crash in asm.c

asm.c could assemble more instructions than spots in the token array,
this fixes it.

example base64 input to rasm2 that caused crashes.

```
bm9wb3AKciRwZ3AKcjokJCQKCgokJCAgICAgICAKCgoKCgoJ/woKCiQkJCQJCQkJCQkJCQkJCSQK
IPLy8vLy8vLyICAKCgn/CgoKJCQkJCAgICAgCyAgCgoCCgoKCf8KCkoJJAog8vLy8vLy8vIgIAoK
Cf8KCgokJCQkICAgICALICAKCgIKCgoJ/woKSiQkJCQJCQkJCQkJCQkkJCQKDyAgICAK83YKCgoJ
/wry8vLy8vLyICAKCgn/CgoJCSRyOiQkCQkkCiDy8vLy8vLy8iAgCiQgICAgICAgIAoKCgoKCgn/
CgoKJCQkJAkJCQkJCQny8iAgCgoJ/woKCiQkJCQgICAgIAsgIAoKAgoVCgn/CgpKJBokJAkJCQkJ
CQkJCQkKCf8KCvgjJCQkICAgcApyJHBncApyOiQkJAoKCiQkICAgICAgICAKCgoKCgoJ/woKCiQk
JCQJCQkkCiDy8vLy8vLy8iAgCgoJ/woKCiQkJCQgICAgIAsgIAoKAgoKCgn/CgpKJCQkJAkJCQkJ
CQkJCSQkJAoPICAnIArzdgoKCgn/CgpKJCQkJAkJCQkJCQkJCQkJJHI6CQkJCQkJCQkJJHI6JCQk
CgoKJCQgICAgIAoKJCQkJAkJCQk8JAkJCQkJCQkJCQkJJAog8vLy8vLy8vIgIAoKCfcKCgokJCQk
ICAgICALICAKIAoKCgoKCgn/CgoKJCQkJAkJCSQKIPLy8vLy8vLyICAKJCAgICAgICAgCgoKCgoK
Cf8KCgokJCQkCQkJJAog8vLy8vLy8vIgIAoKCgokJCAgICAgIAkJJAog8vLy8vLy8vIgIAoKCf8K
CgokJCQkICAgICALICAKCgIKCgoJ/woKSiQkJCQJCQkJCQkJCQkkJCQKDyAgICAK83YKCgoJ/woK
SiQkJCQJCQkJCQkJCQkJCSRyOiQkCQkkCiDy8vLy8vLy8iA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