]> Cypherpunks repositories - gostls13.git/commit
net: fix memory corruption in windows *netFD.ReadFrom
authorAlex Brainman <alex.brainman@gmail.com>
Tue, 26 Jul 2011 01:55:52 +0000 (11:55 +1000)
committerAlex Brainman <alex.brainman@gmail.com>
Tue, 26 Jul 2011 01:55:52 +0000 (11:55 +1000)
commit003d5411aefbb9d49ef9868bca5f18189c3563b3
tree5418749a49d8262ef89cda9bf1cee3d39a9680aa
parent83305fecfeaf7d8f759d1b95f8f98dda2580df0b
net: fix memory corruption in windows *netFD.ReadFrom

We must keep memory used by syscall.WSARecvFrom away from
garbage collector until after overlapped call is completed.

Fixes #2094.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4817050
src/pkg/net/fd_windows.go