]> Cypherpunks repositories - gostls13.git/commit
internal/obj: protect against nil addr.Sym
authorRob Pike <r@golang.org>
Tue, 15 Sep 2015 17:59:27 +0000 (10:59 -0700)
committerRob Pike <r@golang.org>
Tue, 15 Sep 2015 20:56:39 +0000 (20:56 +0000)
commit448f84a43ab14a30a6bada6ce22a6dc6e89ea85e
tree2fb9c2b0adb0400eaae4ac25672a89ffbe3dc784
parentdace9397b10e85db15c4760eb283ca43855d87d2
internal/obj: protect against nil addr.Sym

This has been the root cause of a number of crashes caused by
fuzz throwing modem noise at the assembler, which in turn attempts
to print diagnostics but instead just gets crashes.

Fixes #12627.

Change-Id: I72c2da79d8eb240e1a37aa6140454c552b05e0f1
Reviewed-on: https://go-review.googlesource.com/14595
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/internal/obj/util.go