aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/syscall_linux.go
diff options
context:
space:
mode:
authorCuong Manh Le <cuong.manhle.vn@gmail.com>2021-11-01 02:04:13 +0700
committerCuong Manh Le <cuong.manhle.vn@gmail.com>2021-11-02 03:09:01 +0000
commita45457df82263c292e2c66c152a12b5df0f27f15 (patch)
tree5c1902de05b529edaa2be4eaee78839718b9f2ad /src/syscall/syscall_linux.go
parenta59e33224e42d60a97fa720a45e1b74eb6aaa3d0 (diff)
downloadgo-a45457df82263c292e2c66c152a12b5df0f27f15.tar.xz
cmd/compile: fix panic when refer to method of imported instantiated type
In case of reference to method call of an imported fully-instantiated type, nameNode.Func will be nil causes checkFetchBody panic. To fix this, make sure checkFetchBody is only called when Func is not nil. Fixes #49246 Change-Id: I32e9208385a86d4600d8ebf6f5efd8fca571ea16 Reviewed-on: https://go-review.googlesource.com/c/go/+/360056 Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com> Trust: Dan Scales <danscales@google.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Dan Scales <danscales@google.com>
Diffstat (limited to 'src/syscall/syscall_linux.go')
0 files changed, 0 insertions, 0 deletions