]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: fix uintptr(nil) issues.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 7 Jan 2013 23:23:02 +0000 (00:23 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 7 Jan 2013 23:23:02 +0000 (00:23 +0100)
commitfba96e915dd16974745b199d09cfa6a4839cd03e
tree511044ca087a312763d1ad83fa50d60843e4b0da
parent77c343328ece54d140af2ed5514d68bb91b29734
cmd/gc: fix uintptr(nil) issues.

A constant node of type uintptr with a nil literal could
happen in two cases: []int(nil)[1:] and
uintptr(unsafe.Pointer(nil)).

Fixes #4614.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7059043
src/cmd/gc/const.c
src/cmd/gc/gen.c
test/fixedbugs/issue4614.go [new file with mode: 0644]