]> Cypherpunks repositories - gostls13.git/commit
libmach: respect symbol table boundaries
authorAnthony Martin <ality@pbrane.org>
Wed, 27 Mar 2013 12:59:06 +0000 (05:59 -0700)
committerAnthony Martin <ality@pbrane.org>
Wed, 27 Mar 2013 12:59:06 +0000 (05:59 -0700)
commitd1eb9c8e0d4a9903c3b94e41aacc73117cc400e6
tree03df45671ea151f7153877ceb0dd5752b08897cf
parent8eaa94293388848485093c3f0c65b1188dccaaea
libmach: respect symbol table boundaries

Since fp->symsz includes the size of the header
in the new symbol table format, we were reading
past the end and decoding a few garbage symbols
from data in the pc/line table.

R=rsc, r
CC=golang-dev
https://golang.org/cl/7993043
src/libmach/sym.c