]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: check malloc return value
authorJoel Sing <jsing@google.com>
Mon, 26 Nov 2012 11:03:31 +0000 (22:03 +1100)
committerJoel Sing <jsing@google.com>
Mon, 26 Nov 2012 11:03:31 +0000 (22:03 +1100)
commit5da5e8e02f6ac18d36934a57ec02c069eda9f63f
tree1fff890272c4881eb7e38235b781d0dccc31322f
parent73b3e2301ebbaa4f940006b0869a158156613b4b
cmd/gc: check malloc return value

Check the return value from malloc - do not assume that we were
allocated memory just because we asked for it.

Update #4415.

R=minux.ma, daniel.morsing, remyoudompheng, rsc
CC=golang-dev
https://golang.org/cl/6782100
src/cmd/gc/lex.c
src/cmd/gc/sinit.c