]> Cypherpunks repositories - gostls13.git/commit
syscall: fix nil pointer dereference in Select on linux/{arm64,mips64x}
authorTobias Klauser <tklauser@distanz.ch>
Thu, 1 Mar 2018 08:20:26 +0000 (09:20 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Fri, 2 Mar 2018 08:18:31 +0000 (08:18 +0000)
commit1023b016d51ee0e6b7245482b9d8715170d785ee
tree608187fd63e7809b9371e672ae67c20bf0b6e661
parent1fadbc1a76b2d9a11453ef4e21b77c353493ac2c
syscall: fix nil pointer dereference in Select on linux/{arm64,mips64x}

The timeout parameter might be nil, don't dereference it
unconditionally.

Fixes #24189

Change-Id: I03e6a1ab74fe30322ce6bcfd3d6c42130b6d61be
Reviewed-on: https://go-review.googlesource.com/97819
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/syscall/syscall_linux_arm64.go
src/syscall/syscall_linux_mips64x.go