]> Cypherpunks repositories - gostls13.git/commit
runtime: change errorCString to a struct
authorIan Lance Taylor <iant@golang.org>
Thu, 9 Jan 2014 05:40:33 +0000 (21:40 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 9 Jan 2014 05:40:33 +0000 (21:40 -0800)
commit7e639c0229b96c398e04de5acaf3010252b98d2c
treef00dcf545e61a5d449a2cdc048ac974f99ea7f4b
parent2d55fdb507982eb6539868cf54a0c7f14c1b8cec
runtime: change errorCString to a struct

This prevents callers from using reflect to create a new
instance of errorCString with an arbitrary value and calling
the Error method to examine arbitrary memory.

Fixes #7084.

R=golang-codereviews, minux.ma, bradfitz
CC=golang-codereviews
https://golang.org/cl/49600043
src/pkg/runtime/error.go