6901984f6a
This commit re-slices received control messages in StdNetBind to the value the OS reports on a successful read. Previously, the len of this slice would always be srcControlSize, which could result in control message values leaking through a sync.Pool round trip. This is unlikely with the IP_PKTINFO socket option set successfully, but should be guarded against. Reviewed-by: James Tucker <james@tailscale.com> Signed-off-by: Jordan Whited <jordan@tailscale.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> |
||
---|---|---|
.. | ||
bindtest | ||
winrio | ||
bind_std_test.go | ||
bind_std.go | ||
bind_windows.go | ||
boundif_android.go | ||
conn_test.go | ||
conn.go | ||
controlfns_linux.go | ||
controlfns_unix.go | ||
controlfns_windows.go | ||
controlfns.go | ||
default.go | ||
mark_default.go | ||
mark_unix.go | ||
sticky_default.go | ||
sticky_linux_test.go | ||
sticky_linux.go |