]> Cypherpunks repositories - gostls13.git/commit
cmd/ld: avoid a segfault when dumping the symbol table
authorCarl Shapiro <cshapiro@google.com>
Mon, 28 Jan 2013 23:47:25 +0000 (15:47 -0800)
committerCarl Shapiro <cshapiro@google.com>
Mon, 28 Jan 2013 23:47:25 +0000 (15:47 -0800)
commit1c6b6b125eea1de587734ea7b16c05831e91ecf9
tree14f12bbde130548cb6b62a921163bbe23a81774c
parent3c51a69937c2bd99c746007c99b9b44d44a0060b
cmd/ld: avoid a segfault when dumping the symbol table

The dumping routine incorrectly assumed that all incoming
symbols would be non-nil and load through it to retrieve the
symbol name.  Instead of using the symbol to retrieve a name,
use the name provided by the caller.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7224043
src/cmd/ld/symtab.c